![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498097.webp)
2-23
2 Initial Settings and Allocations of Device Variable for CJ-series Unit
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
2-3 De
vice
V
a
ri
a
b
le f
o
r CJ-series Un
it
2
2-3-3 D
e
vice V
ar
ia
b
le f
or CJ-ser
ies
Uni
t f
o
r Sof
tw
a
re Sw
itc
hes
(Output from the CPU Unit to Serial Communications Unit)
The software switches are used for loopback tests, aborts in Protocol Macro Mode, releasing wait sta-
tus, etc. For the details on the software switch functions, refer to Section 5 Serial Gateway and Section
8 Loopback Test.
* The One-shot Trace Switch and Continuous Trace Switch are used for the Serial Communications Unit only when you exe-
cute traces from the CX-Protocol in Protocol Macro Mode. Do not manipulate these switches from a user program.
2-3-3
Device Variable for CJ-series Unit for Software Switches
List of Device Variables for CJ-series Unit for Software Switches
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
*_P1_SoftSw
*_P2_SoftSw
BYTE
RW
Soft Switches
Bit 06: Loopback test
switch
Bit 04: Serial gateway pro-
hibit switch
Bit 03: Abort switch
Bit 02: One-shot trace
switch
Bit 01: Continuous trace
switch
Bit 00: Wait release switch
*_P1_LbtTestTrigCmd
*_P2_LbtTestTrigCmd
BOOL
RW
Loopback Test
Switch (Loop-
back Tests)
TRUE: Start
FALSE: Stop
*_P1_SgwDsblCmd
*_P2_SgwDsblCmd
BOOL
RW
Serial Gateway
Prohibit Switch
(Protocol Mac-
ros)
TRUE
→
FALSE: Permitted
FALSE
→
TRUE: Prohib-
ited
*_P1_PmrAbtCmd
*_P2_PmrAbtCmd
BOOL
RW
Abort Switch
(Protocol Mac-
ros)
TRUE: Abort
FALSE: Aborted
*_P1_Pmr1ShotTrace
Cmd
*_P2_Pmr1ShotTrace
Cmd
BOOL
RW
One-shot Trace
Switch (*)
(Protocol Mac-
ros)
TRUE: Start
FALSE: Stop
*_P1_PmrContTraceC
md
*_P2_PmrContTraceC
md
BOOL
RW
Continuous
Trace Switch (*)
(Protocol Mac-
ros)
TRUE: Start
FALSE: Stop
*_P1_PmrWaitRlsCmd
*_P2_PmrWaitRlsCmd
BOOL
RW
Wait Release
Switch (Proto-
col Macros)
TRUE: Release wait
FALSE: Wait released