Modbus – IAI America ROBO Cylinder Series User Manual

Page 108

Advertising
background image

5. Modbus RTU

100

Modbus

(4) Query sample

A sample query that read the current ampere monitor (from address 900C

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 0C 00 02 29 08

Field

RTU mode

8-bit data

Start

Silent interval

Slave address [H]

01

Function code [H]

03

Start address [H]

900C

Number of registers [H] 0002

Error check [H]

2908 (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 04 00 00 01 C8 FA 35

Field

RTU mode

8-bit data

Start

Silent interval

Slave address [H]

01

Function code [H]

03

Number of data bytes [H] 04 (4 bytes = 2 registers)

Data 1 [H]

00 00 01 C8

Error check [H]

FA35 (in accordance with CRC calculation)

End

Silent interval

The current ampere value is “000001C8” o Convert into decimal number o 456

The current ampere monitor value is 456mA.

Note The data of the response example is simply an example and will vary depending on

various conditions.

Advertising