
6-11
6 No-protocol Mode
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
6-2
De
vice V
ariab
le
s f
o
r CJ-se
rie
s Unit and
System
-d
efin
ed V
ariab
les (No
-pr
o
to
col Mo
de)
6
6-2-5
De
vice
V
a
riab
le
f
o
r CJ-ser
ies
Unit f
or S
ta
tus (When Sendin
g/Receiving
Data
with
S
e
rialSend, Ser
ia
lRcv
, or
S
e
ria
lRcvNoClear In
str
uction)
*1
The current settings for the port are read. For details on the read contents, refer to 6-2-1 Device Variables for
CJ-Series Unit for System Settings. If a System Setup error occurs, the default settings will be read.
*2
The status becomes TRUE when 260 bytes or more is stored in the reception buffer.
Precautions for Correct Use
Precautions for Correct Use
Reception Buffer Clear Timing in No-protocol Mode:
The reception buffer is cleared after the SerialRcv instruction is executed for the serial communi-
cations port of the Unit. Therefore, you cannot repeatedly use the SerialRcv instruction to
receive data in several steps. With the SerialRcvNoClear instruction, the reception buffer is not
cleared after the instruction is executed, so you can receive data in several steps.
*_P1_FramingErr
*_P2_FramingErr
BOOL
R
Framing Error
TRUE: Framing error
FALSE: Normal
*_P1_ParityErr
*_P2_ParityErr
BOOL
R
Parity Error
TRUE: Parity error
FALSE: Normal
6-2-5
Device Variable for CJ-series Unit for Status (When
Sending/Receiving Data with SerialSend, SerialRcv, or
SerialRcvNoClear Instruction)
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
*_P1_NopSta
*_P2_NopSta
WORD
R
No-protocol
Mode Status
Bit 07: Reception Overflow
Flag
Bit 06: Reception Com-
pleted Flag
Bit 05: SerialSend Execut-
ing Flag
*_P1_NopRcvOvfSta
*_P2_NopRcvOvfSta
BOOL
R
Reception
Overflow Flag
1: Unit received more than
the specified number of
bytes
0: Unit did not receive
more than the specified
number of bytes
*_P1_NopRcvComplet
eSta
*_P2_NopRcvComplet
eSta
BOOL
R
Reception
Completed
Flag
TRUE: Reception com-
pleted
FALSE: No reception or
reception in progress
*_P1_NopSerialSendE
xecSta
*_P2_NopSerialSendE
xecSta
BOOL
R
SerialSend
Executing Flag
TRUE: Executing
FALSE: Not executed
*_P1_NopRcvCntSta
*_P2_NopRcvCntSta
UINT
R
Reception
Counter (Num-
ber of Receive
Data Bytes)
Counts the number of
received data bytes that
have not been read from 0
to 256 (0 to 256 bytes). If
an end code is present,
counts the number of
unread data bytes up to
the end code.
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
Содержание CJ1W-SCU22
Страница 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...