Modbus function code details, Reading/holding register contents (03h), Write in single holding register (06h) – Yaskawa P7B Drive Bypass User Manual

Page 265: Communications d - 7

Advertising
background image

Communications D - 7

Modbus Function Code Details

!

Reading/Holding Register Contents (03H)

Read the contents of the storage register only for specified quantities. The addresses must be consecutive, starting from a
specified address. The data content of the storage register are separated into higher 8 bits and lower 8 bits.

The following table shows message examples when reading status signals, error details, data link status, and frequency
references from the slave 2 Drive.

Fig. D.6 Function Code 03H Message Example

!

Write In Single Holding Register (06H)

Fig. D.7 Function Code 06H Message Example

Command Message

Response Message

(During Normal Operation)

Response Message

(During Error)

Slave Address

02H

Slave Address

02H

Slave Address

02H

Function Code

03H

Function Code

03H

Function Code

83H

Start

Address

Higher

00H

Data quantity

08H

Error code

03H

Lower

20H

1st storage

register

Higher

00H

CRC-16

Higher

F1H

Quantity

Higher

00H

Lower

65H

Lower

31H

Lower

04H

Next storage

register

Higher

00H

CRC-16

Higher

45H

Lower

00H

Lower

F0H

Next storage

register

Higher

00H

Lower

00H

Next storage

register

Higher

01H

Lower

F4H

CRC-16

Higher

AFH

Lower

82H

Command Message

Response Message

(During Normal Operation)

Response Message

(During Error)

Slave Address

01H

Slave Address

01H

Slave Address

01H

Function Code

06H

Function Code

06H

80H + Function Code

86H

Register
Address

Upper

00H

Register

Address

Upper

00H

Error code

21H

Lower

01H

Lower

01H

CRC-16

Upper

82H

Setting

Data

Upper

00H

Setting

Data

Upper

00H

Lower

78H

Lower

03H

Lower

03H

CRC-16

Upper

98H

CRC-16

Upper

98H

Lower

0BH

Lower

0BH

Advertising