Jump to main content

Writing to Non-Consecutive Holding Registers

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

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

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

  • 0002H: Frequency Reference = 60.00 Hz (6000 = 1770H)

  • 0004H: Torque Limit = 150.0% (1500 = 05DCH)

When you rewrite the parameter value with the write command through the H5-11 [Comm ENTER Command Mode] setting, you must use the Enter command to save and enable the contents of the changes. Refer to Enter Command for more information.

Table 1. Message Example When Writing to 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

0E

Lower

0E

CRC-16

Upper

EA

4

Data Qty

Upper

00

Data Qty

Upper

00

Lower

31

5

Lower

02

Lower

02

-

6

Byte No.

Upper

00

CRC-16

Upper

D5

-

7

Lower

04

Lower

FC

-

8

Holding register 1 No.

Upper

00

-

-

9

Lower

02

-

-

10

Holding register 1 data

Upper

17

-

-

11

Lower

70

-

-

12

Holding register 2 No.

Upper

00

-

-

13

Lower

04

-

-

14

Holding register 2 data

Upper

05

-

-

15

Lower

DC

-

-

16

CRC-16

Upper

55

-

-

17

Lower

59

-

-

Note:

The number of bytes set in the command message set the data quantity × 2 during the command message.