PROGRAM SWP VAR_EXTERNAL END_VAR VAR_GLOBAL END_VAR VAR SWP03A01_RunTime1:BS_RunTime; SWP03A01_RunTime2:BS_RunTime; SWP03A02_RunTime1:BS_RunTime; SWP03A02_RunTime2:BS_RunTime; SWP03A03_RunTime1:BS_RunTime; SWP03A03_RunTime2:BS_RunTime; END_VAR (*运行累积时间*) SWP03A01_RunTime1(RUN :=LSWP03A01_R1 , RUNTIMESET :=LSWP03A01_RSTV1 , RUNTIMERST :=LSWP03A01_RST1 , RunTimeRec_In :=LSWP03A01_RH1 | LSWP03A01_RH1:= RUNTIME); SWP03A01_RunTime2(RUN :=LSWP03A01_R2 , RUNTIMESET :=LSWP03A01_RSTV2 , RUNTIMERST :=LSWP03A01_RST2 , RunTimeRec_In :=LSWP03A01_RH2 | LSWP03A01_RH2:= RUNTIME); SWP03A02_RunTime1(RUN :=LSWP03A02_R1 , RUNTIMESET :=LSWP03A02_RSTV1 , RUNTIMERST :=LSWP03A02_RST1 , RunTimeRec_In :=LSWP03A02_RH1 | LSWP03A02_RH1:= RUNTIME); SWP03A02_RunTime2(RUN :=LSWP03A02_R2 , RUNTIMESET :=LSWP03A02_RSTV2 , RUNTIMERST :=LSWP03A02_RST2 , RunTimeRec_In :=LSWP03A02_RH2 | LSWP03A02_RH2:= RUNTIME); SWP03A03_RunTime1(RUN :=LSWP03A03_R1 , RUNTIMESET :=LSWP03A03_RSTV1 , RUNTIMERST :=LSWP03A03_RST1 , RunTimeRec_In :=LSWP03A03_RH1 | LSWP03A03_RH1:= RUNTIME); SWP03A03_RunTime2(RUN :=LSWP03A03_R2 , RUNTIMESET :=LSWP03A03_RSTV2 , RUNTIMERST :=LSWP03A03_RST2 , RunTimeRec_In :=LSWP03A03_RH2 | LSWP03A03_RH2:= RUNTIME); END_PROGRAM