Delta AS Series Programming Manual page 1091

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
API
Instruction code
2201
Device
X
S
1
S
2
Data
type
S
1
S
2
Symbol
Explanation
1.
This instruction sends data through the socket specified by S
open a UDP socket.
_6
_6
2.
S
is the socket number. It should correspond to the Ethernet socket number; up to 4 can be set.
2
3.
The operand S
range, error code H'2003 shows on the PLC.
4.
Before using this instruction, use the SOPEN instruction (API 2200) to open the socket. If the flag for the successful
connection of the TCP socket is ON, or the flag for started connection of the UDP socket is ON, use this instruction.
5.
If data is sent through a TCP socket, and no error occurs after the instruction is executed, the data is sent, and the
flag for sending data is ON. If data is sent successfully, the flag for sent data is ON, and the flag for sending data is
OFF. If an error occurs, the error flag is ON.
TCP Socket Number
6 - 8 1 2
SSEND
P
Y
M
S
T
C
must be either 0 or 1 (default: 0); the operand S
1
Data Sending
1
SM1275
2
SM1283
3
SM1291
4
SM1299
Operand
,S
S
1
2
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
: Socket mode
S
1
: Socket number
S
2
. Set S
to 1 to open a TCP socket, and set S
1
1
must be between 1–4 (default: 1). If exceeding the
2
Data Sent
SM1272
SM1280
SM1288
SM1296
Function
Sending data through a socket
SR
E
K
16#
"$"
32-bit instruction
AS
-
Error Flag
SM1277
SM1285
SM1293
SM1301
F
to 0 to
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents