![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498213.webp)
5-21
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
//Detecting Protocol Macro Executing Flag changing to FALSE
F_TRIG_instance(SCU_P1_PmrExecSta , FTrig_PmrExecSta );
IF( FTrig_PmrExecSta = TRUE ) THEN
End_ExecPMCR := TRUE;
END_IF;
IF ( ExecPMCR_instance.Done = TRUE ) AND ( End_ExecPMCR = TRUE ) THEN
End_ExecPMCR := FALSE;
//Clearing the workpiece indicating end of execution of the protocol macro
State := INT#4;
END_IF;
IF ( ExecPMCR_instance.Error = TRUE ) THEN
State := INT#6;
END_IF;
END_IF;
//Checking for ExecPMCR instruction execution completion
IF ( State = INT#4 ) THEN
IF( SCU_P1_PmrSeqEndSta = TRUE ) THEN
State := INT#5;
END_IF;
IF( SCU_P1_PmrSeqAbtSta = TRUE ) THEN
State := INT#6;
END_IF;
END_IF;
//Serial Gateway not prohibited (at normal end)
IF ( State = INT#5 ) THEN
SCU_P1_SgwDsblCmd:= FALSE;
//Serial Gateway not prohibited
State := INT#0;
END_IF;
//Serial Gateway not prohibited (at error completion)
IF ( State = INT#6 ) THEN
SCU_P1_SgwDsblCmd := FALSE;
//Serial Gateway not prohibited
State := INT#0;
END_IF;
Содержание 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...