Modbus – IAI America ROBO Cylinder Series User Manual
Page 218

6. Modbus
ASCII
210
Modbus
(4) Sample query (Axis No. 0)
A sample query that reads input ports (address 9004
H
) in a controller of axis No. 0 is shown below.
Query: 01039004000167[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’, ‘0’, ‘4’
39303034
Number of registers [H] ‘0’, ‘0’, ‘0’, ‘1’
30303031
Error check [H]
‘6’, ‘7’ (in accordance with LRC calculation)’ 3637
End
‘CR’, ‘LF’
0D0A
The response to the query is as follows.
Response: 010302740086[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’, ‘2’ (2 bytes = 1 register)
3032
Data 1 [H]
‘7’, ‘4’, ‘0’, ‘0’
37343030
Error check [H]
‘8’, ‘6’ (in accordance with LRC calculation) 3836
End
‘CR’, ‘LF’
0D0A
The output port data area is “7400”
H
o
Convert into binary number “0111010000000000”
Note The data of the response example is simply an example and will vary depending on various
conditions