Omron CJ1W-SCU32 Operation Manual page 213

Machine automation controller, cj / nj-series, serial communications units, cpu unit
Table of Contents

Advertisement

//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;
State := INT#0;
END_IF;
//Serial Gateway not prohibited (at error completion)
IF ( State = INT#6 ) THEN
SCU_P1_SgwDsblCmd := FALSE;
State := INT#0;
END_IF;
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
//Serial Gateway not prohibited
//Serial Gateway not prohibited
5 Serial Gateway
5-21
5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents