GN-9371_2_3 User Manual
Page 83 of (110)
G-series GN-9371_2_3 PIO Rev. 1.02.docx
•
Response
Field name
Example
RTU
Start of Frame
-
t1-t2-t3
Slave Address
0x07
0x07
Function Code
0x01
0x01
Byte Count
0x02
0x02
Output Status
0x55
0x55
Output Status
0x02
0x02
Error Check (CRC/LRC)
-
0x8F, 0x6D
End of Frame
-
t1-t2-t3
* In case of address 0x1015~0x1000 output bit value: 00000010_01010101.
A.3.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
Example
RTU
Start of Frame
-
t1-t2-t3
Slave Address
0x07
0x07
Function Code
0x02
0x02
Starting Address Hi
0x00
0x00
Starting Address Lo
0x00
0x00
Quantity of Inputs Hi
0x00
0x00
Quantity of Inputs Lo
0x0A
0x0A
Error Check (CRC/LRC)
-
0xF8, 0x6B
End of Frame
-
t1-t2-t3
•
Response
Field name
Example
RTU
Start of Frame
-
t1-t2-t3
Slave Address
0x07
0x07
Function Code
0x02
0x02
Byte Count
0x02
0x02
Input Status
0x80
0x80
Input Status
0x00
0x00
Error Check (CRC/LRC)
-
0x50, 0x78
End of Frame
-
t1-t2-t3
-
In case of address 0x0015~0x0000 output bit value: 00000000_10000000.