![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498196.webp)
5 Serial Gateway
5-4
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Precautions for Safe Use
If the Serial Gateway is executed for the port that is set for Loopback Test Mode, an undefined
command response (end code: 0401 hex) will be returned.
5-1-4
Serial Gateway Specifications
Item
Details
Conversion source
Command (received via network or CPU bus)
Conversion func-
tions
•
Received commands are converted according to the following values before sending to
the serial port of the Unit.
2803 hex: Removes header and converts to CompoWay/F command
2804 hex: Removes header and converts to Modbus-RTU command
2805 hex: Removes header and converts to Modbus-ASCII command
After conversion
•
CompoWay/F commands
•
Modbus-RTU commands
•
Modbus-ASCII commands
Supported serial
communications
modes
Serial Gateway Mode or Protocol Macro Mode
Queuing
Up to five commands can be converted and then queued for processing.
Processing during
protocol macro exe-
cution
When a command is received during execution of a protocol macro, the Serial Gateway is
executed as an interrupt between steps in the communications sequence. If the next step
is a receive command, however, the Serial Gateway will not be executed and will be
delayed. Under all other conditions, the serial gateway is executed immediately.
Note
The reception buffer is cleared during Serial Gateway execution.
Note
You can prohibit the Serial Gateway function during the Protocol Macro Mode by
changing *_P1_SgwDsblCmd and *_P2_SgwDsblCmd (Serial Gateway Prohibit
Switch (Protocol Macros)) from FALSE to TRUE.
Response timeout
monitoring
The time is monitored from when a message converted to another protocol by using the
Serial Gateway is sent until a response is received (enabled in Serial Gateway mode or
protocol macro mode).
Default: 5 s; Setting range: 0.1 to 25.5 s
Note
If a response is received after a timeout, it is converted and returned to the com-
mand source.
Send start timeout
monitoring
The time is monitored after a command is received and converted into another protocol
until transmission starts (protocol macro mode only).
Default: 5 s; Setting range: 0 to 25.5 s
Note
If a timeout occurs, the send processing is not executed and the received command
is discarded.
Send delay
You can use the Serial Gateway to set the time after protocol conversion until actual data
is sent (Serial Gateway Mode or Protocol Macro Mode only).
Default: 0 s; Setting range: 0 to 300 s
Содержание 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...