
5-13
5 Serial Gateway
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
5-3 Usin
g the Serial Gate
wa
y
5
5-3-1 Setting De
vice
V
ar
iab
le f
o
r CJ-ser
ies Un
it f
or System
S
e
ttings and Soft
w
are Switches
Set the CJ-series Unit device variables for System Settings shown below.
Use the following flag to check whether a Serial Gateway response timeout or send start timeout
occurred.
Using Serial Gateway with Protocol Macros
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
*_P1_PortCfg
*_P2_PortCfg
WORD
RW
Port Set-
tings
Serial communica-
tions mode (bits 11 to
08): 6 hex: (Protocol
Macro Mode)
Bits 00 to 04: Set the
serial communica-
tions conditions to
match the protocol at
the conversion desti-
nation.
*_P1_BaudrateCfg
*_P2_BaudrateCfg
USINT
RW
Baud
Rate
(unit: bps)
Baud rate: Set to
match the protocol at
the conversion desti-
nation.
*_P1_SendDelayCfg
*_P2_SendDelayCfg
WORD
RW
Send
Delay
Settings
Bit 15: Send delay
time
Bits 00 to 14: Send
delay (user-specified)
*_P1_HlkCTSCtlCfg
*_P2_HlkCTSCtlCfg
BOOL
RW
CTS Con-
trol
FALSE: No
TRUE: Yes
*_P1_PmrSgwRespTimeoutCfg
*_P2_PmrSgwRespTimeoutCfg
USINT
RW
Serial
Gateway
Response
Timeout
Monitor-
ing Time
0: 5 s (default)
Data range: 1 to 255
0.1 to 25.5 s [Unit:
100 ms]
*_P1_PmrSgwSendTimeoutCfg
*_P2_PmrSgwSendTimeoutCfg
USINT
RW
Serial
Gateway
Send
Start Tim-
eout Mon-
itoring
Time
0: 5 s (default)
Range: 1 to 255
0.1 to 25.5 s [Unit:
100 ms]
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
*_P1_TimeoutErr
*_P2_TimeoutErr
BOOL
R
Timeout
Error
TRUE: Timeout
FALSE: Normal
Содержание 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...