2-777
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
SktTCPRcv
SktTCPRcv
The SktTCPRcv instruction reads the data from the receive buffer for a TCP socket for the built-in Eth-
erNet/IP.
Instruction Name
FB/
FUN
Graphic expression ST expression
SktTCPRcv TCP Socket
Receive
FB None SktTCPRcv_instance(Execute,
Socket, TimeOut, Size, RcvDat,
Done, Busy, Error, ErrorID,
RcvSize);
Variables
Name Meaning I/O Description Valid range Unit Default
Socket Socket
Input
Socket
--- --- ---
TimeOut Timeout time 0: No timeouts
1 to 65535: 0.1 to 6553.5s
Depends on data
type.
0.1 s 0
Size Stored size The number of bytes to read
from the receive buffer
0 to 2000 Bytes 1
RcvDat[]
(array)
Receive data In-out Receive data Depends on data
type.
--- ---
RcvSize Receive data
size
Output The number of bytes actually
stored in RcvDat[]
1 to 2000 Bytes ---
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.
TimeOut OK
Size OK
RcvDat[]
(array)
OK
RcvSize OK