YASKAWA JOHB-SMP3-MA Technical Manual page 31

Modbus tcp/ip
Table of Contents

Advertisement

Slave Address (Unit Identifier)
Exception Code
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.
Description
Slave Address (Unit Identifier)
Function Code
Register Address
Register Values
Description
Slave Address (Unit Identifier)
Function Code
Register Address
Register Values
Description
Slave Address (Unit Identifier)
Error Code
Exception Code
Examples of Register Write Command
Table 7.15
lists command examples when writing register value 0003 (Hex.) to register address 0001 (Hex.) in a
drive with the slave address (unit identifier) 01 (Hex.).
Table 7.16
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 7.17
shows examples of an error response when writing to a register. The exception code is 21 (Hex.)
(indicating an invalid value).
*1
Register Address
Register Values
*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 register address 0001 (Hex.) from the PLC:
1.
The PLC sends out a command specifying the register address 0000 (Hex.) to the network.
2.
The drive automatically convert the register address 0000 (Hex.) to 0001 (Hex.).
3.
The drive responds the value of register address 0001 (Hex.) to the PLC.
YASKAWA SIEP C730600 0IB Modbus TCP/IP Technical Manual
Table 7.11 Example Read Multiple Registers Error Response
Description
Error Code
Table 7.12 Write Single Register Command
Table 7.13 Write Single Register Response
Table 7.14 Write Single Register Error Response
Table 7.15 Examples of Register Write Command
Description
Slave Address (Unit Identifier)
Function Code
Byte No.
1
1
2
2
Byte No.
1
1
2
2
Byte No.
1
1
1
Upper
Lower
Upper
Lower
7 Modbus TCP/IP Messaging
Data (Hex.)
02
83
02
Data (Hex.)
00 - FF
06
0000 - FFFF
0000 - FFFF
Data (Hex.)
00 - FF
06
0000 - FFFF
0000 - FFFF
Data (Hex.)
00 - FF
86
Refer to Modbus TCP/IP Exception Codes.
Data (Hex.)
01
06
00
01
00
03
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Johb-smp3

Table of Contents