7 Modbus TCP/IP Messaging
YASKAWA ELECTRIC SIEP C730600 59A V1000 Option Modbus TCP/IP Technical Manual 27
Table 17 Example Read Multiple Registers Response
Table 18 Example Read Multiple Registers Error Response
06 (06 H) Write Single Register
This function code is used to write to a single register in the drive. The command specifies the address of the register to
be written and the value to write. The normal response is an echo of the request, returned after the register contents have
been written.
Table 19 Write Single Register Command
Table 20 Write Single Register Response
Table 21 Write Single Register Error Response
Examples of Register Write Command
Table 22 lists command examples when writing register value 0003H to register address 0001H in a drive with the slave
address (unit identifier) 01H.
Table 23 shows examples of responses indicating that the write command has been executed successfully. The command
specifies the value and the register address to write to.
Table 24 shows examples of an error response when writing to a register. The exception code is 21H (indicating a register
number error).
Description Data (H)
Slave Address 02
Function Code 03
Number of Data Bytes 08
Starting Register
Upper 17
Lower 70
Next Register
Upper 17
Lower 70
Next Register
Upper 01
Lower 09
Last Register
Upper 00
Lower 00
Description Data
Slave Address 02
Error Code 83
Exception Code 02
Description Byte(s) Data (H)
Slave Address 1 00 to FF
Function Code 1 06
Register Address 2 0000 to FFFF
Register Value 2 0000 to FFFF
Description Byte(s) Data (H)
Slave Address 1 00 to FF
Function Code 1 06
Register Address 2 0000 to FFFF
Register Value 2 0000 to FFFF
Description Byte(s) Data (H)
Slave Address 1 00 to FF
Error Code 1 86
Exception Code 1 See Modbus TCP/IP Exception Codes section.
Modbus_conditional_E.fm 27 ページ 2012年3月7日 水曜日 午前11時31分