YASKAWA
SIEP C730600 0E YAI Modbus TCP/IP Technical Manual
37
Description
Data (Hex.)
Lower
04
*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 reading the starting register 0020 (Hex.) from the PLC:
1.
The PLC sends out a command specifying the starting register 001F (Hex.) to the network.
2.
The drive automatically convert the starting register 001F (Hex.) to 0020 (Hex.).
3.
The drive responds the value of register address 0020 (Hex.) to the PLC.
Table 7.10 Example Read Multiple Registers Response
Description
Data (Hex.)
Slave Address (Unit Identifier)
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
Table 7.11 Example Read Multiple Registers Error Response
Description
Data (Hex.)
Slave Address (Unit Identifier)
02
Error Code
83
Exception Code
02
06 (06 (Hex.)) 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 7.12 Write Single Register Command
Description
Byte No.
Data (Hex.)
Slave Address (Unit Identifier)
1
00 - FF
Function Code
1
06
Register Address
2
0000 - FFFF
Register Values
2
0000 - FFFF
Table 7.13 Write Single Register Response
Description
Byte No.
Data (Hex.)
Slave Address (Unit Identifier)
1
00 - FF
Function Code
1
06
Register Address
2
0000 - FFFF
Register Values
2
0000 - FFFF
Table 7.14 Write Single Register Error Response
Description
Byte No.
Data (Hex.)
Slave Address (Unit Identifier)
1
00 - FF
Error Code
1
86
Exception Code
1
Refer to Modbus TCP/IP Exception Codes.