Instruction Manual

6. Modbus ASCII
253
Modbus
(4) Sample query
A sample query that moves the actuator of a controller of axis No. 0 to the position specified by the
position number stored in the position number specification register (POSR:0D03
H
) is shown below.
Query:
First time: 01 05 04 0C FF 00 EB --- Movement command
Second time: 01 05 04 0C 00 00 EA --- Normal status
Field ASCII mode 8-bit data Converted ASCII
code data [H]
Start ‘:’ 3A
Slave address [H] ‘0’, ‘1’ 3031
Function code [H] ‘0’, ‘5’ 3035
Start address [H] ‘0’, ‘4’, ‘0’, ‘C’ 30343043
Changed data [H] First time: ‘F’, ‘F’, ‘0’, ‘0’
Second time: ‘0’, ‘0’, ‘0’, ‘0’
(Restore the normal status.)
46463030
30303030
Error check [H] First time: ‘E’, ‘B’ (In accordance with LRC
calculation)
Second time: ‘E’, ‘A’ (In accordance with
LRC calculation)
4542
4541
End ‘CR’, ‘LF’ 0D0A
If the change is successful, the response message will be the same as the query.