
5-31
5 Serial Gateway
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
5-5 Serial Gate
wa
y
5
5-5-2 Ser
ial Gate
w
a
y T
imeou
t Monito
ring
The Serial Gateway supports the following two timeout monitoring functions. These functions monitor
the reception processing time of the remote device and the wait time of the Serial Gateway during exe-
cution of a protocol macro.
z
Response Timeout Monitoring (Serial Gateway Mode/Protocol Macro Mode)
During Serial Gateway Mode or Protocol Macro Mode, the time is monitored from when the mes-
sage converted into the specified protocol by Serial Gateway is sent until a response is received
from the remote device. (The default is 5 s. The setting range for a user-specified value is between
0.1 and 25.5 s. Use *_P1_PmrSgwRespTimeoutCfg and *_P2_PmrSgwRespTimeoutCfg (Serial
Gateway Response Timeout Monitoring Time) to set.
If a response is not received at the serial communications port within the set time, an error response
is returned to the command source.
If a response is received after the timeout has occurred, however, the response received for each
protocol is discarded and a response is not returned to the command source.
If a Serial Gateway response timeout occurs, *_P1_TimeoutErr and *_P2_TimeoutErr (Timeout
Error) will become TRUE. Therefore, if the end code is 0205 hex and *_P1_TimeoutErr and
*_P2_TimeoutErr (Timeout Error) are TRUE a Serial Gateway response timeout occurred.
z
Send Start Timeout Monitoring (Protocol Macro Mode Only)
During Protocol Macro Mode, the time from when the command is received until it is converted and
starts to send can be monitored. (The default is 5 s. The setting range for a user-specified value is
between 0.1 and 25.5 s. Use *_P1_PmrSgwSendTimeoutCfg and *_P2_PmrSgwSendTimeoutCfg
(Serial Gateway Send Start Timeout Monitoring Time) to set.
If the transmission does not start within the set monitoring time after reception of the command, an
error response is returned to the command source. At this time, the received command is discarded
without execution of send processing.
Step transition is suspended either because the next step is a Receive command or the current
command is executing (Wait command, Send&Receive command, Receive command, etc.).
5-5-2
Serial Gateway Timeout Monitoring
Command received
Command source:
Command
Receive
Time
FINS error response
0205 hex (Response timeout)
Unit:
Serial Gateway
Remote device:
Received response is discarded
Protocol
conver-
sion/trans-
mission
Send in
specified
protocol
Response timeout
monitoring time
Receive
processing
Actual response
received after timeout
Command source:
Unit:
Protocol macro sequence
Time
Step n+1
Remote device:
Response received
Step n
Any command except Receive
Receive execution when next step at remote device
contains Receive command
Command
received
Serial Gateway execution
when next step does not
contain a Receive com-
mand
Receive
command
Shift to Serial
Gateway
Serial Gateway
execution timing
Send start timeout
monitoring (monitors this
time)
Send in
specified
protocol
Serial Gateway execution
(protocol conver-
sion/transmission)
Receive
processing
Protocol macro
sequence resumes
Содержание 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...