Modbus – IAI America ROBO Cylinder Series User Manual

Page 145

Advertising
background image

5. Modbus RTU

137

Modbus

(4) Query sample

[1] A sample query that makes a controller of axis No. 0 jog is shown below.

Query (silent intervals are inserted before and after the query)

01 05 04 16 FF 00 6C CE

Field

RTU mode

8-bit data

Start

Silent interval

Slave address [H]

01

Function code [H]

05

Start address [H]

0416

Changed data [H]

FF00

Error check [H]

6CCE (in accordance with

CRC calculation)

End

Silent interval

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

[2] A sample query that makes a controller of axis No. 0 inch is shown below.

Query (silent intervals are inserted before and after the query)

First time

01 05 04 16 FF 00 6C CE --- Perform inching movement

Second time 01 05 04 16 00 00 2D 3E --- Restore the normal status

Field

RTU mode

8-bit data

Start

Silent interval

Slave address [H]

01

Function code [H]

05

Start address [H]

0416

Changed data [H]

First time: FF00

Second time: 0000

(Restore the normal status.)

Error check [H]

First time: 6CCE

(in accordance with CRC calculation)

Second time: 2D3E

(in accordance with CRC calculation)

End

Silent interval

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

Advertising