YASKAWA
SIEP C730600 0E YAI Modbus TCP/IP Technical Manual
39
*1
This option is set up to use PLC based (holding) register addressing (base 1). The drive will automatically convert the register
address to one more than the address sent over the network before it will respond.
When writing the starting register 0258 (Hex.) from the PLC:
1.
The PLC sends out a command specifying the starting register 0257 (Hex.) to the network.
2.
The drive automatically convert the starting register 0257 (Hex.) to 0258 (Hex.).
3.
The drive responds the value of register address 0258 (Hex.) to the PLC.
*2
N = Quantity of Registers (1 to 16)
Table 7.19 Write Multiple Registers Response
Description
Byte No.
Data (Hex.)
Slave Address (Unit Identifier)
1
00 - FF
Function Code
1
10
Starting Register
2
0000 - FFFF
Quantity of Registers
2
N
*1
N = Quantity of Registers
Table 7.20 Write Multiple Registers Error Response
Description
Byte No.
Data (Hex.)
Slave Address (Unit Identifier)
1
01
Error Code
1
90
Exception Code
1
Refer to Modbus TCP/IP Exception Codes.
Examples of Multiple Registers Write Command
lists command examples when writing register values 0001 (Hex.) and 0258 (Hex.) to register
addresses 0001 (Hex.) and 0002 (Hex.) in a drive with the slave address (unit identifier) 01 (Hex.).
shows examples of responses indicating that the write command has been executed successfully. The
command specifies the beginning of the register address and the number of registers.
shows examples of an error response when writing to a register. The exception code is 02 (Hex.)
(indicating a register number error).
Table 7.21 Examples of Multiple Registers Write Command
Description
Data (Hex.)
Slave Address (Unit Identifier)
01
Function Code
10
Starting Register
Upper
00
Lower
01
Quantity of Registers
Upper
00
Lower
02
Number of Data Bytes
04
First Register Data
Upper
00
Lower
01
Next Register Data
Upper
02
Lower
58
*1
This option is set up to use PLC based (holding) register addressing (base 1). The drive will automatically convert the register
address to one more than the address sent over the network before it will respond.
When writing the starting register 0001 (Hex.) from the PLC:
1.
The PLC sends out a command specifying the starting register 0000 (Hex.) to the network.
2.
The drive automatically convert the starting register 0000 (Hex.) to 0001 (Hex.).
3.
The drive responds the value of register address 0001 (Hex.) to the PLC.
Table 7.22 Example Write Multiple Registers Response
Description
Data (Hex.)
Slave Address (Unit Identifier)
01
Function Code
10
Starting Register
Upper
00