2 Instruction Descriptions
2-764
NJ-series Instructions Reference Manual (W502)
SktUDPSend
The SktUDPSend instruction sends data from a UDP port for the built-in EtherNet/IP.
The SktUDPSend instruction sends send data SendDat[] from the socket that is specified with Socket.
The number of bytes to send is specified with Size. The remote node is specified with Socket.DstAdr.
Transmission of SendDat[] to the send buffer is completed when the instruction is completed normally
(i.e., when the value of Done changes to TRUE).
Instruction Name
FB/
FUN
Graphic expression ST expression
SktUDPSend UDP Socket
Send
FB None SktUDPSend_instance(Execute,
Socket, SendDat, Size, Done,
Busy, Error, ErrorID);
Variables
Name Meaning I/O Description Valid range Unit Default
Socket Socket
Input
Socket
---
--- ---
SendDat[]
(array)
Send data Send data Depends on data
type.
Size Send data
size
Send data size 0 to 2000 Bytes 1
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Socket Refer to Function for details on the structure _sSOCKET.
SendDat[]
(array)
OK
Size OK
Function