Vhandy technology
GCAN-2008 user manual
For example: "DI0 AT%I0.0:BOOL;"
"0.0"represents the position of the output point,and"0.0"~"0.7"respectivelydefinethe
1-8 output points in the first GC-2008 module. When the user uses more thanone
gc-2008 module, the second gc-2008 shall be defined from "1.0" to "1.7", and so on.
"%" (percent sign) is the direct variable starter; ":" (colon) is the variable or type
separator.
The Boolean is read from the %I0.0 address using the symbol variable DI0. AT
represents the address of the variable access and the additional attribute of the variable.
2.5 Combined with GCAN- 8000series
The state of the digital output is represented by one byte, with channel 8 in the
high and channel 1 in the low.
For example, when GCAN-8000 module node number is 1, the output state of
channel 8 and channel 4 of the first GC-2008 module is logic "1", and the output state
of other channels is logic "0", the CAN data frame ID sent by the GCAN-IO-8000
module is 0x181,the data length(DLC) is 8, and the frame data is 0x88, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00.Please note that when only one GCAN-2008 module is
inserted, only the first byte of the frame data is valid. The table below lists two
common DI states and their corresponding status data.
DI status
Channel
8
7
6
5
4
3
2
1
Status
1
0
0
0
1
0
0
0
CAN bus data
88
DI status
Channel
8
7
6
5
4
3
2
1
Status
0
1
0
1
1
0
1
0
CAN bus data
5A
Table 2.3