
4-29
4 Using Protocol Macros
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
4-2 De
vic
e
V
ariab
les
fo
r CJ
-series Un
it and
Sys
tem-defined
V
ariables
(Pr
o
toco
l Macr
o Mo
de)
4
4-2-5 D
e
vice V
ar
iab
les f
or CJ-ser
ies U
nit f
o
r Status
Local Unit
Busy
*_P1_LclBusyS
ta
*_P2_LclBusyS
ta
This variable indicates the receive status
of the Local Unit (Unit) during Recv when
Xon/Xoff flow control is set in the transmis-
sion control parameters.
TRUE: Local Unit busy (Reception is dis-
abled because the reception buffer is more
than 4/5 (= 2 K bytes or more).)
FALSE: Local Unit ready to receive
(Reception is enabled because the recep-
tion buffer is less than 1/5 (= 0.5 K bytes or
less).)
This area is cleared when the Controller is
reset, at port restart by the Port Settings
changing flags (Auxiliary Area), or when
the next sequence is started.
Controller
reset (*)
When status
is read
After busy
status is
released
Transmission
Control Sig-
nal Status
[ER]
*_P1_SigERSta
*_P2_SigERSta
[DR]
*_P1_SigDRSta
*_P2_SigDRSta
[CS]
*_P1_SigCSSta
*_P2_SigCSSta
[RS]
*_P1_SigRSSta
*_P2_SigRSSta
The status of each transmission control
signal (DTR (ER), DSR (DR), CTS (CS),
RTS (RS)) for each port is always read.
TRUE: High, FALSE: Low
When status
is read
When status
is read
Transmission
Error Status
*_P1_TransErr
Sta
*_P2_TransErr
Sta
When an error occurs during transmission,
the corresponding flag (in bits 02 to 07 or
12 to 15) changes to TRUE.
The number of retries is stored in bits 08
to 11.
Note 1
The Transmission Error Flag (bit
15) changes to TRUE only when
the protocol macro has moved to
error processing due to an error in
bits 00 to 14.
2
The number of retries in bits 08 to
11 is not equal to the number of
times processing is performed
when an error occurs. It is the set
number of retries.
When communications are restored by
protocol macro retry processing, the error
in bits 02 to 07 or 12 to 15 is stored. The
Transmission Error Flag (bit 15), however,
will remain FALSE.
If another error occurs during retry pro-
cessing, the status of the bit that indicates
the cause is held.
At error
When
sequence
begins
Name
Device vari-
able for CJ-
series Unit
Meaning
Timing
Initialize
Set
Reset
Содержание 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...