
5 Serial Gateway
5-30
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
z
Immediate Execution of Serial Gateway
When the Serial Gateway is enabled during Protocol Macro Mode and a command is received, and
if the command in the next step is any command except the Receive command (Send, Send&Recv,
Wait, Flush, Open, or Close), the protocol macro communications sequence is temporarily sus-
pended before the next step is executed, and the Serial Gateway is used to execute command con-
version and transmission on an interrupt between steps.
Until the response is received, the command within the next step is not executed. After the response
is received, the protocol macro is resumed, and execution is started from the communications
sequence step that was suspended.
Precautions for Safe Use
If a multiple-frame command protocol macro is sent during protocol macro execution, set the
Serial Gateway Mode status to Prohibited. To do so, make configuration with the
*_P1_SgwDsblCmd and *_P2_SgwDsblCmd (Serial Gateway Prohibit Switch (Protocol Mac-
ros)).
Otherwise, a message converted using Serial Gateway will interrupt between steps of the exe-
cuting protocol macro, and may occur in between frames of the multiple-frame command.
A multiple-frame command is a command in which the protocol macro command text is divided
into multiple frames that are sent in series.
Reception
Command
Receive
Step n+1
Step n
Sequence temporarily suspended
Step n+2
Sequence resumes
Send
Send&Recv
(The next step is a Receive
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
Содержание 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...