Modbus – IAI America ROBO Cylinder Series User Manual
Page 203

6. Modbus
ASCII
195
Modbus
(4) Query sample
A sample query that reads the Total moving distance (addresses 8402
H
to 8403
H
) of a controller with
axis No. 0 is shown below.
Query: 0138402000274 [CR][LF]
Field
ASCII mode
fixed character string
Converted ASCII code
data [H]
Header
‘:’
3A
Slave address
‘0’, ‘1’
3031
Function code
‘0’, ‘3’
3033
Start address
‘8’, ‘4’, ‘0’, ‘2’
38343030
Number of registers
‘0’, ‘0’, ‘0’, ‘2’
30303032
Error check
‘7’, ‘4’ (in accordance with
CRC calculation)
3734
Trailer
‘CR’, ‘LF’
0D0A
The response to the query is as follows.
Response: 01036040000409E1A[CR][LF]
Field
ASCII mode
fixed character string
Converted ASCII code
data [H]
Header
‘:’
3A
Slave address [H]
‘0’, ‘1’
3031
Function code [H]
‘0’, ‘3’
3033
Number of data bytes [H] ‘0’, ‘4’
3034
Data 1 [H]
‘0’, ‘0’, ‘0’, ‘0’
30303030
Data 2 [H]
‘4’, ‘0’, ‘9’, ‘E’
34303945
Error check [H]
‘1’, ‘A’ (in accordance with
LRC calculation)
3141
Trailer
‘CR’, ‘LF’
0D0A
The Total moving distance is “0000409E
H
” o Convert into decimal number o 16542 m
Note The data of the response example is simply an example and will vary depending on various
conditions.