Vision VTB-101 Podręcznik Użytkownika Strona 74

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 125
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 73
74
VTB USER GUIDE
11.9 INTERFACE FUNCTIONS FOR NG35
This group of functions allows the interfacing to the hardware resource of NG35 systems.
Hardware NG35
NG_DI - DIGITAL INPUTS
This function allows to read the digital input of the expansion cards of NG35: NG-IO and NG-PP.
The expansion cards are identified with a progressive number starting from 0. The first card near the NG35 has the
index 0.
Syntax
Uint NG_DI(Char Card)
Parameters
Card Index of the expansion card (from 0 to 7)
Return value:
Uint Value of 16 BITS of the input, if Bit is 1 the input is ACTIVE
Input
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Example
Used variables:
input UINT
input = ng_di(0) read the digital inputs from the first card
input = ng_di(2) read the digital inputs from the second card
NG_DO – DIGITAL OUTPUTS
This function allows to updates the digital output of the expansion cards of NG35: NGIO and NGPP.
The expansion cards are identified with a progressive number starting from 0. The first card near the NG35 has the
index 0.
Syntax
NG_DO(Char Card, Uint Out)
Parameters
Card Index of the expansion card (from 0 to 7)
Out State of the outputs, if Bit is 1 the output is ACTIVE
Output
14
13
12
11
10
9
8
7
6
5
4
3
2
1
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Example
ng_Do(0,0x7) Activate the outputs 1, 2 and 3 of the Card 0
ng_Do(1,0x31) Activate the outputs 1, 9 and 10 of the Card 1
WARNING: Bits 8 and 15 aren't used.
Przeglądanie stron 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 124 125

Komentarze do niniejszej Instrukcji

Brak uwag