Modbus – IAI America ROBO Cylinder Series User Manual

Page 206

Advertising
background image

6. Modbus

ASCII

198

Modbus

(5) Query sample

A sample query that reads the present time of PCON-CA (addresses 8420

H

to 8421

H

) of a controller

with axis No. 0 is shown below.

Query: 01038420000256 [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

‘8’, ‘4’, ‘2’, ‘0’

38343230

Number of registers

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

30303032

Error check

‘5’, ‘6’ (in accordance with

CRC calculation)

3536

Trailer

‘CR’, ‘LF’

0D0A

The response to the query is as follows.

Response: 010304172C1B8B56 [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’

3034

Data [H]

‘1’, ‘7’, ‘2’, ‘C’, ‘1’, ‘B’, ‘8’, ‘B’

3137324331423842

Error check [H]

‘5’, ‘6’ (in accordance with

LRC calculation)

3536

Trailer

‘CR’, ‘LF’

0D0A

Current time is 14h:43m:23s April 26, 2012.

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

conditions.

Advertising