Vhandy Technology
GC-3864 user manual
first channel, each channel occupies 2 bytes, the collected temperature
corresponds to -32768~+32767 so the second The starting address of the
channel is I2.0.
When the user uses more than one GC-3864 module, the second GC-3864
needs to be defined from "I8.0", because each 3864 has 4 channels; "%"
(percent sign) is the direct variable start symbol : ":" (semicolon) is a variable
or type separator. Use the symbol variable AI0 to read the signed integer from
the %I0.0 address. AT stands for the address of variable access and the
additional attributes of the variable (see page 46 of the e-book for details).
(Note: Input only affects input, output only affects output, output and input do
not affect each other. That is, if there is and only output module in front of the
input module, then no matter how many output modules there are in front, the
address of the first input module is still I0 .0.)
2.5 Combination with GCAN-IO-8000 series equipment
The state of the analog input is represented by two bytes.
For example: the node number of GCAN-IO-8000 module is 1, the input state
of channel 1 of the first GC-3864 module is 250
℃
, and the input states of
other channels are not connected to the sensor, then the GCAN-IO-8000
module sends The CAN data frame ID is 0x181, the data length (DLC) is 8,
and the frame data is 0xC4, 0x09, 0xFF, 0x7F, 0xFF, 0x7F, 0xFF, 0x7F. The
following table lists a common AI state and its corresponding state data.
AI status
Number of
channels
1
2
3
4
state
250
℃
No sensor
connected
No sensor
connected
No sensor
connected
CAN bus data C4
09
FF
7F
FF
7F
FF
7F