![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498209.webp)
5-17
5 Serial Gateway
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
5-3 Usin
g the Serial Gate
wa
y
5
5-3-3 U
s
ing the Ser
ial Gate
w
a
y F
uncti
on When Protocol Macro
s
Are
E
x
ecuted
Program Example
Trigger
_Port_isAvailable SCU_P1_PmrExecSta
ExecPMCR_instance.Busy SCU_P1_PmrSgwProhSta
SCU _P1_SgwDsblCmd
Determining the ExecPMCR instruction execution completion
Parameter setting of ExecPMCR instruction
ExecPMCR instruction execution
Serial Gateway not prohibited (at normal end)
Serial Gateway prohibition setting
Start condition check
ExecPMCR_instance.Done
ExecPMCR_instance
ExecPMCR
Execute
Port
SeqNo
SrcDat
DstDat
Done
Busy
Error
ErrorID
DstDat
Inport
xxx
SendData[0]
RecvData[0]
ErrorIDEx
OperatingEnd
Operating
ExecPMCR_instance.Error
SCU_P1_PmrExecSta
SCU _P1_SgwDsblCmd
SCU_P1_PmrSeqEndSta
Serial Gateway not prohibited (at an error completion)
SCU_P1_PmrExecSta
SCU _P1_SgwDsblCmd
SCU_P1_PmrSeqAbtSta
ExecPMCR_instance.Error
Operating
Operating
RS_instance
OperatingEnd
RS
Set
Q1
Reset1
1 InPort.UnitNo
:=
_eUnitNo
#_CBU_No02; //Serial Communications Unit, Unit number 2
2 InPort.PhysicPortNo := USINT#1; //Port number 1
3 SendData[0]
:= WORD#16#xxxx;
4 SendData[1]
:= WORD#16#xxxx;
5 SendData[2]
:= WORD#16#xxxx;
6 SendData[3]
:= WORD#16#xxxx;
7 SendData[4]
:= WORD#16#xxxx;
8 RecvData[0]
:= WORD#16#xxxx;
R
R
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...