DVP-15MC Series Motion Controller Operation Manual
8-200
103
MODBUS TCP message response timeout
1. Check if the Ethernet connection is
normal.
2. Increase the timeout period by
modifying the value of Timeout
parameter of ETH_Link_Config
106
Transaction identifier error (in the message
header)
Make sure that the format of the response
message from the slave is correct.
107
Protocol identifier error (in the message
header)
Make sure that the format of the response
message from the slave is correct.
108
Modbus TCP message length error (in the
message header)
Make sure that the length of the response
message from the slave is correct.
110
The establishment of the link is re-
performed when the TCP link is
Disable the current link before re-
establishing the link.
8.14.2.4 MODBUS TCP Data Exchange Example
Programming Example 1
Example of reading and writing word registers in the slave
Example explanation
1. The motion controller is the MODBUS TCP master, DVP12SE is the MODBUS TCP slave
and the IP address of DVP12SE is 192.168.1.10.
2. The motion controller writes the values in %MW10~%MW19 to D0~D9 in DVP12SE, then
reads the values in D100~D109 in DVP12SE and stores the read values in
%MW110~%MW119.
Variable table and program
ETH_Link_Config0 ETH_Link_Config
Config0_Ex
BOOL
Config0_En
BOOL TRUE
Config0_SIP1
USINT 192
Config0_SIP2
USINT 168
Config0_SIP3
USINT 1
Config0_SIP4
USINT 10
Config0_SNodeID
USINT 0
Config0_OT
USINT 0
Config0_En_FunCode17
BOOL FALSE
Config0_WBf_Add
%MW0 UINT
Config0_WBf_Off
USINT 10
Config0_WDes_Add
UINT 16#1000
Config0_WLTH
UINT 10