
4-13
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-1 D
e
vice V
ar
iab
le
for CJ-ser
ies Unit f
or System Setting
s
4-2
Device Variables for CJ-series Unit
and System-defined Variables
(Protocol Macro Mode)
This section describes the device variables for CJ-series Unit and system-defined variables used in the
Protocol Macro Mode.
Use the device variables for CJ-series Unit shown below to perform System Settings when you use the
Serial Communications Unit in Protocol Macro Mode.
4-2-1
Device Variable 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 (*)
Bits 08 to 11: Serial com-
munications mode (6 hex:
Protocol macro)
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...