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.
 
 
 
 
 
 

64 lines
1.7 KiB

PROGRAM SUMP
VAR_EXTERNAL
END_VAR
VAR_GLOBAL
END_VAR
VAR
SWPB2C01_RunTime1:BS_RunTime;
SWPB2C01_RunTime2:BS_RunTime;
SWPB2C02_RunTime1:BS_RunTime;
SWPB2C02_RunTime2:BS_RunTime;
SWPB2C03_RunTime1:BS_RunTime;
SWPB2C03_RunTime2:BS_RunTime;
SWPB2C04_RunTime1:BS_RunTime;
SWPB2C04_RunTime2:BS_RunTime;
END_VAR
(*运行累积时间*)
SWPB2C01_RunTime1(RUN :=LSWPB2C01_R1 , RUNTIMESET :=LSWPB2C01_RSTV1 , RUNTIMERST :=LSWPB2C01_RST1 , RunTimeRec_In :=LSWPB2C01_RH1 | LSWPB2C01_RH1:= RUNTIME);
SWPB2C01_RunTime2(RUN :=LSWPB2C01_R2 , RUNTIMESET :=LSWPB2C01_RSTV2 , RUNTIMERST :=LSWPB2C01_RST2 , RunTimeRec_In :=LSWPB2C01_RH2 | LSWPB2C01_RH2:= RUNTIME);
(*运行累积时间*)
SWPB2C02_RunTime1(RUN :=LSWPB2C02_R1 , RUNTIMESET :=LSWPB2C02_RSTV1 , RUNTIMERST :=LSWPB2C02_RST1 , RunTimeRec_In :=LSWPB2C02_RH1 | LSWPB2C02_RH1:= RUNTIME);
SWPB2C02_RunTime2(RUN :=LSWPB2C02_R2 , RUNTIMESET :=LSWPB2C02_RSTV2 , RUNTIMERST :=LSWPB2C02_RST2 , RunTimeRec_In :=LSWPB2C02_RH2 | LSWPB2C02_RH2:= RUNTIME);
(*运行累积时间*)
SWPB2C03_RunTime1(RUN :=LSWPB2C03_R1 , RUNTIMESET :=LSWPB2C03_RSTV1 , RUNTIMERST :=LSWPB2C03_RST1 , RunTimeRec_In :=LSWPB2C03_RH1 | LSWPB2C03_RH1:= RUNTIME);
SWPB2C03_RunTime2(RUN :=LSWPB2C03_R2 , RUNTIMESET :=LSWPB2C03_RSTV2 , RUNTIMERST :=LSWPB2C03_RST2 , RunTimeRec_In :=LSWPB2C03_RH2 | LSWPB2C03_RH2:= RUNTIME);
(*运行累积时间*)
SWPB2C04_RunTime1(RUN :=LSWPB2C04_R1 , RUNTIMESET :=LSWPB2C04_RSTV1 , RUNTIMERST :=LSWPB2C04_RST1 , RunTimeRec_In :=LSWPB2C04_RH1 | LSWPB2C04_RH1:= RUNTIME);
SWPB2C04_RunTime2(RUN :=LSWPB2C04_R2 , RUNTIMESET :=LSWPB2C04_RSTV2 , RUNTIMERST :=LSWPB2C04_RST2 , RunTimeRec_In :=LSWPB2C04_RH2 | LSWPB2C04_RH2:= RUNTIME);
END_PROGRAM