Writing to multiple registers – Yaskawa R1000 Series Power Regenerative Unit User Manual
Page 187

C.8 Message Examples
YASKAWA ELECTRIC TOEP C710656 08B YASKAWA Power Regenerative Unit - R1000 Instruction Manual
187
MEMO
BUS/Mod
bus
Co
mmunica
tion
s
C
◆ Writing to Multiple Registers
Function code 10H allows the user to write multiple regenerative unit MEMOBUS/Modbus registers with one message.
This process works similar to reading registers, in that the address of the first register to be written and the data quantity
are set in the command message. The data to be written must be consecutive so that the register addresses are in order,
starting from the specified address in the command message. The data order must be high byte then lower byte.
The following table shows an example of a message where 2000H has been set with a Multi-Function Analog Output 1
and 4000H has been set with a Multi-Function Analog Output 2 for the slave 1 regenerative unit.
If parameter values are changed using the Write command, an Enter command may be necessary to activate or save the
data depending on the setting of H5-11. Refer to
H5-11: Communications Enter Function Selection on page 181
and
for detailed descriptions.
Note: Double the number of the data quantity for the number of bytes in the command message.
Command Message
Response Message (normal)
Slave Address
01H
Slave Address
01H
Function Code
10H
Function Code
10H
Starting No.
Upper
00H
Starting No.
Upper
00H
Lower
07H
Lower
07H
Data Quantity
Upper
00H
Data Quantity
Upper
00H
Lower
02H
Lower
02H
Number of Bytes
04H
CRC-16
Upper
F0H
Starting Data
Upper
20H
Lower
09H
Lower
00H
Next Data
Upper
40H
Lower
00H
CRC-16
Upper
88H
Lower
49H
TOEP_C710656_08B_1_0.book 187 ページ 2015年2月5日 木曜日 午前10時7分