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.
61 lines
1.3 KiB
61 lines
1.3 KiB
PROGRAM SUMP
|
|
VAR_EXTERNAL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
END_VAR
|
|
|
|
VAR_GLOBAL
|
|
|
|
END_VAR
|
|
|
|
VAR
|
|
|
|
SWPB2A01_RunTime1:BS_RunTime;
|
|
SWPB2A01_RunTime2:BS_RunTime;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SWPB2D01_RunTime1:BS_RunTime;
|
|
SWPB2D01_RunTime2:BS_RunTime;
|
|
|
|
|
|
SWPB2D02_RunTime1:BS_RunTime;
|
|
SWPB2D02_RunTime2:BS_RunTime;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
END_VAR
|
|
|
|
(*运行累积时间*)
|
|
SWPB2A01_RunTime1(RUN :=LSWPB2A01_R1 , RUNTIMESET :=LSWPB2A01_RSTV1 , RUNTIMERST :=LSWPB2A01_RST1 , RunTimeRec_In :=LSWPB2A01_RH1 | LSWPB2A01_RH1:= RUNTIME);
|
|
SWPB2A01_RunTime2(RUN :=LSWPB2A01_R2 , RUNTIMESET :=LSWPB2A01_RSTV2 , RUNTIMERST :=LSWPB2A01_RST2 , RunTimeRec_In :=LSWPB2A01_RH2 | LSWPB2A01_RH2:= RUNTIME);
|
|
|
|
|
|
|
|
|
|
(*运行累积时间*)
|
|
SWPB2D01_RunTime1(RUN :=LSWPB2D01_R1 , RUNTIMESET :=LSWPB2D01_RSTV1 , RUNTIMERST :=LSWPB2D01_RST1 , RunTimeRec_In :=LSWPB2D01_RH1 | LSWPB2D01_RH1:= RUNTIME);
|
|
SWPB2D01_RunTime2(RUN :=LSWPB2D01_R2 , RUNTIMESET :=LSWPB2D01_RSTV2 , RUNTIMERST :=LSWPB2D01_RST2 , RunTimeRec_In :=LSWPB2D01_RH2 | LSWPB2D01_RH2:= RUNTIME);
|
|
|
|
(*运行累积时间*)
|
|
SWPB2D02_RunTime1(RUN :=LSWPB2D02_R1 , RUNTIMESET :=LSWPB2D02_RSTV1 , RUNTIMERST :=LSWPB2D02_RST1 , RunTimeRec_In :=LSWPB2D02_RH1 | LSWPB2D02_RH1:= RUNTIME);
|
|
SWPB2D02_RunTime2(RUN :=LSWPB2D02_R2 , RUNTIMESET :=LSWPB2D02_RSTV2 , RUNTIMERST :=LSWPB2D02_RST2 , RunTimeRec_In :=LSWPB2D02_RH2 | LSWPB2D02_RH2:= RUNTIME);
|
|
|
|
|
|
END_PROGRAM
|