0% found this document useful (0 votes)
158 views

Error Code Description: DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming

This document provides examples of using TCP and UDP socket connections for communication through the Ethernet port of a DVP-SE series controller. It includes error codes for connection issues, lists commonly used communication ports, and provides two program examples - one using TCP connection mode and one using UDP connection mode. The examples show how to set the necessary parameters like IP addresses, ports, data addresses, and timeouts. Status bits are used to monitor the connection and for error handling.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
158 views

Error Code Description: DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming

This document provides examples of using TCP and UDP socket connections for communication through the Ethernet port of a DVP-SE series controller. It includes error codes for connection issues, lists commonly used communication ports, and provides two program examples - one using TCP connection mode and one using UDP connection mode. The examples show how to set the necessary parameters like IP addresses, ports, data addresses, and timeouts. Status bits are used to monitor the connection and for error handling.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DVP- ES2 / EX2 / SS2 / SA2 / SX2 / SE&T P O p e r a t i on Ma n ua l - Pr ogr am m i ng

Error code Description


H6214 TCP Socket connection is rejected by the remote equipment
H6215 TCP Socket has not been connected
H6217 TCP Socket connection has been triggered.

13. The already used communication ports are as below.


Communication
UDP/TCP Description
Port
TCP 502 Modbus TCP communication
TCP 44818 EtherNet/IP explicit message
UDP 67
DHCP communication
UDP 68
UDP 2222 EtherNet/IP implicit message
UDP 44818 EtherNet/IP explicit message
UDP 20006
For internal parameter download
UDP 20008

Program Example: (The command is sent and received through the Ethernet port built in DVP-SE.)

This example uses DVP-SE series as the client, M0 to activate and UDP connection mode to send
and receive data. The value in S2 is K1. When the data is received, M100 is set to ON. The relative
parameters are stated below.
TCP Socket Connection
Remote IP 192.168.1.18
Remote port 10000
Local port 1024
Send Data Address D100
Send Data Length 100
Receive Data Address D200
Communication timeout (ms) 5000
1. When M0 is ON, the transmission starts and M1197 is ON. If M1198 is ON, it means
communication errors occur and an error code will be stored in D1176.
2. When the data is received correctly and a response is received from the remote device, M100
will be ON. The data length and the contents will be stored in D200.

3-528
3 . I ns t r uc ti on Se t

Program Example 2: (The command is sent and received through the Ethernet port built in
DVP-SE.)

This example uses DVP-SE series as the client, M2 to activate and TCP connection mode to send
and receive data. The value in S2 is K2. The relative parameters are stated below.
TCP Socket Connection
Remote IP 192.168.1.31
Remote port 10000
Local port 1024
Send Data Address D100
Send Data Length 100
Receive Data Address D200
Communication timeout (ms) 30000
1. Set M1196 to ON. When using the TCP connection mode, it is suggested to set M1196 to ON to
avoid disconnecting if a communication timeout occurs.
2. When M2 is ON, DVP-SE is waiting for the TCP connection to be established. When M100 is
ON, it means the receiving is complete successfully and the data length and contents are stored
in D200 and data in D100 has been sent, the data length is 100 bytes.
3. If M1198 is ON, it means communication errors occur and an error code will be stored in D1176.

3-529
DVP- ES2 / EX2 / SS2 / SA2 / SX2 / SE&T P O p e r a t i on Ma n ua l - Pr ogr am m i ng

3-530

You might also like