Write multiple registers - 10h – Yaskawa GPD 515-G5 Modbus RTU User Manual

Page 29

Advertising
background image

The Message Format 6-9

Write Multiple Registers - 10h

The multiple register write function (10h) allows the master to write data to the driveís registers.
The multiple register write message format is shown below.

Command Message

Each GPD 515ís slave address is set in advance by the drive parameter H5-01. Valid slave
addresses must be in the range of 1 to 31 decimal (1 to 1F hex). No two slaves may have the
same address. The master addresses the slave by placing the slave address in the address field
of the message. In the command message above, the slave is addressed at 1.

By setting the slave address to zero (0) in the address section of the message, the master can
send operation signals (register 1h) and frequency reference (register 2h) to all slaves on the
network. The master can send a single transmission to all the slaves simultaneously. This is
called simultaneous broadcasting. In a simultaneous broadcast message all of the slaves on the
network act upon one message. Simultaneous Broadcast registers are shown in Chapter 7,
Registers (page 7-2).

The function code of this message is 10h (write multiple registers).

The starting register number is the first register to be written to. In the command message above
the starting number is 01h, indicating that the first register is the frequency reference. A listing of
the GPD 515ís registers is shown in Chapter 7, Registers.

01h

SLAVE ADDRESS

FUNCTION CODE

10h

00h

01h

START-
ING
REGISTER
NO.

UPPER

LOWER

04h

CRC-16

NO. OF DATA BYTES

QTY.

00h

02h

UPPER

LOWER

00h

01h

UPPER

LOWER

DATA TO
NEXT
REGISTER

17h

70h

UPPER

LOWER

DATA TO
FIRST
REGISTER

6Dh

B7h

LOWER

UPPER

The first register, 01h
(Operation Command) has
a value of 01h or 1 dec.
(forward run command)

The next register, 02h
(Frequency Reference) has
a value of 1770h or 6000
dec. (60.00 Hz)

Advertising
This manual is related to the following products: