Manual

WindO/I-NV2 User’s Manual 3-61
5 User Communication
3
Communication
Example: Registering Constant (Hexadecimal) for receive command data
When the trigger condition is satisfied, the received data is compared with the registered hexadecimal data, and the
value of the Index No. 2 of the matching data is stored in Index Device LDR100.
When the LDR100 value is 3
Example of applying Registering Constant
When the same device address is specified for the Index Device for Registering Constant (Character) data or
Registering Constant (Hexadecimal) data and for Use Reference Device for Device data, the data storage
destination for each unit of received data can be changed.
When the following commands are received
The first 1 byte is taken as the start code. Constant (Hexadecimal) data is not stored.
The received data is compared with the registered data, and the value of the Index No. 2 (DEC) of the matching
data is stored in Index Device LDR100.
Item Setting
Number of Registering Constants 3
Registering Constants
Index No. 1: 1234
Index No. 2: 5678
Index No. 3: 2537
Index Device LDR100
Received data
Compare
25h
37h
Order of reception
3LDR100:
Value of the Index Device
1234h
5678h
2537h
1:
2:
3:
DataIndex No.
Number of
Registering
Constants: 3
(DEC)
Data type Item Setting
Constant (Hexadecimal) Data 02
Registering Constant (Character)
Number of Registering Constants 2
Registering Constant
Index No. 1: AA
Index No. 2: BB
Index Device LDR100
Device
Conversion Type No Conversion
Device LDR100
Use Reference Device ON, Device: LDR200
Storage Method for Data from Upper byte
Bytes 2
Words 2
Variable OFF
Constant (Hexadecimal) Data 0D
STX
(02h)
B
(42h)
B
(42h)
1
(31h)
2
(32h)
CR
(0Dh)
STX
(02h)
Received data
Compare
B
(42h)
B
(42h)
Order of reception
2LDR100:
Value of the Index Device
AA
BB
1:
2:
DataIndex No.
Number of
Registering
Constants: 2
(DEC)