(0X02) Read Discrete Inputs - Hitachi HX-RIO3 Series User Manual

Hide thumbs Also See for HX-RIO3 Series:
Table of Contents

Advertisement

42
Response
Field name
Start of Frame
Slave Address
Function Code
Byte Count
Output Status
Output Status
Error Check (CRC/LRC)
End of Frame
* In case of address 0x1015~0x1000 output bit value: 00000010_01010101.
A.3.2. 2 (0x02) Read Discrete Inputs
This function code is used to read from 1 to 2000 contiguous status of discrete inputs in a remote device.
The Request PDU specifies the starting address, i.e. the address of the first input specified, and the
number of inputs. In the PDU Discrete Inputs are addressed starting at zero. Therefore Discrete inputs
numbered 1-16 are addressed as 0-15. The discrete inputs in the response message are packed as one
input per bit of the data field.
Status is indicated as 1= ON; 0= OFF.
Request
Field name
Start of Frame
Slave Address
Function Code
Starting Address Hi
Starting Address Lo
Quantity of Inputs Hi
Quantity of Inputs Lo
Error Check (CRC/LRC)
End of Frame
Response
Field name
Start of Frame
Slave Address
Function Code
Byte Count
Input Status
Input Status
Error Check (CRC/LRC)
End of Frame
In case of address 0x0015~0x0000 output bit value: 00000000_10000000.
-
Example
RTU
-
t1-t2-t3
0x07
0x07
0x01
0x01
0x02
0x02
0x55
0x55
0x02
0x02
-
0x8F, 0x6D
-
t1-t2-t3
Example
RTU
-
t1-t2-t3
0x07
0x07
0x02
0x02
0x00
0x00
0x00
0x00
0x00
0x00
0x0A
0x0A
-
0xF8, 0x6B
-
t1-t2-t3
Example
RTU
-
t1-t2-t3
0x07
0x07
0x02
0x02
0x02
0x02
0x80
0x80
0x00
0x00
-
0x50, 0x78
-
t1-t2-t3
HX-RIO3 Series

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rio3-cp3mbt

Table of Contents