7 Modbus TCP/IP Messaging
28 YASKAWA ELECTRIC SIEP C730600 59A V1000 Option Modbus TCP/IP Technical Manual
Table 22 Example Write Single Register Command
Table 23 Example Write Single Register Response
Table 24 Example Write Single Register Error Response
16 (10 H) Write Multiple Registers
This function code is used to write to a contiguous block of registers in the drive. The command specifies the starting
register address, the number of registers and the values to be written. The command packs two bytes per register. For
each register in the command the first byte contains the most significant bits and the second byte contains the least
significant bits. The normal response returns the function code, starting address and quantity of registers written.
Table 25 Write Multiple Register Command
Table 26 Write Multiple Register Response
Table 27 Write Multiple Register Error Response
Description Data (H)
Slave Address 01
Function Code 06
Register Address
Upper 00
Lower 01
Register Value
Upper 00
Lower 03
Description Data (H)
Slave Address 01
Function Code 06
Register Address
Upper 00
Lower 01
Register Value
Upper 00
Lower 03
Description Data (H)
Slave Address 01
Error Code 86
Exception Code 21
Description
<1> N = Quantity of Registers (range is 1 - 16)
Byte(s) Data (H)
Slave Address 1 00 to FF
Function Code 1 10
Starting Register 2 0000 to FFFF
Quantity of Registers 2 N
<1>
Number of Data Bytes 1 N <1> x 2
Register Values N <1> x 2 0000 to FFFF
Description
<1> N = Quantity of Registers
Byte(s) Data (H)
Slave Address 1 00 to FF
Function Code 1 10
Starting Register 2 0000 to FFFF
Quantity of Registers 2 N
<1>
Description Byte(s) Data (H)
Slave Address 1 01
Error Code 1 90
Exception Code 1 See Modbus TCP/IP Exception Codes section.
Modbus_conditional_E.fm 28 ページ 2012年3月7日 水曜日 午前11時31分