Delta AH500 Programming Manual page 681

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
2202
SRCVD
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 received through the TCP socket, and no error occurs after the instruction is
executed, the data is received, and the flag related to the data's being received is ON. If the data
is received successfully, the flag related to the data's having been received is ON, and the flag
related to the data's being received 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 received through the UDP socket, and no error occurs after the instruction is
executed, the flag related to the data's being received is ON. After the data is received, the flag
related to the data's having been received is ON. If an error occurs, the error flag is ON.
UDP socket number
1
2
3
4
5
6
7
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 receiving the
data
SM1276
SM1284
SM1292
SM1300
SM1308
SM1316
SM1324
SM1332
Being receiving the
data
SM1337
SM1342
SM1347
SM1352
SM1357
SM1362
SM1367
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Function
Receiving 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 received the
data
SM1271
SM1279
SM1287
SM1295
SM1303
SM1311
SM1319
SM1327
Having received the
data
SM1335
SM1340
SM1345
SM1350
SM1355
SM1360
SM1365
K
16# "$"
DF
-
Error flag
SM1277
SM1285
SM1293
SM1301
SM1309
SM1317
SM1325
SM1333
Error flag
SM1338
SM1343
SM1348
SM1353
SM1358
SM1363
SM1368
6 - 5 1 3

Advertisement

Table of Contents
loading

Table of Contents