2-667
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
SerialRcv
The following figure shows a timing chart.
Related System-defined Variables
Name Meaning Data type Description
_Port_numUsingPort Number of Used Ports USINT This is the number of ports that are currently used.
_Port_isAvailable Network Communica-
tions Instruction
Enabled Flag
BOOL TRUE: A port is available.
FALSE: A port is not available.
Related Semi-user-defined Variables
Name Meaning Data type Description
P#_NopRcvOvfSta* Reception Overflow
Flag
BOOL TRUE: The Unit received more than the speci-
fied amount of data (i.e., data was
received after the Reception Com-
pleted Flag changed to TRUE).
FALSE: The Unit did no receive more than the
specified number of bytes.
P#_NopRcvCompleteSta* Reception Completed
Flag
BOOL TRUE: Reception was completed.
FALSE: No data received or currently receiving
data.
P#_NopRcvCntSta* Reception Counter UINT 16#0000 to 16#0100: Number of bytes of
receive data
P#_NopStartCodeYNCfg* No-protocol Start Code
Enable
BOOL TRUE: Start code
FALSE: None
P#_NopEndCodeYNCfg* No-protocol End Code
Enable
BOOL TRUE: End code
FALSE: None
P#_NopCRLFCfg* No-protocol CR LF
Specification
BOOL TRUE: CR+LF
FALSE: No CR+LF
Execute
Busy
Done
Error
DstDat[]
TRUE
FALSE
Reception
Completed
Flag
Received data it is stored in DstDat[].
Reception Completed Flag changes to FALSE.
Data reception ended.
Reception Completed Flag changes to TRUE.
TRUE
FALSE
TRUE
FALSE
TRUE
FALSE
TRUE
FALSE