228
Serial Gateway Section 6-6
Note If a multiple-frame command (see note) protocol macro is sent during protocol
macro execution, set the Serial Gateway mode status to prohibited (in the CIO
Area). Otherwise, a FINS message converted using Serial Gateway will inter-
rupt between steps of the executing protocol macro, and may occur in
between frames of the multiple-frame command.
Note A multiple-frame command is a command in which the protocol mac-
ro command text is divided into multiple frames that are sent in se-
quence.
6-6-2 Serial Gateway Timeout Monitoring
The Serial Gateway supports the following two timeout monitoring functions.
These functions can be used to monitor the reception processing time of the
remote device and the wait time of the Serial Gateway during execution of a
protocol macro.
Response Timeout Monitoring (Serial Gateway Mode/Protocol Macro Mode)
During Serial Gateway mode or protocol macro mode, the time is monitored
from when the message converted into the specified protocol by Serial Gate-
way 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.
This function is set in the DM Area.)
If a response is not received at the serial port within the set time, a FINS error
response is returned to the source of the FINS command (end code: 0205 hex
(response timeout)). If a response is received after the timeout has occurred,
however, the response received for each protocol is discarded and a FINS
response is not returned to the source of the FINS command.
Note If a Serial Gateway response timeout occurs, CIO word n+8/n+18, bit 05
(Serial Gateway Send Start Timeout or Serial Gateway Response Timeout)
Reception
FINS command
RECEIVE
Step n+1
Step n
Sequence temporarily suspended
Step n+2
Sequence resumes
SEND
SEND&RECV
(The next step is a RE-
CEIVE command, so the
RECEIVE command is
executed and the Serial
Gateway waits.)
(The next step is a SEND
command (not RECEIVE) so the
Serial Gateway is executed.)
CompoWay/F or
other command
CompoWay/F or
other response
FINS command received
FINS transmission source:
FINS command
Receive
Time
FINS error response
0205 hex (Response timeout)
Board/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