6 08 (0x08) diagnostics, 7 16 (0x10) write multiple registers, 5 response error code – Yokogawa EJX930A User Manual

Page 34: 08 (0x08) diagnostics -3, 16 (0x10) write multiple registers -3, Response error code -3

Advertising
background image

<5. Modbus Communication>

5-3

IM 01C25R05-01EN

5.4.6 08 (0x08) Diagnostics

Support only Return Query Data which reply

receiving data.

Not corresponding to Broadcast.

Request

Items

Size [byte]

Data

Address

1

1 to 247

Function code

1

0x08

Sub-function

2

0x0000

*1

Data

N

Any

CRC

2

-

*1:

0x0000; Support only Return Query Data

Response

Items

Size [byte]

Data

Address

1

1 to 247

Function code

1

0x08

Register Address

2

0x0000

Register Value

N

Request Data

CRC

2

-

5.4.7 16 (0x10) Write Multiple registers

Write data to Holding Registers from the Specified

Starting Address to specified quantity.

Corresponding to Broadcast.

Request

Items

Size [byte]

Data

Address

1

1 to 247

Function code

1

0x10

Starting Address

2

0x0000 to 0xFFFF

Quantity of

Registers

2

-

Byte Count

1

N

*1

×2

Registers Value

*2

N

*1

×2

value

CRC

2

-

*1:

N: The quantity specified by the Quantity of Registers.

*2:

Transmitted by the order: Upper- Lower from the specified

Starting Address.

E.g. 10 in FLOAT format, Transmit order is as

0x41200000.

Response

Items

Size [byte]

Data

Address

1

1 to 247

Function code

1

0x10

Starting Address

2

0x0000 to 0xFFFF

Quantity of

Registers

2

-

CRC

2

-

5.5 Response error code

(1) The message format at error
The device returns the following message without

any operation when incompatibility exists in the

message other than communication error.

Response

Items

Size [byte]

Data

Address

1

1 to 247

Error code

1

*1

Exception code

1

Refer to following

exception code

CRC

2

-

*1:

Error code

Received Function Code(Hex) + 80(Hex) is entered

E.g. When exception is detected in function code 0x01,

Error Code is set to 0x81.

(2) Exception code

Error

code

Name

Meaning

0x01 ILLEGAL

FUNCTION

Function code does not exist

0x02 ILLEGAL DATA

ADDRESS

Specified address is out of

range

0x03 ILLEGAL DATA

VALUE

Specified data is out of quantity

0x04 SLAVE DEVICE

FAILURE

Failure during response

process

(CAP, AMP EEPROM

Failure(AL.01, AL.02))

0x06 SLAVE DEVICE

BUSY

Cannot respond because of

under processing

Advertising
This manual is related to the following products: