You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.3 KiB

4 months ago
PROGRAM SUMP
VAR_EXTERNAL
END_VAR
VAR_GLOBAL
END_VAR
VAR
SWPB3D01_RunTime1:BS_RunTime;
SWPB3D01_RunTime2:BS_RunTime;
SWPB3D02_RunTime1:BS_RunTime;
SWPB3D02_RunTime2:BS_RunTime;
SWPB3D03_RunTime1:BS_RunTime;
SWPB3D03_RunTime2:BS_RunTime;
END_VAR
(*运行累积时间*)
SWPB3D01_RunTime1(RUN :=LSWPB3D01_R1 , RUNTIMESET :=LSWPB3D01_RSTV1 , RUNTIMERST :=LSWPB3D01_RST1 , RunTimeRec_In :=LSWPB3D01_RH1 | LSWPB3D01_RH1:= RUNTIME);
SWPB3D01_RunTime2(RUN :=LSWPB3D01_R2 , RUNTIMESET :=LSWPB3D01_RSTV2 , RUNTIMERST :=LSWPB3D01_RST2 , RunTimeRec_In :=LSWPB3D01_RH2 | LSWPB3D01_RH2:= RUNTIME);
(*运行累积时间*)
SWPB3D02_RunTime1(RUN :=LSWPB3D02_R1 , RUNTIMESET :=LSWPB3D02_RSTV1 , RUNTIMERST :=LSWPB3D02_RST1 , RunTimeRec_In :=LSWPB3D02_RH1 | LSWPB3D02_RH1:= RUNTIME);
SWPB3D02_RunTime2(RUN :=LSWPB3D02_R2 , RUNTIMESET :=LSWPB3D02_RSTV2 , RUNTIMERST :=LSWPB3D02_RST2 , RunTimeRec_In :=LSWPB3D02_RH2 | LSWPB3D02_RH2:= RUNTIME);
(*运行累积时间*)
SWPB3D03_RunTime1(RUN :=LSWPB3D03_R1 , RUNTIMESET :=LSWPB3D03_RSTV1 , RUNTIMERST :=LSWPB3D03_RST1 , RunTimeRec_In :=LSWPB3D03_RH1 | LSWPB3D03_RH1:= RUNTIME);
SWPB3D03_RunTime2(RUN :=LSWPB3D03_R2 , RUNTIMESET :=LSWPB3D03_RSTV2 , RUNTIMERST :=LSWPB3D03_RST2 , RunTimeRec_In :=LSWPB3D03_RH2 | LSWPB3D03_RH2:= RUNTIME);
END_PROGRAM