
5-9
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-3 D
e
vice
V
ar
iab
le f
or CJ-ser
ies Unit f
or Softw
are Switches
These variable are used for data output from the CPU Unit to the Serial Communications Unit.
These variables are not available in the Serial Gateway Mode.
Use the device variables for CJ-series Unit shown below when you use the Serial Gateway function
while executing the protocol macros during the Protocol Macro Mode.
These variables are used for data input from the Serial Communications Unit to the CPU Unit.
Use these variables to reference the port settings, the communications status, the transmission control
signal status, and the transmission error status of the Serial Communications Unit.
5-2-3
Device Variable for CJ-series Unit for Software Switches
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
*_P1_SgwDsblCmd
*_P2_SgwDsblCmd
BOOL
RW
Serial Gateway
Prohibit Switch
(Protocol Mac-
ros)
TRUE
→
FALSE: Not pro-
hibited
FALSE
→
TRUE: Prohib-
ited
5-2-4
Device Variable for CJ-series Unit for Status
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
*_Com_UnitSta
WORD
R
Serial Commu-
nication Unit
Status
Bit 01: Error log data error
Bit 00: Protocol data error
*_Com_UnitLogMemErr
BOOL
R
Error Log
EEPROM Error
TRUE: Error log EEPROM
error
FALSE: Error log
EEPROM normal
*_Com_UnitPmrDatErr
BOOL
R
Protocol Data
Error
TRUE: Protocol data error
FALSE: Protocol data nor-
mal
*_P1_SysSetSta
*_P2_SysSetSta
WORD
R
System Set-
tings (*)
Bits 12 to 15: Serial com-
munications mode
Bits 8 to 11: Baud rate
Bit 04: Start bits
Bit 03: Data length
Bit 02: Stop bits
Bit 01: Parity (Yes/No)
Bit 00: Parity (Even/Odd)
There is no specific
device variable for CJ-
series Unit to reference
the serial communica-
tions mode.
When you reference
this setting status, ref-
erence bits 12 to 15 of
*_P1_SysSetSta.
There is no specific
device variable for CJ-
series Unit to reference
the serial communica-
tions mode.
When you reference
this setting status, ref-
erence bits 12 to 15 of
*_P2_SysSetSta.
Bit
string
R
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
Содержание 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...