Instruction Manual

6. Modbus ASCII
251
Modbus
(4) Sample query
A sample query that executes home return operation of a controller of axis No. 0 is shown below.
Query:
First time: 01 05 04 0B 00 00 EB --- Set normal status
Second time: 01 05 04 0B FF 00 EC --- Execute home return
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’, ‘B’ 30343042
Changed data [H] First time: ‘0’, ‘0’, ‘0’, ‘0’
Second time: ‘F’, ‘F’, ‘0’, ‘0’
(Send data twice to set the edge.)
30303030
46463030
Error check [H] First time: ‘E’, ‘B’ (In accordance with LRC
calculation)
Second time: ‘E’, ‘C’ (In accordance with
LRC calculation)
4542
4543
End ‘CR’, ‘LF’ 0D0A
If the change is successful, the response message will be the same as the query.