Modbus – IAI America ROBO Cylinder Series User Manual
Page 201

6. Modbus
ASCII
193
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.
Query: 01038400000276 [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’, ‘0’
38343030
Number of registers
‘0’, ‘0’, ‘0’, ‘2’
30303032
Error check
‘7’, ‘6’ (in accordance with
CRC calculation)
3736
Trailer
‘CR’, ‘LF’
0D0A
The response to the query is as follows.
Response: 0103040000021FD7[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]
‘0’, ‘2’, ‘1’, ‘F’
30323146
Error check [H]
‘D’, ‘7’ (in accordance with
LRC calculation)
4337
Trailer
‘CR’, ‘LF’
0D0A
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.