Delta AS Series Programming Manual page 1086

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 2 (S
= 0)
3
1.
This example illustrates how to establish an UDP connection between a computer and an AS Series PLC.
a) ISPSoft → HWCONFIG (Ethernet-Advanced → Socket → 1
b) SCONF instruction
c) Refer to point 3 in Example 1 for setting up the connection.
2.
Establishing a connection (Network 1); When M0 is ON, the system checks if the socket is closed (SM1334 = OFF)
and then the system performs the connection procedure. Once the socket is connected (SM1334 = ON), M0 is
switched to OFF.
3.
Sending data (Network 3): When M1 is ON, the system checks if the socket has been connected (SM1334 = ON),
and then the system starts to send the data. After the data has been sent, M1 is switched to OFF.
4.
Receiving data (Network 4): When M2 is ON, the system checks if the socket has been connected and the flag
(SM1335) for data received is ON. If so, the data has already been received. But that does NOT necessary mean it
has reached its maximum length of receiving. After the data has been received (SM1335 = ON), M2 and SM1335
are switched to OFF.
5.
Closing a connection (Network 5): When M3 is ON, the system checks if the socket to be closed has been
connected (SM1334 = ON), and if the connection is not yet closed (SM1337 = OFF). If so, the system is going to
close the connection. If the socket has not been connected, the system does not execute the instruction. After the
connection is closed, M3 is switched to OFF.
Ch ap te r 6 Ap pl ie d Instruc ti ons
st
UDP Socket Connection)
6_
6
6 - 8 0 7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents