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.
57 lines
3.5 KiB
57 lines
3.5 KiB
3 months ago
|
PROGRAM SWP
|
||
|
VAR_EXTERNAL
|
||
|
|
||
|
END_VAR
|
||
|
|
||
|
VAR_GLOBAL
|
||
|
|
||
|
END_VAR
|
||
|
|
||
|
VAR
|
||
|
SWPB1E01_RunTime1:BS_RunTime;
|
||
|
SWPB1E01_RunTime2:BS_RunTime;
|
||
|
SWPB1E02_RunTime1:BS_RunTime;
|
||
|
SWPB1E02_RunTime2:BS_RunTime;
|
||
|
SWPB1E03_RunTime1:BS_RunTime;
|
||
|
SWPB1E03_RunTime2:BS_RunTime;
|
||
|
SWPB1E04_RunTime1:BS_RunTime;
|
||
|
SWPB1E04_RunTime2:BS_RunTime;
|
||
|
SWPB1E05_RunTime1:BS_RunTime;
|
||
|
SWPB1E05_RunTime2:BS_RunTime;
|
||
|
SWPB1E06_RunTime1:BS_RunTime;
|
||
|
SWPB1E06_RunTime2:BS_RunTime;
|
||
|
SWPB1E07_RunTime1:BS_RunTime;
|
||
|
SWPB1E07_RunTime2:BS_RunTime;
|
||
|
SWPB1E08_RunTime1:BS_RunTime;
|
||
|
SWPB1E08_RunTime2:BS_RunTime;
|
||
|
|
||
|
|
||
|
EAFB1E01_RunTime:BS_RunTime;
|
||
|
EAFB1E02_RunTime:BS_RunTime;
|
||
|
|
||
|
|
||
|
|
||
|
END_VAR
|
||
|
(*运行累积时间*)
|
||
|
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);
|
||
|
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);
|
||
|
SWPB1B03_RunTime1(RUN :=LSWPB1B03_R1 , RUNTIMESET :=LSWPB1B03_RSTV1 , RUNTIMERST :=LSWPB1B03_RST1 , RunTimeRec_In :=LSWPB1B03_RH1 | LSWPB1B03_RH1:= RUNTIME);
|
||
|
SWPB1B03_RunTime2(RUN :=LSWPB1B03_R2 , RUNTIMESET :=LSWPB1B03_RSTV2 , RUNTIMERST :=LSWPB1B03_RST2 , RunTimeRec_In :=LSWPB1B03_RH2 | LSWPB1B03_RH2:= RUNTIME);
|
||
|
SWPB1B04_RunTime1(RUN :=LSWPB1B04_R1 , RUNTIMESET :=LSWPB1B04_RSTV1 , RUNTIMERST :=LSWPB1B04_RST1 , RunTimeRec_In :=LSWPB1B04_RH1 | LSWPB1B04_RH1:= RUNTIME);
|
||
|
SWPB1B04_RunTime2(RUN :=LSWPB1B04_R2 , RUNTIMESET :=LSWPB1B04_RSTV2 , RUNTIMERST :=LSWPB1B04_RST2 , RunTimeRec_In :=LSWPB1B04_RH2 | LSWPB1B04_RH2:= RUNTIME);
|
||
|
SWPB1B05_RunTime1(RUN :=LSWPB1B05_R1 , RUNTIMESET :=LSWPB1B05_RSTV1 , RUNTIMERST :=LSWPB1B05_RST1 , RunTimeRec_In :=LSWPB1B05_RH1 | LSWPB1B05_RH1:= RUNTIME);
|
||
|
SWPB1B05_RunTime2(RUN :=LSWPB1B05_R2 , RUNTIMESET :=LSWPB1B05_RSTV2 , RUNTIMERST :=LSWPB1B05_RST2 , RunTimeRec_In :=LSWPB1B05_RH2 | LSWPB1B05_RH2:= RUNTIME);
|
||
|
SWPB1B06_RunTime1(RUN :=LSWPB1B06_R1 , RUNTIMESET :=LSWPB1B06_RSTV1 , RUNTIMERST :=LSWPB1B06_RST1 , RunTimeRec_In :=LSWPB1B06_RH1 | LSWPB1B06_RH1:= RUNTIME);
|
||
|
SWPB1B06_RunTime2(RUN :=LSWPB1B06_R2 , RUNTIMESET :=LSWPB1B06_RSTV2 , RUNTIMERST :=LSWPB1B06_RST2 , RunTimeRec_In :=LSWPB1B06_RH2 | LSWPB1B06_RH2:= RUNTIME);
|
||
|
SWPB1B07_RunTime1(RUN :=LSWPB1B07_R1 , RUNTIMESET :=LSWPB1B07_RSTV1 , RUNTIMERST :=LSWPB1B07_RST1 , RunTimeRec_In :=LSWPB1B07_RH1 | LSWPB1B07_RH1:= RUNTIME);
|
||
|
SWPB1B07_RunTime2(RUN :=LSWPB1B07_R2 , RUNTIMESET :=LSWPB1B07_RSTV2 , RUNTIMERST :=LSWPB1B07_RST2 , RunTimeRec_In :=LSWPB1B07_RH2 | LSWPB1B07_RH2:= RUNTIME);
|
||
|
SWPB1B08_RunTime1(RUN :=LSWPB1B08_R1 , RUNTIMESET :=LSWPB1B08_RSTV1 , RUNTIMERST :=LSWPB1B08_RST1 , RunTimeRec_In :=LSWPB1B08_RH1 | LSWPB1B08_RH1:= RUNTIME);
|
||
|
SWPB1B08_RunTime2(RUN :=LSWPB1B08_R2 , RUNTIMESET :=LSWPB1B08_RSTV2 , RUNTIMERST :=LSWPB1B08_RST2 , RunTimeRec_In :=LSWPB1B08_RH2 | LSWPB1B08_RH2:= RUNTIME);
|
||
|
|
||
|
(*运行累积时间*)
|
||
|
EAFB1B01_RunTime(RUN :=LEAFB1B01_R , RUNTIMESET :=LEAFB1B01_RSTV , RUNTIMERST :=LEAFB1B01_RST, RunTimeRec_In :=LEAFB1B01_RH | LEAFB1B01_RH:= RUNTIME);
|
||
|
EAFB1B02_RunTime(RUN :=LEAFB1B02_R , RUNTIMESET :=LEAFB1B02_RSTV , RUNTIMERST :=LEAFB1B02_RST, RunTimeRec_In :=LEAFB1B02_RH | LEAFB1B02_RH:= RUNTIME);
|
||
|
|
||
|
END_PROGRAM
|