PROGRAM SWP
VAR_EXTERNAL

END_VAR

VAR_GLOBAL

END_VAR

VAR
SWPB1G01_RunTime1:BS_RunTime;
SWPB1G01_RunTime2:BS_RunTime;
SWPB1G02_RunTime1:BS_RunTime;
SWPB1G02_RunTime2:BS_RunTime;
SWPB1G03_RunTime1:BS_RunTime;
SWPB1G03_RunTime2:BS_RunTime;
SWPB1G04_RunTime1:BS_RunTime;
SWPB1G04_RunTime2:BS_RunTime;
SWPB1G05_RunTime1:BS_RunTime;
SWPB1G05_RunTime2:BS_RunTime;
SWPB1G06_RunTime1:BS_RunTime;
SWPB1G06_RunTime2:BS_RunTime;
SWPB1G07_RunTime1:BS_RunTime;
SWPB1G07_RunTime2:BS_RunTime;


EAFB1G01_RunTime:BS_RunTime;
EAFB1G02_RunTime:BS_RunTime;
EAFB1G03_RunTime:BS_RunTime;



END_VAR
    (*运行累积时间*)
    SWPB1G01_RunTime1(RUN :=LSWPB1G01_R1 , RUNTIMESET :=LSWPB1G01_RSTV1 , RUNTIMERST :=LSWPB1G01_RST1 , RunTimeRec_In :=LSWPB1G01_RH1  |  LSWPB1G01_RH1:= RUNTIME);
    SWPB1G01_RunTime2(RUN :=LSWPB1G01_R2 , RUNTIMESET :=LSWPB1G01_RSTV2 , RUNTIMERST :=LSWPB1G01_RST2 , RunTimeRec_In :=LSWPB1G01_RH2  |  LSWPB1G01_RH2:= RUNTIME);
    SWPB1G02_RunTime1(RUN :=LSWPB1G02_R1 , RUNTIMESET :=LSWPB1G02_RSTV1 , RUNTIMERST :=LSWPB1G02_RST1 , RunTimeRec_In :=LSWPB1G02_RH1  |  LSWPB1G02_RH1:= RUNTIME);
    SWPB1G02_RunTime2(RUN :=LSWPB1G02_R2 , RUNTIMESET :=LSWPB1G02_RSTV2 , RUNTIMERST :=LSWPB1G02_RST2 , RunTimeRec_In :=LSWPB1G02_RH2  |  LSWPB1G02_RH2:= RUNTIME);
    SWPB1G03_RunTime1(RUN :=LSWPB1G03_R1 , RUNTIMESET :=LSWPB1G03_RSTV1 , RUNTIMERST :=LSWPB1G03_RST1 , RunTimeRec_In :=LSWPB1G03_RH1  |  LSWPB1G03_RH1:= RUNTIME);
    SWPB1G03_RunTime2(RUN :=LSWPB1G03_R2 , RUNTIMESET :=LSWPB1G03_RSTV2 , RUNTIMERST :=LSWPB1G03_RST2 , RunTimeRec_In :=LSWPB1G03_RH2  |  LSWPB1G03_RH2:= RUNTIME);
    SWPB1G04_RunTime1(RUN :=LSWPB1G04_R1 , RUNTIMESET :=LSWPB1G04_RSTV1 , RUNTIMERST :=LSWPB1G04_RST1 , RunTimeRec_In :=LSWPB1G04_RH1  |  LSWPB1G04_RH1:= RUNTIME);
    SWPB1G04_RunTime2(RUN :=LSWPB1G04_R2 , RUNTIMESET :=LSWPB1G04_RSTV2 , RUNTIMERST :=LSWPB1G04_RST2 , RunTimeRec_In :=LSWPB1G04_RH2  |  LSWPB1G04_RH2:= RUNTIME);
    SWPB1G05_RunTime1(RUN :=LSWPB1G05_R1 , RUNTIMESET :=LSWPB1G05_RSTV1 , RUNTIMERST :=LSWPB1G05_RST1 , RunTimeRec_In :=LSWPB1G05_RH1  |  LSWPB1G05_RH1:= RUNTIME);
    SWPB1G05_RunTime2(RUN :=LSWPB1G05_R2 , RUNTIMESET :=LSWPB1G05_RSTV2 , RUNTIMERST :=LSWPB1G05_RST2 , RunTimeRec_In :=LSWPB1G05_RH2  |  LSWPB1G05_RH2:= RUNTIME);
    SWPB1G06_RunTime1(RUN :=LSWPB1G06_R1 , RUNTIMESET :=LSWPB1G06_RSTV1 , RUNTIMERST :=LSWPB1G06_RST1 , RunTimeRec_In :=LSWPB1G06_RH1  |  LSWPB1G06_RH1:= RUNTIME);
    SWPB1G06_RunTime2(RUN :=LSWPB1G06_R2 , RUNTIMESET :=LSWPB1G06_RSTV2 , RUNTIMERST :=LSWPB1G06_RST2 , RunTimeRec_In :=LSWPB1G06_RH2  |  LSWPB1G06_RH2:= RUNTIME);
    SWPB1G07_RunTime1(RUN :=LSWPB1G07_R1 , RUNTIMESET :=LSWPB1G07_RSTV1 , RUNTIMERST :=LSWPB1G07_RST1 , RunTimeRec_In :=LSWPB1G07_RH1  |  LSWPB1G07_RH1:= RUNTIME);
    SWPB1G07_RunTime2(RUN :=LSWPB1G07_R2 , RUNTIMESET :=LSWPB1G07_RSTV2 , RUNTIMERST :=LSWPB1G07_RST2 , RunTimeRec_In :=LSWPB1G07_RH2  |  LSWPB1G07_RH2:= RUNTIME);
    
	(*运行累积时间*)
    EAFB1G01_RunTime(RUN :=LEAFB1G01_R , RUNTIMESET :=LEAFB1G01_RSTV , RUNTIMERST :=LEAFB1G01_RST, RunTimeRec_In :=LEAFB1G01_RH  |  LEAFB1G01_RH:= RUNTIME);
	EAFB1G02_RunTime(RUN :=LEAFB1G02_R , RUNTIMESET :=LEAFB1G02_RSTV , RUNTIMERST :=LEAFB1G02_RST, RunTimeRec_In :=LEAFB1G02_RH  |  LEAFB1G02_RH:= RUNTIME);
	EAFB1G03_RunTime(RUN :=LEAFB1G03_R , RUNTIMESET :=LEAFB1G03_RSTV , RUNTIMERST :=LEAFB1G03_RST, RunTimeRec_In :=LEAFB1G03_RH  |  LEAFB1G03_RH:= RUNTIME);

END_PROGRAM