Modbus – IAI America ROBO Cylinder Series User Manual

Page 253

Advertising
background image

6. Modbus

ASCII

245

Modbus

(4) Query sample

A sample query that resets the alarms of a controller of axis No. 0 is shown below.

First time

01 05 04 07 FF 00 F0

--- Execute alarm reset

Second time 01 05 04 07 00 00 EF

--- Restore 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’, ‘7’

30343037

Changed data [H]

First time: ‘F’, ‘F’, ‘0’, ‘0’

Second time: ‘0’, ‘0’, ‘0’, ‘0’

(Write 0000

H

after resetting alarms to restore

the normal status.)

46463030

30303030

Error check [H]

First time: ‘F’, ‘0’ (in accordance with LRC

calculation)

Second time: ‘E’, ‘F’ (in accordance with

LRC calculation)

4630

4546

End

‘CR’, ‘LF’

0D0A

If the change is successful, the response message will be the same as the query.

Advertising