Modbus – IAI America ROBO Cylinder Series User Manual

Page 73

Advertising
background image

5. Modbus RTU

65

Modbus

(5) Query sample

A sample query that queries addresses 9000

H

to 9009

H

of a controller of axis No. 0 is shown below.

z

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

01 03 90 00 00 0A E8 CD

Field

RTU mode

8-bit data

Start

Silent interval

Slave address [H]

01

Function code [H]

03

Start address [H]

9000

Number of registers [H] 000A (10 registers)

Error check [H]

E8CD (in accordance with

CRC calculation)

End

Silent interval

The response to the query is as follows.

z

Response (silent intervals are inserted before and after the response)

01 03 14 00 00 00 00 00 00 00 00 6E 00 60 18 80 00 23 C7 00 00 00 19 18 A6

Field

RTU mode

8-bit data

Start

Silent interval

Slave address [H]

01

Function code [H]

03

Number of data bytes [H] 14 (20 bytes = 10 registers)

Data 1 [H]

00 00 00 00 (current position monitor)

Data 2 [H]

00 00 (present alarm code query)

Data 3 [H]

00 00 (input port query)

Data 4 [H]

6E 00 (output port query)

Data 5 [H]

60 18 (device status 1 query)

Data 6 [H]

80 00 (device status 2 query)

Data 7 [H]

23 C7 (expansion device status query)

Data 8 [H]

00 00 00 19 (system status query)

Error check [H]

18A6 (in accordance with CRC calculation)

End

Silent interval

Note If the response example is simply an example and will vary depending on

various conditions.

Advertising