Delta AH500 Programming Manual page 683

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
2203
SCLOSE P
Device X
Y
M
S
1
S
2
Symbol:
Explanation:
1. S
is 1 if users want to close the TCP socket, and S
1
S
is the socket number.
2
2. The operand S
should be either 0 or 1, and the operand S
1
1 and 8.
3. Before closing the socket, users need to make sure that the socket has been connected.
Otherwise, the instruction is not executed.
4. If the TCP socket is closed by the server, the client continues to be connected to the local
communication port. If the TCP socket is closed is by the client, the client is not connected to the
local communication port. After the instruction is executed to close the TCP socket, the
corresponding flag is OFF.
5. After the instruction is executed to close the UDP socket, the corresponding flag is OFF.
6. If the TCP socket is closed, and no error occurs after the instruction is executed, the PLC is not
connected to the remote device, and the flag related to the connection's being closed is ON. If
the connection is closed successfully, the flag related to the connection's being closed is OFF. If
an error occurs, the error flag is ON.
Socket number
1
2
3
4
5
6
7
8
7. If the UDP socket is close, and no error occurs after the instruction is executed, the flag related
to the connection's having been started is OFF. If an error occurs, the error flag is ON.
Socket number
Operand
S
, S
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (5 Steps) 32-bit instruction
AH500
: Socket mode
S
1
: Socket number
S
2
Being closing the
connection
SM1274
SM1282
SM1290
SM1298
SM1306
SM1314
SM1322
SM1330
1
2
3
4
5
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Closing the socket
L
SM SR
E
PR
AH500
Word
Word
is 0 if users want to close the UDP socket.
1
should be within the range between
2
Error flag
SM1338
SM1343
SM1348
SM1353
SM1358
Function
K
16# "$"
DF
-
Error flag
SM1277
SM1285
SM1293
SM1301
SM1309
SM1317
SM1325
SM1333
6 - 5 1 5

Advertisement

Table of Contents
loading

Table of Contents