PROGRAM SUMP VAR_EXTERNAL END_VAR VAR_GLOBAL END_VAR VAR SWPB1B01_RunTime1:BS_RunTime; SWPB1B01_RunTime2:BS_RunTime; SWPB1B02_RunTime1:BS_RunTime; SWPB1B02_RunTime2:BS_RunTime; END_VAR (*Automatically declared*) VAR_EXTERNAL LSWPB1B02_RSTV1 : REAL; LSWPB1B01_RH2 : REAL; LSWPB1B01_RST2 : BOOL; LSWPB1B01_RST1 : BOOL; LSWPB1B02_RH2 : REAL; LSWPB1B02_RH1 : REAL; LSWPB1B02_RST2 : BOOL; LSWPB1B02_RST1 : BOOL; LSWPB1B01_RSTV2 : REAL; LSWPB1B01_RSTV1 : REAL; LSWPB1B01_R2 : BOOL; LSWPB1B01_R1 : BOOL; LSWPB1B02_R2 : BOOL; LSWPB1B02_R1 : BOOL; LSWPB1B02_RSTV2 : REAL; LSWPB1B01_RH1 : REAL; END_VAR (** **) (** {*运行累积时间*} **) (** SWPB1B01_RunTime1(RUN :=LSWPB1B01_R1 , RUNTIMESET :=LSWPB1B01_RSTV1 , RUNTIMERST :=LSWPB1B01_RST1 , RunTimeRec_In :=LSWPB1B01_RH1 | LSWPB1B01_RH1:= RUNTIME); **) (* call - Stmt *) CAL SWPB1B01_RunTime1 ( RUN := LSWPB1B01_R1, RUNTIMESET := LSWPB1B01_RSTV1, RUNTIMERST := LSWPB1B01_RST1, RunTimeRec_In := LSWPB1B01_RH1 | LSWPB1B01_RH1 := RUNTIME ) (** SWPB1B01_RunTime2(RUN :=LSWPB1B01_R2 , RUNTIMESET :=LSWPB1B01_RSTV2 , RUNTIMERST :=LSWPB1B01_RST2 , RunTimeRec_In :=LSWPB1B01_RH2 | LSWPB1B01_RH2:= RUNTIME); **) (* call - Stmt *) CAL SWPB1B01_RunTime2 ( RUN := LSWPB1B01_R2, RUNTIMESET := LSWPB1B01_RSTV2, RUNTIMERST := LSWPB1B01_RST2, RunTimeRec_In := LSWPB1B01_RH2 | LSWPB1B01_RH2 := RUNTIME ) (** {*运行累积时间*} **) (** SWPB1B02_RunTime1(RUN :=LSWPB1B02_R1 , RUNTIMESET :=LSWPB1B02_RSTV1 , RUNTIMERST :=LSWPB1B02_RST1 , RunTimeRec_In :=LSWPB1B02_RH1 | LSWPB1B02_RH1:= RUNTIME); **) (* call - Stmt *) CAL SWPB1B02_RunTime1 ( RUN := LSWPB1B02_R1, RUNTIMESET := LSWPB1B02_RSTV1, RUNTIMERST := LSWPB1B02_RST1, RunTimeRec_In := LSWPB1B02_RH1 | LSWPB1B02_RH1 := RUNTIME ) (** SWPB1B02_RunTime2(RUN :=LSWPB1B02_R2 , RUNTIMESET :=LSWPB1B02_RSTV2 , RUNTIMERST :=LSWPB1B02_RST2 , RunTimeRec_In :=LSWPB1B02_RH2 | LSWPB1B02_RH2:= RUNTIME); **) (* call - Stmt *) CAL SWPB1B02_RunTime2 ( RUN := LSWPB1B02_R2, RUNTIMESET := LSWPB1B02_RSTV2, RUNTIMERST := LSWPB1B02_RST2, RunTimeRec_In := LSWPB1B02_RH2 | LSWPB1B02_RH2 := RUNTIME ) (** **) (** **) (** **) (** **) END_PROGRAM