Modbus – IAI America ROBO Cylinder Series User Manual
Page 236

6. Modbus
ASCII
228
Modbus
(4) Sample query
A sample query that reads the startup time (address 9010
H
) of a controller of axis No. 0 is shown
below.
Query: 01 03 90 10 00 02 5A [CR] [LF]
Field
ASCII mode
fixed character string
Converted ASCII
code data [H]
Start
‘:’
3A
Slave address [H]
‘0’, ‘1’
3031
Function code [H]
‘0’, ‘3’
3033
Start address [H]
‘9’, ‘0’, ‘1’, ‘0’
39303130
Number of registers [H]
‘0’, ‘0’, ‘0’, ‘2’
30303032
Error check [H]
‘5’, ‘A’ (In accordance with LRC calculation) 3541
End
‘CR’, ‘LF’
0D0A
The response to the query is as follows.
Response: 01 03 04 02 38 C0 94 6A [CR] [LF]
Field
ASCII mode
fixed character string
Converted ASCII
code data [H]
Start
‘:’
3A
Slave address [H]
‘0’, ‘1’
3031
Function code [H]
‘0’, ‘3’
3033
Number of data bytes [H]
‘0’, ‘4’ (4 bytes = 2 registers)
3034
Data 1 [H]
‘0’, ‘2’, ‘3’, ‘8’
30323338
Data 2 [H]
‘C’, ‘0’, ‘9’, ‘4’
43303934
Error check [H]
‘6’, ‘A’ (In accordance with LRC calculation) 3641
End
‘CR’, ‘LF’
0D0A
The system timer value is “0238C094” o Convert into decimal number o 37273748 ms
The total time since the controller power is turned on is 10.3538 hours.
Note The data of the response example is simply an example and will vary depending on
various conditions.