
4 Using Protocol Macros
4-24
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
These variable are used for data input from the Serial Communications Unit to the CPU Unit.
You can reference the Serial Communications Unit port settings status, communications status, the
transmission control signal status, and the transmission error status.
4-2-5
Device Variables 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 EEPROM
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 (*1)
Bits 12 to 15: Serial com-
munications mode
Bits 8 to 11: Baud rate
Bit 04: Start bits
Bit 03: Data length (*1)
Bit 02: Stop bits (*1)
Bit 01: Parity (Yes/No) (*1)
Bit 00: Parity (Even/Odd)
(*1)
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
There is no specific
device variable for CJ-
series Unit to reference
the baud rate.
When you reference
this setting status, ref-
erence bits 08 to 11 of
*_P1_SysSetSta.
There is no specific
device variable for CJ-
series Unit to reference
the baud rate.
When you reference
this setting status, ref-
erence bits 08 to 11 of
*_P2_SysSetSta.
Bit
string
R
Baud Rate
0: 9600, 3: 1200, 4: 2400
5: 4800, 6: 9600, 7: 19200
8: 38400, 9: 57600
10: 115200, 11: 230400
Default: 0
*_P1_StartBitSta
*_P2_StartBitSta
BOOL
R
Start Bits
(always 1 bit)
FALSE: 1 bit
TRUE: 1 bit
(1 bit for both FALSE and
TRUE.)
*_P1_DatBitSta
*_P2_DatBitSta
BOOL
R
Data Length
(7 bits/8 bits)
FALSE: 7 bits
TRUE: 8 bits
*_P1_StopBitSta
*_P2_StopBitSta
BOOL
R
Stop Bits
(2 bits/1 bit)
FALSE: 2 bits
TRUE: 1 bit
*_P1_ParityYNSta
*_P2_ParityYNSta
BOOL
R
Parity (Yes/No)
FALSE: Yes
TRUE: No
Содержание 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...