Modbus – IAI America ROBO Cylinder Series User Manual

Page 199

Advertising
background image

6. Modbus

ASCII

191

Modbus

(4) Query sample

A sample query that reads the contents of last occurred alarm (addresses 0500

H

to 0505

H

) of a

controller with axis No. 0 is shown below.

Query: 010305000006F [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

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

30353030

Number of registers

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

30303036

Error check

‘F’, ‘1’ (in accordance with

CRC calculation)

4631

Trailer

‘CR’, ‘LF’

0D0A

The response to the query is as follows.

Response: 01030C0000FFFF00000E8172C643F24[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’, ‘C’ (12 bytes = 6 registers) 3034

Data 1 [H]

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

30303030

Data 2 [H]

‘F’, ‘F’, ‘F’, ‘F’

46464646

Data 3 [H]

‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘E’, ‘8’

3030303030304538

Data 4 [H]

‘1’, ‘7’, ‘2’, ‘C’, ‘6’, ‘4’, ‘3’, ‘F’

3137324336343346

Error check [H]

‘2’, ‘4’ (in accordance with

LRC calculation)

3234

Trailer

‘CR’, ‘LF’

0D0A

Alarm detail code:

0000

H

xxxx

No detail code

Alarm address:

FFFF

H

xxx

Disable(no detail code)

Alarm code:

00E8

H

=0E8xxxEncoder AB phase break error

Alarm occurrence time: 172C643F

H

(conversion)Ÿ2012/04/26 19:53:35[Conversion is refer

to the Section 4.3.2(8)]

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

various conditions.

Note 2 For the detail of an alarm code, check in the instruction manual of the each

controller.

Advertising