Modbus – IAI America ROBO Cylinder Series User Manual
Page 77

5. Modbus RTU
69
Modbus
(4) Query sample
A sample query that reads the total moving count (addresses 8400
H
to 8401
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 00 00 02 EC FB
Field
RTU mode
8-bit data
Start
Silent interval
Slave address [H]
01
Function code [H]
03
Start address [H]
8400
Number of registers [H] 0002
Error check [H]
ECFB (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 1F BA 9B
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 1F
Error check [H]
BA9B (in accordance with CRC calculation)
End
Silent interval
The Total moving count is “21F
H
” o Convert into decimal number o 543[times]
Note The data of the response example is simply an example and will vary depending on
various conditions.