![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498197.webp)
5-5
5 Serial Gateway
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
5
-2 De
v
ice V
ariab
les f
o
r CJ-series Un
it an
d System-defined
V
ar
iab
les (D
uring
Serial Gat
e
wa
y Mod
e
)
5
5-2-1 D
e
vice
V
ar
iab
les f
or CJ-s
er
ies U
nit f
o
r System Settings
5-2
Device Variables for CJ-series Unit
and System-defined Variables
(During Serial Gateway Mode)
This section describes the device variables for CJ-series Unit and system-defined variables used in the
Serial Gateway Mode.
Use the device variables for CJ-series Unit shown below to perform System Settings when you use the
Serial Communications Unit in Serial Gateway Mode.
5-2-1
Device Variables for CJ-series Unit for System Settings
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
*_P1_PortCfg
*_P2_PortCfg
WORD
RW
Port Settings
Bit 15: User-specified set-
ting inclusion (*1)
Bits 08 to 11: Serial com-
munications mode (9hex:
Serial Gateway Mode)
Bit 04: Start bits
Bit 03: Data length
Bit 02: Stop bits
Bit 01: Parity (Yes/No)
Bit 00: Parity (Even/Odd)
*_P1_SerSetCfg
*_P2_SerSetCfg
BOOL
RW
User-specified
Setting Inclu-
sion
FALSE: Default
TRUE: User settings
Default: FALSE
There is no specific
device variable for CJ-
series Unit to reference
the serial communica-
tions mode.
When you set this set-
ting, set to bits 08 to 11
of *_P1_PortCfg.
There is no specific
device variable for CJ-
series Unit to reference
the serial communica-
tions mode.
When you set this set-
ting, set to bits 08 to 11
of *_P2_PortCfg.
Bit
string
RW
Serial Commu-
nications Mode
Serial communications
mode
3 hex: No-protocol
6 hex: Protocol macro
9 hex: Serial Gateway
A hex: Modbus-RTU slave
F hex: Loopback test
Default: 0
*_P1_StartBitCfg
*_P2_StartBitCfg
BOOL
RW
Start Bits
Always 1 bit regardless of
whether the setting is
FALSE/TRUE.
FALSE: 1 bit
TRUE: 1 bit
Default: FALSE
*_P1_DatBitCfg
*_P2_DatBitCfg
BOOL
RW
Data Length
FALSE: 7 bits
TRUE: 8 bits
Default: FALSE
*_P1_StopBitCfg
*_P2_StopBitCfg
BOOL
RW
Stop Bits
FALSE: 2 bits
TRUE: 1 bit
Default: FALSE
Содержание 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...