
8 Loopback Test
8-4
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
8-2
Device Variable for CJ-series Unit
(Loopback Test)
This section describes the device variable for CJ-series Unit used in the loopback test.
8-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 Setting
Bit 15: User-specified set-
ting inclusion (*)
Bits 08 to 11: Serial com-
munications mode (F hex:
Loopback test)
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 refer-
ence the serial commu-
nications 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 refer-
ence the serial commu-
nications 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
1 start bit is always used
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
*_P1_ParityYNCfg
*_P2_ParityYNCfg
BOOL
RW
Parity
FALSE: Yes
TRUE: No
Default: FALSE
*_P1_ParityBitCfg
*_P2_ParityBitCfg
BOOL
RW
Parity
Even/Odd
FALSE: Even
TRUE: Odd
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...