Modbus – IAI America ROBO Cylinder Series User Manual

Page 94

Advertising
background image

5. Modbus RTU

86

Modbus

(4) Query sample

A sample query that output port (address 9004

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 04 00 01 E8 CB

Field

RTU mode

8-bit data

Start

Silent interval

Slave address [H]

01

Function code [H]

03

Start address [H]

9004

Number of registers [H] 0001

Error check [H]

E8CB (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 02 68 00 97 84

Field

RTU mode

8-bit data

Start

Silent interval

Slave address [H]

01

Function code [H]

03

Number of data bytes [H] 02 (2 bytes = 1 register)

Data 1 [H]

68 00

Error check [H]

9784 (in accordance with CRC calculation)

End

Silent interval

The input data area address is “6800”

H

, o Convert into binary number

“0110100000000000.”

n

n

INT15 -------------------- INT 1

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

various conditions.

Advertising