5.6.2 Preset single resister [06H]. RKC INSTRUMENT SA200

Add to My manuals
60 Pages

advertisement

5.6.2  Preset single resister [06H]. RKC INSTRUMENT SA200 | Manualzz

5. MODBUS COMMUNICATION PROTOCOL

5.6.2 Preset single register [06H]

The query message specifies data to be written into the designated holding register. The write data is arranged in the query message with high-order 8 bits first and low-order 8 bits next. Only R/W holding registers can be specified.

Example: Data is written into the holding register 0010H of slave address 1.

Query message

Slave address

Function code

Holding register number

Write data

CRC-16

High

Low

High

Low

High

Low

01H

06H

00H

10H

01H

02H

08H

5EH

Any data within the range

Normal response message

Slave address

Function code

Holding register number

Write data

CRC-16

High

Low

High

Low

High

Low

Error response message

Slave address

80H + Function code

Error code

CRC-16 High

Low

01H

86H

02H

C3H

A1H

01H

06H

00H

10H

01H

02H

08H

5EH

Contents will be the same as query message data.

36

IMR01D02-E3

advertisement

Related manuals