Modbus tcp/ip exception codes, Refer to modbus tcp/ip exception codes, For details – Yaskawa V1000-Series Option SI-EM3D/V Dual Port EtherNet Modbus TCP/IP Technical Manual User Manual

Page 31

Advertising
background image

Read/Write Multiple Registers

Table 32

lists command examples when reading registers 0001H and 0002H and then writing register values 0103H and 0258H

to register addresses 0102H and 0103H in a drive with the slave address (unit identifier) 01H.

Table 33

shows examples of responses indicating that the read/write multiple registers command has been executed

successfully. Read data 1 contains the value of register address 0001H (0001H). Read data 2 contains the value of the register

address 0002H (0002H).

Table 34

shows examples of an error response when the command to read and write to multiple registers has failed. The

exception code is 02H (indicating a register number error).

Table 32 Example Read/Write Multiple Registers Command

Description

Data (Hex)

Slave Address

01

Function Code

17

Read Starting Register

Upper

00

Lower

01

Quantity of Registers to Read

Upper

00

Lower

02

Write Starting Register

Upper

01

Lower

02

Quantity of Registers to Write

Upper

00

Lower

02

Number of Data Bytes

04

First Write Register Data

Upper

01

Lower

03

Next Write Register Data

Upper

02

Lower

58

Table 33 Example Read/Write Multiple Registers Response

Description

Data (Hex)

Slave Address

01

Function Code

17

Number of Data Bytes

04

Read Data 1

Upper

00

Lower

01

Read Data 2

Upper

00

Lower

02

Table 34 Example Read/Write Multiple Registers Error Response

Description

Data (Hex)

Slave Address

01

Error Code

97

Exception Code

02

u

Modbus TCP/IP Exception Codes

When an error occurs, remove the cause and restart communications.

Error Code

Error Name

Cause

01H

Function Code Error
• Attempted to set a function code from a PLC other than 03H, 06H, 10H, and 17H.

02H

Register Number Error
• A register number specified in the command message does not exist.
• Attempted to send a broadcast message using other register numbers than 0001H or 0002H.

7 Modbus TCP/IP Messaging

YASKAWA SIEP YAICOM 17A V1000 Option Dual-Port Modbus TCP/IP SI-EM3D/V Technical Manual

31

Advertising
This manual is related to the following products: