2-789
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
SktClearBuf
SktClearBuf
The SktClearBuf instruction clears the receive buffer for the specified TCP or UDP socket for the built-in
EtherNet/IP.
The SktClearBuf instruction clears the receive buffer for the socket that is specified with Socket. Clear
processing of the receive 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
SktClearBuf Clear
TCP/UDP
Socket Receive
Buffer
FB None SktClearBuf_instance(Execute,
Socket, Done, Busy, Error,
ErrorID);
Variables
Name Meaning I/O Description Valid range Unit Default
Socket Socket Input Socket
--- --- ---
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.
Function