DVP-ES3 Series Programming Manual Example 2 1. This example illustrates how to establish a UDP connection between a computer and an ES3 Series PLC. 2. When M0 is ON, the system checks whether the socket has been connected. If the socket has not been connected, the system performs the connection procedure. After the socket has been connected, M0 is switched to OFF. 3. When M1 is ON, the system sends the data. After the data has been sent, M1 is switched to OFF. 4. When M2 is ON, the system checks whether the socket has been connected and the flag for received data is ON. If the socket has been connected and the flag for received data is ON, the data has already been received. 5.
When M3 is ON, the system checks whether the socket has been connected. If the socket has been connected, the system closes the connection. If the socket has not been connected, the system does not execute the instruction. After the connection is closed, M2 and M3 are switched to OFF. 6-694 6 _