![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498159.webp)
4-23
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-4 D
e
vices V
a
riab
le f
o
r CJ-ser
ies U
nit f
o
r Softw
are Switches
z
Software Switch Descriptions
The Software Switches function as described in the following table.
*1
The Software Switches will also be initialized at the following times: when the Controller is reset, when the
operating mode is changed between PROGRAM and RUN Modes, when the Unit is restarted, or when the
communications port is restarted.
After the variable is set, the Software Switch will be reset (cleared) at the timing indicated in "Reset" in the
above table for each area.
*2
If both of the trace switches for one-shot trace and continuous trace are changed to TRUE, the one for which
the switch was changed first is executed. (The other one does not start until its trace switch changes to FALSE
and then back to TRUE after another trace operation is completed.) If both of the switches change to TRUE
simultaneously, the Continuous Trace will take priority.
When the trace buffer becomes full, the Unit will clear it.
The CPU Unit will manipulate the One-shot Trace Switch and Continuous Trace Switch when trace operations
are performed from the CX-Protocol. Do not manipulate these switches from a user program.
Name
Device vari-
able for CJ-
series Unit
Meaning
Timing
Initialize
Set
Reset
Serial Gate-
way Prohibit
Switch (Pro-
tocol Macros)
*_P1_SgwDsbl
Cmd
*_P2_SgwDsbl
Cmd
The Serial Gateway (Mode) is prohib-
ited during protocol macro processing
when this Switch changes from FALSE
to TRUE.
The Serial Gateway is no longer prohib-
ited when the Switch is changed from
TRUE to FALSE.
Controller
reset (*1)
Manipulated
by user
Manipulated
by user
Abort Switch
(Protocol
Macros)
*_P1_PmrAbtC
md
*_P2_PmrAbtC
md
Protocol macro processing will be
aborted when the switch changes from
FALSE to TRUE. Processing may be
completed if the Switch is changed too
late.
Manipulated
by user
Manipulated
by user
One-shot
Trace Switch
(Protocol
Macros) (*2)
*_P1_Pmr1Sho
tTeanceCmd
*_P2_Pmr1Sho
tTeanceCmd
The CX-Protocol will start a one-shot
trace when the Switch changes from
FALSE to TRUE. The trace is ended
when the Switch is changed from TRUE
to FALSE.
Manipulated
by CX-Proto-
col
At end of
one-shot
trace
Continuous
Trace Switch
(Protocol
Macros) (*2)
*_P1_PmrCont
TranceCmd
*_P2_PmrCont
TranceCmd
The CX-Protocol will start a continuous
trace when the Switch changes from
FALSE to TRUE. The trace is ended
when the Switch is changed from TRUE
to FALSE.
Manipulated
by CX-Proto-
col
Manipulated
by CX-Proto-
col
Wait Release
Switch (Pro-
tocol Macros)
*_P1_PmrWait
RlsCmd
*_P2_PmrWait
RlsCmd
Standby status for the Wait command
will be released when the switch
changes from FALSE to TRUE.
Manipulated
by user
At end of
Wait com-
mand
Содержание 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...