Delta Electronics — 6.22.2 Explanation of Ethernet Instructions

Chapter 6 Applied Instructions Example 2 1. This example illustrates how to establish a UDP connection between a computer and an AS 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. 6-711 6 6 _