I-7242D user manual
I-7242D DeviceNet/Modbus RTU Gateway User’s Manual, July 2006, Version 1.1 108/124
8.1
“Read Coil Status” Command (0x01)
Read the On/Off status of discrete output in the slave. The query message
specifies the starting coil and quantity of coils to be read. And the coil status in
the response message is packed as one coil per bit of the data field.
Frame Field
Description
Starting Address (Hi)
Starting Address (Lo)
Address of 1
st
output coil
No. of Points (Hi)
Query
No. of Points (Lo)
Number of output coils
Byte Count
Number of data bytes=(number of output coils + 7) / 8
Data (Coils: H-L order)(L)
…..
Response
Data (Coils: H-L order)(H)
Byte swap=”Swap 1 byte” (or “No swapping”)
Data length=Value of the “Byte Count” field
Data location=Address in the gateway’s “DO” memory
8.2
“Read Input Status” Command (0x02)
Read the On/Off status of discrete input in the slave. The query message
specifies the starting input and quantity of inputs to be read. And the input
status in the response message is packed as one input per bit of the data field.
Frame Field
Description
Starting Address (Hi)
Starting Address (Lo)
Address of 1
st
input coil
No. of Points (Hi)
Query
No. of Points (Lo)
Number of input coils
Byte Count
Number of data bytes=(number of input coils + 7) / 8
Data (Inputs: H-L order)(L)
…..
Response
Data (Inputs: H-L order)(H)
Byte swap=”Swap 1 byte” (or “No swapping”)
Data length=Value of the “Byte Count” field
Data location=Address in the gateway’s “DI” memory