Jump to main content

Reading the Contents of Non-Consecutive Holding Registers

The drive uses function code 67 (Hex.) and subfunction code 010D (Hex.) to read data with a maximum of 120 holding registers.

You must give the holding register number from which to read separately.

Table 1 shows example messages when you read the frequency reference and torque limit from the drive for slave 1. Table 1 uses these specified holding registers data for the examples.

  • 0024H:U1-01 [Frequency Reference] = 60.00 Hz (6000 = 1770H)

  • 0028H:U1-09 [Torque Reference] = 100.0% (1000 = 03E8H)

Table 1. Message Example When Reading the Contents of Non-Consecutive Holding Registers

Byte

Command Message

Response Message (when normal)

Response Message (when there is a fault)

                 
   

Setting Data

(Hex.)

   

Setting Data

(Hex.)

   

Setting Data

(Hex.)

0

Slave address

01

Slave address

01

Slave address

01

1

Function Code

67

Function Code

67

Function Code

E7

2

Subfunction Code

Upper

01

Subfunction Code

Upper

01

Error Codes

02

3

Lower

0D

Lower

0D

CRC-16

Upper

EA

4

Data Qty

Upper

00

Byte No.

Upper

00

Lower

31

5

Lower

02

Lower

04

-

6

Holding register 1 No.

Upper

00

Holding register 1 data

Upper

17

-

7

Lower

24

Lower

70

-

8

Holding register 2 No.

Upper

00

Holding register 2 data

Upper

03

-

9

Lower

28

Lower

E8

-

10

CRC-16

Upper

8B

CRC-16

Upper

47

-

11

Lower

29

Lower

ED

-

Note:

The number of bytes set within the response message sets twice the number of data contained in the command message.