YASKAWA JOHB-SMP3-MA Technical Manual page 32

Modbus tcp/ip
Table of Contents

Advertisement

7 Modbus TCP/IP Messaging
Register Address
Register Values
Slave Address (Unit Identifier)
Exception Code
16 (10 (Hex.)) 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.
Description
Slave Address (Unit Identifier)
Function Code
Starting Register 
Quantity of Registers
Number of Data Bytes
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 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)
Description
Slave Address (Unit Identifier)
Function Code
Starting Register
Quantity of Registers
*1
N = Quantity of Registers
Description
Slave Address (Unit Identifier)
Error Code
Exception Code
Examples of Multiple Registers Write Command
Table 7.21
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.).
32
Table 7.16 Example Write Single Register Response
Description
Slave Address (Unit Identifier)
Function Code
Table 7.17 Example Write Single Register Error Response
Description
Error Code
Table 7.18 Write Multiple Registers Command
*1
Table 7.19 Write Multiple Registers Response
Table 7.20 Write Multiple Registers Error Response
Upper
Lower
Upper
Lower
Byte No.
1
1
2
2
1
*2
N
× 2
Byte No.
1
1
2
2
Byte No.
1
1
1
YASKAWA SIEP C730600 0IB Modbus TCP/IP Technical Manual
Data (Hex.)
01
06
00
01
00
03
Data (Hex.)
01
86
21
Data (Hex.)
00 - FF
10
0000 - FFFF
*2
N
*2
N
× 2
0000 - FFFF
Data (Hex.)
00 - FF
10
0000 - FFFF
*1
N
Data (Hex.)
01
90
Refer to Modbus TCP/IP Exception Codes.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Johb-smp3

Table of Contents