![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498206.webp)
5 Serial Gateway
5-14
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Use the device variable for CJ-series Unit for Software Switches shown below to set the Serial Gate-
way to the Not prohibited status.
The Not prohibited/Prohibited status for the Serial Gateway can be checked by the following flag.
You can use the SendCmd (command send) instruction on the CPU Unit user program to send mes-
sages.
Example: Send a CompoWay/F message to a CompoWay/F-compatible OMRON component con-
nected to the Serial Communications Unit via a serial network.
For details on the SendCmd instruction, refer to the NJ-series Instructions Reference Manual (Cat. No.
W502).
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
*_P1_SgwDsblCmd
*_P2_SgwDsblCmd
BOOL
RW
Serial
Gateway
Prohibit
Switch
(Protocol
Macros)
TRUE
→
FALSE: Not
prohibited
FALSE
→
TRUE: Pro-
hibited
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
*_P1_PmrSgwProhSta
*_P2_PmrSgwProhSta
BOOL
R
Serial
Gateway
Prohib-
ited Flag
(Protocol
Macros)
This flag is set to
TRUE when the user
program prohibits the
Serial Gateway func-
tion (Mode) by con-
trolling the status of
the Serial Gateway
Prohibit Switch.
This flag is set to
FALSE when the
Serial Gateway is not
prohibited.
5-3-2
Sending Messages Using the SendCmd Instruction
CompoWay/F Command
RS-485 (CompoWay/F)
SendCmd
instruction
CompoWay/F Command
2803
Header
Message
CPU Unit
Serial Communications Unit
CompoWay/F-compatible
OMRON component
Protocol conversion
Содержание 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...