PROGRAM SWP
VAR_EXTERNAL

END_VAR

VAR_GLOBAL

END_VAR

VAR
SWPB1A01_RunTime1:BS_RunTime;
SWPB1A01_RunTime2:BS_RunTime;
SWPB1A02_RunTime1:BS_RunTime;
SWPB1A02_RunTime2:BS_RunTime;
SWPB1A03_RunTime1:BS_RunTime;
SWPB1A03_RunTime2:BS_RunTime;
SWPB1A04_RunTime1:BS_RunTime;
SWPB1A04_RunTime2:BS_RunTime;
SWPB1A05_RunTime1:BS_RunTime;
SWPB1A05_RunTime2:BS_RunTime;
SWPB1A06_RunTime1:BS_RunTime;
SWPB1A06_RunTime2:BS_RunTime;
SWPB1A07_RunTime1:BS_RunTime;
SWPB1A07_RunTime2:BS_RunTime;
SWPB1A08_RunTime1:BS_RunTime;
SWPB1A08_RunTime2:BS_RunTime;
SWPB1A09_RunTime1:BS_RunTime;
SWPB1A09_RunTime2:BS_RunTime;
SWPB1A10_RunTime1:BS_RunTime;
SWPB1A10_RunTime2:BS_RunTime;

EAFB1A01_RunTime:BS_RunTime;
EAFB1A02_RunTime:BS_RunTime;
EAFB1A03_RunTime:BS_RunTime;



END_VAR
    (*运行累积时间*)
    SWPB1A01_RunTime1(RUN :=LSWPB1A01_R1 , RUNTIMESET :=LSWPB1A01_RSTV1 , RUNTIMERST :=LSWPB1A01_RST1 , RunTimeRec_In :=LSWPB1A01_RH1  |  LSWPB1A01_RH1:= RUNTIME);
    SWPB1A01_RunTime2(RUN :=LSWPB1A01_R2 , RUNTIMESET :=LSWPB1A01_RSTV2 , RUNTIMERST :=LSWPB1A01_RST2 , RunTimeRec_In :=LSWPB1A01_RH2  |  LSWPB1A01_RH2:= RUNTIME);
    SWPB1A02_RunTime1(RUN :=LSWPB1A02_R1 , RUNTIMESET :=LSWPB1A02_RSTV1 , RUNTIMERST :=LSWPB1A02_RST1 , RunTimeRec_In :=LSWPB1A02_RH1  |  LSWPB1A02_RH1:= RUNTIME);
    SWPB1A02_RunTime2(RUN :=LSWPB1A02_R2 , RUNTIMESET :=LSWPB1A02_RSTV2 , RUNTIMERST :=LSWPB1A02_RST2 , RunTimeRec_In :=LSWPB1A02_RH2  |  LSWPB1A02_RH2:= RUNTIME);
    SWPB1A03_RunTime1(RUN :=LSWPB1A03_R1 , RUNTIMESET :=LSWPB1A03_RSTV1 , RUNTIMERST :=LSWPB1A03_RST1 , RunTimeRec_In :=LSWPB1A03_RH1  |  LSWPB1A03_RH1:= RUNTIME);
    SWPB1A03_RunTime2(RUN :=LSWPB1A03_R2 , RUNTIMESET :=LSWPB1A03_RSTV2 , RUNTIMERST :=LSWPB1A03_RST2 , RunTimeRec_In :=LSWPB1A03_RH2  |  LSWPB1A03_RH2:= RUNTIME);
    SWPB1A04_RunTime1(RUN :=LSWPB1A04_R1 , RUNTIMESET :=LSWPB1A04_RSTV1 , RUNTIMERST :=LSWPB1A04_RST1 , RunTimeRec_In :=LSWPB1A04_RH1  |  LSWPB1A04_RH1:= RUNTIME);
    SWPB1A04_RunTime2(RUN :=LSWPB1A04_R2 , RUNTIMESET :=LSWPB1A04_RSTV2 , RUNTIMERST :=LSWPB1A04_RST2 , RunTimeRec_In :=LSWPB1A04_RH2  |  LSWPB1A04_RH2:= RUNTIME);
    SWPB1A05_RunTime1(RUN :=LSWPB1A05_R1 , RUNTIMESET :=LSWPB1A05_RSTV1 , RUNTIMERST :=LSWPB1A05_RST1 , RunTimeRec_In :=LSWPB1A05_RH1  |  LSWPB1A05_RH1:= RUNTIME);
    SWPB1A05_RunTime2(RUN :=LSWPB1A05_R2 , RUNTIMESET :=LSWPB1A05_RSTV2 , RUNTIMERST :=LSWPB1A05_RST2 , RunTimeRec_In :=LSWPB1A05_RH2  |  LSWPB1A05_RH2:= RUNTIME);
    SWPB1A06_RunTime1(RUN :=LSWPB1A06_R1 , RUNTIMESET :=LSWPB1A06_RSTV1 , RUNTIMERST :=LSWPB1A06_RST1 , RunTimeRec_In :=LSWPB1A06_RH1  |  LSWPB1A06_RH1:= RUNTIME);
    SWPB1A06_RunTime2(RUN :=LSWPB1A06_R2 , RUNTIMESET :=LSWPB1A06_RSTV2 , RUNTIMERST :=LSWPB1A06_RST2 , RunTimeRec_In :=LSWPB1A06_RH2  |  LSWPB1A06_RH2:= RUNTIME);
    SWPB1A07_RunTime1(RUN :=LSWPB1A07_R1 , RUNTIMESET :=LSWPB1A07_RSTV1 , RUNTIMERST :=LSWPB1A07_RST1 , RunTimeRec_In :=LSWPB1A07_RH1  |  LSWPB1A07_RH1:= RUNTIME);
    SWPB1A07_RunTime2(RUN :=LSWPB1A07_R2 , RUNTIMESET :=LSWPB1A07_RSTV2 , RUNTIMERST :=LSWPB1A07_RST2 , RunTimeRec_In :=LSWPB1A07_RH2  |  LSWPB1A07_RH2:= RUNTIME);
    

	(*运行累积时间*)
    EAFB1A01_RunTime(RUN :=LEAFB1A01_R , RUNTIMESET :=LEAFB1A01_RSTV , RUNTIMERST :=LEAFB1A01_RST, RunTimeRec_In :=LEAFB1A01_RH  |  LEAFB1A01_RH:= RUNTIME);
	EAFB1A02_RunTime(RUN :=LEAFB1A02_R , RUNTIMESET :=LEAFB1A02_RSTV , RUNTIMERST :=LEAFB1A02_RST, RunTimeRec_In :=LEAFB1A02_RH  |  LEAFB1A02_RH:= RUNTIME);
	EAFB1A03_RunTime(RUN :=LEAFB1A03_R , RUNTIMESET :=LEAFB1A03_RSTV , RUNTIMERST :=LEAFB1A03_RST, RunTimeRec_In :=LEAFB1A03_RH  |  LEAFB1A03_RH:= RUNTIME);

END_PROGRAM