Modbus – IAI America ROBO Cylinder Series User Manual

Page 240

Advertising
background image

6. Modbus

ASCII

232

Modbus

(4) Sample query

A sample query that reads the zone status (address 9013

H

) of a controller of axis No. 0 is shown

below.

Query: 01 03 90 13 00 01 58 [CR] [LF]

Field

ASCII mode

fixed character string

Converted ASCII

code data [H]

Start

‘:’

3A

Slave address [H]

‘0’, ‘1’

3031

Function code [H]

‘0’, ‘3’

3033

Start address [H]

‘9’, ‘0’, ‘1’, ‘3’

39303133

Number of registers [H]

‘0’, ‘0’, ‘0’, ‘1’

30303031

Error check [H]

‘5’, ‘8’ (In accordance with LRC calculation) 3538

End

‘CR’, ‘LF’

0D0A

The response to the query is as follows.

Response: 01 03 02 00 00 FA [CR] [LF]

Field

ASCII mode

fixed character string

Converted ASCII

code data [H]

Start

‘:’

3A

Slave address [H]

‘0’, ‘1’

3031

Function code [H]

‘0’, ‘3’

3033

Number of data bytes [H]

‘0’, ‘2’ (2 bytes = 1 register)

3032

Data 1 [H]

‘0’, ‘0’, ‘0’, ‘0’

30303030

Error check [H]

‘F’, ‘A’ (In accordance with LRC calculation) 4641

End

‘CR’, ‘LF’

0D0A

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

various conditions.

Advertising