Modbus – IAI America ROBO Cylinder Series User Manual

Page 232

Advertising
background image

6. Modbus

ASCII

224

Modbus

(4) Sample query

A sample query that reads the current ampere value (address 900C

H

) of a controller of axis No. 0 is

shown below.

Query: 01 03 90 0C 00 02 5E [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’, ‘0’, ‘C’

39303043

Number of registers [H]

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

30303032

Error check [H]

‘5’, ‘E’ (In accordance with LRC calculation) 3545

End

‘CR’, ‘LF’

0D0A

The response to the query is as follows.

Response: 01 03 04 00 00 01 C8 2F [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’, ‘4’ (4 bytes = 2 registers)

3034

Data 1 [H]

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

30303030

Data 2 [H]

‘0’, ‘1’, ‘C’, ‘8’

30314338

Error check [H]

‘2’, ‘F’ (In accordance with LRC calculation) 3246

End

‘CR’, ‘LF’

0D0A

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

The current ampere monitor value is 456 mA.

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

various conditions.

Advertising