Delta AS Series Programming Manual page 1087

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
Example 3 (S
= 2)
3
1.
This example illustrates how a Server receives data of 2K byes from a TCP connection in mode S
2.
SCONF instruction
Remote IP
Remote Port
_6
_6
Local Port
Send Data Address
The defined length of data to be sent
Receive Data Address
The defined length of data to be received
Keep Alive Timer
#1
: This data length is defined by settings in SCONF instruction; for V1.06.20 or previous versions: 512 bytes are
available and for V1.06.30 or later versions: 4096 bytes are available.
3.
When PLC CPU is from STOP to RUN, execute SCONF instruction. Refer to API 2209 SCONF for setting up the
socket.
4.
Establishing a connection (Network 3); When M0 is ON, the system checks if the socket is closed (SM1274 = ON),
NOT connected (SM1270 = OFF), or NOT being connected (SM1273 = OFF). If the socket is not closed, has not
been connected, and is not being connected, the system performs the connection procedure. Once the socket is
connected (SM1270 = ON), M0 is switched to OFF.
6 - 8 0 8
st
1
TCP Socket Connection
192.168.1.106
0
2020
D10000
#1
4096
D15000
4096
#1
30
= 2.
3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents