Modbus – IAI America ROBO Cylinder Series User Manual

Page 210

Advertising
background image

6. Modbus

ASCII

202

Modbus

(4) Sample query (Axis No. 0)

A sample query that reads address 9000

H

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

Query: 0103900000026A [CR][LF]

Field

ASCII mode

fixed character string

Converted ASCII code

data [H]

Header

‘:’

3A

Slave address

‘0’, ‘1’

3031

Function code

‘0’, ‘3’

3033

Start address

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

39303030

Number of registers

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

30303032

Error check

‘6’, ‘A’

3641

Trailer

‘CR’, ‘LF’

0D0A

The response to the query is as follows.

Response: 010304000013885D [CR][LF]

Field

ASCII mode

fixed character string

Converted ASCII code

data [H]

Header

‘:’

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]

‘1’, ‘3’, ‘8’, ‘8’

31333838

Error check [H]

‘5’, ‘D’ (in accordance with

LRC calculation)

3544

Trailer

‘CR’, ‘LF’

0D0A

The current position is “00001388” o Convert into decimal number o 5000 (x 0.01 mm)

The current position is 50 mm.

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

conditions.

Advertising