Instruction Manual

6. Modbus ASCII
220
Modbus
(4) Sample query
A sample query that reads the system status (address 9008
H
) in a controller of axis No. 0 is shown
below.
Query: 01 03 90 08 00 02 62 [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’, ‘8’ 39303038
Number of registers [H] ‘0’, ‘0’, ‘0’, ‘2’ 30303032
Error check [H] ‘6’, ‘2’ (In accordance with LRC calculation) 3632
End ‘CR’, ‘LF’ 0D0A
The response to the query is as follows.
Response: 01 03 04 00 0C 00 11 DB [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’, ‘0’, ‘0’, ‘C’ 30303043
Data 2 [H] ‘0’, ‘0’, ‘1’, ‘1’ 30303131
Error check [H] ‘D’, ‘B’ (In accordance with LRC calculation) 4442
End ‘CR’, ‘LF’ 0D0A
Note The data of the response example is simply an example and will vary depending on
various conditions.