Modbus – IAI America ROBO Cylinder Series User Manual
Page 84

5. Modbus RTU
76
Modbus
(4) Query sample
A sample query that reads the total FAN driving time (addresses 842E
H
to 842F
H
) of a controller
with axis No. 0 is shown below.
z
Query (silent intervals are inserted before and after the query)
01 03 84 2E 00 02 8C F2
Field
RTU mode
8-bit data
Start
Silent interval
Slave address [H]
01
Function code [H]
03
Start address [H]
842E
Number of registers [H] 0002
Error check [H]
8CF2 (in accordance with
CRC calculation)
End
Silent interval
The response to the query is as follows.
z
Response (silent intervals are inserted before and after the response)
01 03 04 00 00 02 AF BB 2F
Field
RTU mode
8-bit data
Start
Silent interval
Slave address [H]
01
Function code [H]
03
Number of data bytes [H] 04 (4 bytes = 2 registers)
Data 1 [H]
00 00
Data 2 [H]
02 AF
Error check [H]
BB2F (in accordance with CRC calculation)
End
Silent interval
The total FAN driving time is “000002AF
H
” o Convert into decimal number o 687[sec]
Note The data of the response example is simply an example and will vary depending on
various conditions.