Delta AH500 Programming Manual page 678

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
2201
SSEND
Device X
Y
M
S
1
S
2
Symbol:
Explanation:
1. S
is 1 if users want to open 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 using this instruction, users need to use the instruction SOPEN to open the socket. If the
flag related to the connection's being successful is ON, or the flag related to the connection's
having been started is ON, this instruction can be used.
4. If the data is sent through the TCP socket, and no error occurs after the instruction is executed,
the data is sent, and the flag related to the data's being sent is ON. If the data is sent
successfully, the flag related to the data's having been sent is ON, and the flag related to the
data's being sent is OFF. If an error occurs, the error flag is ON.
TCP socket number
1
2
3
4
5
6
7
8
5. If the data is sent through the UDP socket, and no error occurs after the instruction is executed,
the flag related to the data's having been sent is ON. If an error occurs, the error flag is ON.
UDP socket number
1
2
3
4
5
6
7
8
6. Generally, the pulse instruction SSENDP is used.
6 - 5 1 0
Operand
S
, S
P
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 sending the data
SM1275
SM1283
SM1291
SM1299
SM1307
SM1315
SM1323
SM1331
Having sent the data
SM1336
SM1341
SM1346
SM1351
SM1356
SM1361
SM1366
SM1371
Function
Sending the data through the socket
L
SM SR
E
PR
AH500
Word
Word
is 0 if users want to open the UDP socket.
1
should be within the range between
2
Having sent the data
SM1272
SM1280
SM1288
SM1296
SM1304
SM1312
SM1320
SM1328
K
16# "$"
DF
-
Error flag
SM1277
SM1285
SM1293
SM1301
SM1309
SM1317
SM1325
SM1333
Error flag
SM1338
SM1343
SM1348
SM1353
SM1358
SM1363
SM1368
SM1373

Advertisement

Table of Contents
loading

Table of Contents