PROGRAM EAF
VAR_EXTERNAL

END_VAR

VAR_GLOBAL

END_VAR

VAR
LEAFB1A01_COS:ARRAY[0..10] OF REAL;
ESFB1A01_SyncControl:IJ_LSyncControl;
ESFB1A01_SLG:IJ_EAFGroup;
ESFB1A01_RunTime:BS_RunTime;
LESFB1A01_LC  :ARRAY[0..10] OF BOOL;

LEAFB1A02_COS:ARRAY[0..10] OF REAL;
ESFB1A02_SyncControl:IJ_LSyncControl;
ESFB1A02_SLG:IJ_EAFGroup;
ESFB1A02_RunTime:BS_RunTime;
LESFB1A02_LC  :ARRAY[0..10] OF BOOL;

LSAFB1A03_COS:ARRAY[0..10] OF REAL;
SAFB1A03_SyncControl:IJ_LSyncControl;
SAFB1A03_SLG:IJ_EAFGroup;
SAFB1A03_RunTime:BS_RunTime;
LSAFB1A03_LC  :ARRAY[0..10] OF BOOL;
LSAFB1A04_COS:ARRAY[0..10] OF REAL;
SAFB1A04_SyncControl:IJ_LSyncControl;
SAFB1A04_SLG:IJ_EAFGroup;
SAFB1A04_RunTime:BS_RunTime;
LSAFB1A04_LC  :ARRAY[0..10] OF BOOL;
LSAFB1A05_COS:ARRAY[0..10] OF REAL;
SAFB1A05_SyncControl:IJ_LSyncControl;
SAFB1A05_SLG:IJ_EAFGroup;
SAFB1A05_RunTime:BS_RunTime;
LSAFB1A05_LC  :ARRAY[0..10] OF BOOL;

END_VAR
    
	LESFB1A01_TC    :=LESFB1A01_LC[1];
    (*排风机联动程序*)
    ESFB1A01_SLG(ENABLE :=LESFB1A01_TM ,LINKAGEVALUE :=LEAFB1A01_COS , DEAD_BAND :=10.0 , MAXRANGE :=1000.0 , MINRANGE :=0.1 ,LINKAGESET :=LESFB1A01_COSET ,  HOLDDELAY :=t#60s , ENABLENUM :=4);
    (*运行累积时间*)
    ESFB1A01_RunTime(RUN :=LESFB1A01_R , RUNTIMESET :=LESFB1A01_RSTV , RUNTIMERST :=LESFB1A01_RST , RunTimeRec_In :=LESFB1A01_RH |  LESFB1A01_RH:= RUNTIME);

    LESFB1A02_TC    :=LESFB1A02_LC[1];
    (*排风机联动程序*)
    ESFB1A02_SLG(ENABLE :=LESFB1A02_TM ,LINKAGEVALUE :=LEAFB1A02_COS , DEAD_BAND :=10.0 , MAXRANGE :=1000.0 , MINRANGE :=0.1 ,LINKAGESET :=LESFB1A02_COSET ,  HOLDDELAY :=t#60s , ENABLENUM :=4);
    (*运行累积时间*)
    ESFB1A02_RunTime(RUN :=LESFB1A02_R , RUNTIMESET :=LESFB1A02_RSTV , RUNTIMERST :=LESFB1A02_RST , RunTimeRec_In :=LESFB1A02_RH |  LESFB1A02_RH:= RUNTIME);
	
	LSAFB1A03_TC    :=LSAFB1A03_LC[1];
    (*排风机联动程序*)
    SAFB1A03_SLG(ENABLE :=LSAFB1A03_TM ,LINKAGEVALUE :=LSAFB1A03_COS , DEAD_BAND :=10.0 , MAXRANGE :=1000.0 , MINRANGE :=0.1 ,LINKAGESET :=LSAFB1A03_COSET ,  HOLDDELAY :=t#60s , ENABLENUM :=4);
   (*运行累积时间*)
    SAFB1A03_RunTime(RUN :=LSAFB1A03_R , RUNTIMESET :=LSAFB1A03_RSTV , RUNTIMERST :=LSAFB1A03_RST , RunTimeRec_In :=LSAFB1A03_RH |  LSAFB1A03_RH:= RUNTIME);
	
	LSAFB1A04_TC    :=LSAFB1A04_LC[1];
    (*排风机联动程序*)
    SAFB1A04_SLG(ENABLE :=LSAFB1A04_TM ,LINKAGEVALUE :=LSAFB1A04_COS , DEAD_BAND :=10.0 , MAXRANGE :=1000.0 , MINRANGE :=0.1 ,LINKAGESET :=LSAFB1A04_COSET ,  HOLDDELAY :=t#60s , ENABLENUM :=4);
   (*运行累积时间*)
    SAFB1A04_RunTime(RUN :=LSAFB1A04_R , RUNTIMESET :=LSAFB1A04_RSTV , RUNTIMERST :=LSAFB1A04_RST , RunTimeRec_In :=LSAFB1A04_RH |  LSAFB1A04_RH:= RUNTIME);
	
	LSAFB1A05_TC    :=LSAFB1A05_LC[1];
    (*排风机联动程序*)
    SAFB1A05_SLG(ENABLE :=LSAFB1A05_TM ,LINKAGEVALUE :=LSAFB1A05_COS , DEAD_BAND :=10.0 , MAXRANGE :=1000.0 , MINRANGE :=0.1 ,LINKAGESET :=LSAFB1A05_COSET ,  HOLDDELAY :=t#60s , ENABLENUM :=4);
   (*运行累积时间*)
    SAFB1A05_RunTime(RUN :=LSAFB1A05_R , RUNTIMESET :=LSAFB1A05_RSTV , RUNTIMERST :=LSAFB1A05_RST , RunTimeRec_In :=LSAFB1A05_RH |  LSAFB1A05_RH:= RUNTIME);
END_PROGRAM