IDEC MICRO/I HG4G-CJT22 F-B Series User Manual page 178

Micro/i operator interfaces for windo/i-nv4
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents