PROGRAM SWP VAR_EXTERNAL END_VAR VAR_GLOBAL END_VAR VAR SWP12A01_RunTime1:BS_RunTime; SWP12A01_RunTime2:BS_RunTime; SWP12A02_RunTime1:BS_RunTime; SWP12A02_RunTime2:BS_RunTime; SWP12A03_RunTime1:BS_RunTime; SWP12A03_RunTime2:BS_RunTime; SWP12A04_RunTime1:BS_RunTime; SWP12A04_RunTime2:BS_RunTime; SWP12A05_RunTime1:BS_RunTime; SWP12A05_RunTime2:BS_RunTime; SWP12A06_RunTime1:BS_RunTime; SWP12A06_RunTime2:BS_RunTime; END_VAR (*运行累积时间*) SWP12A01_RunTime1(RUN :=LSWP12A01_R1 , RUNTIMESET :=LSWP12A01_RSTV1 , RUNTIMERST :=LSWP12A01_RST1 , RunTimeRec_In :=LSWP12A01_RH1 | LSWP12A01_RH1:= RUNTIME); SWP12A01_RunTime2(RUN :=LSWP12A01_R2 , RUNTIMESET :=LSWP12A01_RSTV2 , RUNTIMERST :=LSWP12A01_RST2 , RunTimeRec_In :=LSWP12A01_RH2 | LSWP12A01_RH2:= RUNTIME); SWP12A02_RunTime1(RUN :=LSWP12A02_R1 , RUNTIMESET :=LSWP12A02_RSTV1 , RUNTIMERST :=LSWP12A02_RST1 , RunTimeRec_In :=LSWP12A02_RH1 | LSWP12A02_RH1:= RUNTIME); SWP12A02_RunTime2(RUN :=LSWP12A02_R2 , RUNTIMESET :=LSWP12A02_RSTV2 , RUNTIMERST :=LSWP12A02_RST2 , RunTimeRec_In :=LSWP12A02_RH2 | LSWP12A02_RH2:= RUNTIME); SWP12A03_RunTime1(RUN :=LSWP12A03_R1 , RUNTIMESET :=LSWP12A03_RSTV1 , RUNTIMERST :=LSWP12A03_RST1 , RunTimeRec_In :=LSWP12A03_RH1 | LSWP12A03_RH1:= RUNTIME); SWP12A03_RunTime2(RUN :=LSWP12A03_R2 , RUNTIMESET :=LSWP12A03_RSTV2 , RUNTIMERST :=LSWP12A03_RST2 , RunTimeRec_In :=LSWP12A03_RH2 | LSWP12A03_RH2:= RUNTIME); SWP12A04_RunTime1(RUN :=LSWP12A04_R1 , RUNTIMESET :=LSWP12A04_RSTV1 , RUNTIMERST :=LSWP12A04_RST1 , RunTimeRec_In :=LSWP12A04_RH1 | LSWP12A04_RH1:= RUNTIME); SWP12A04_RunTime2(RUN :=LSWP12A04_R2 , RUNTIMESET :=LSWP12A04_RSTV2 , RUNTIMERST :=LSWP12A04_RST2 , RunTimeRec_In :=LSWP12A04_RH2 | LSWP12A04_RH2:= RUNTIME); SWP12A05_RunTime1(RUN :=LSWP12A05_R1 , RUNTIMESET :=LSWP12A05_RSTV1 , RUNTIMERST :=LSWP12A05_RST1 , RunTimeRec_In :=LSWP12A05_RH1 | LSWP12A05_RH1:= RUNTIME); SWP12A05_RunTime2(RUN :=LSWP12A05_R2 , RUNTIMESET :=LSWP12A05_RSTV2 , RUNTIMERST :=LSWP12A05_RST2 , RunTimeRec_In :=LSWP12A05_RH2 | LSWP12A05_RH2:= RUNTIME); SWP12A06_RunTime1(RUN :=LSWP12A06_R1 , RUNTIMESET :=LSWP12A06_RSTV1 , RUNTIMERST :=LSWP12A06_RST1 , RunTimeRec_In :=LSWP12A06_RH1 | LSWP12A06_RH1:= RUNTIME); SWP12A06_RunTime2(RUN :=LSWP12A06_R2 , RUNTIMESET :=LSWP12A06_RSTV2 , RUNTIMERST :=LSWP12A06_RST2 , RunTimeRec_In :=LSWP12A06_RH2 | LSWP12A06_RH2:= RUNTIME); END_PROGRAM