ICP DAS USA GW-7228 User Manual page 45

J1939/modbus rtu slave gateway
Hide thumbs Also See for GW-7228:
Table of Contents

Advertisement

Get J1939 input data
Using the Modbus command as below:
FC4 Read multiple input registers (3xxxx) for AI
[Request] (Request by Modbus master device)
Byte 0:
Byte 1:
Byte 2-3:
Byte 4-5:
Byte 6-7:
[Response] (Response from the GW-7228)
Byte 0:
Byte 1:
Byte 2:
Byte 3-(B+2):
Byte (B+3)-(B+4): Value for the CRC calculation
Example:
Read a value of one word in the address 30001.
[Request] (Byte0, Byte1... Byten) (Hex)
01 04 00 00 00 01 31 CA
GW-7228 responds a value of one word in the address 30001.
[Response](Byte0, Byte1... Byten) (Hex)
01 04 02
12 34
B4 47
GW-7228 J1939/Modbus RTU Slave Gateway User's Manual (Ver 1.3, Apr/2011) ------------- 45
Net ID (Station number)
FC=04
Reference number
Word count
Value for the CRC calculation
Net ID (Station number)
FC=04
Byte count of response (B=2 x word count)
Register values

Advertisement

Table of Contents
loading

Table of Contents