User guide
89
VTB USER GUIDE
NG_DI - DIGITAL INPUTS NGQ NGQx
This function allows to read the digital input of the NGQ-NGQx
The card Index must be 0
Syntax
NG_DI(Char Card) as uint
Parameters
Card Index of the expansion card (fmust be 0)
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
NG_DO – DIGITAL OUTPUTS NGM13-NGMEVO
This function updates the digital output of the NGM13-NGMEVO and its expansion cards: NGM-IO and NGM-PS.
The expansion cards are identified with a progressive number starting from 0. The first card is to consider the NGM13
(index 0), the nearest expansion at that will have the index 1, and to follow the others.
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 NGM13
ng_Do(1,0x31) ‘ Activate the outputs 1, 8 and 9 of the first expansion card
WARNING: Bits 8 and 15 aren't used.
Outputs from 9 to 14 of the NGM13 (NOT THE OUTPUTS OF NGMEVO) are shared with
the STEP/DIR channels 1, 2 and 3.
NG_DO – DIGITAL OUTPUTS NGQ-NGQx
This function updates the digital output of the NGQ-NGQx The card Index must be 0
Syntax
NG_DO(Char Card, Uint Out)
Parameters
Card Index of the expansion card (Must be 0)
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










