PROGRAM FCU VAR_EXTERNAL END_VAR VAR_GLOBAL END_VAR VAR FCU03F01_IN :FCU_IN; FCU03F01_OUT:FCU_OUT; FCU03F01_SyncControl:IJ_SyncControl; FCU03F01_FCU:IJ_FCU; FCU03F01_T_AVE:BS_Average; FCU04F01_IN :FCU_IN; FCU04F01_OUT:FCU_OUT; FCU04F01_SyncControl:IJ_SyncControl; FCU04F01_FCU:IJ_FCU; FCU04F01_T_AVE:BS_Average; END_VAR (********************************************FCU03F01********************************************) (*输入,类型,示值上限,示值下限,基准补偿,输出补偿*) FCU03F01_T_AVE(INPUT:=LFCU03F01_T); LFCU03F01_TS :=BS_Scale(FCU03F01_T_AVE.Output,1,0,100,0,0.0); (*主程序*) FCU03F01_FCU(FCU_STRUCT_IN:=FCU03F01_IN | FCU03F01_OUT:=FCU_STRUCT_OUT); (*AHU_INSTRUCT*) FCU03F01_IN.SM :=LFCU03F01_SM ; FCU03F01_IN.Run :=LFCU03F01_R ; FCU03F01_IN.Auto :=LFCU03F01_A ; FCU03F01_IN.Control :=LFCU03F01_PC ; FCU03F01_IN.TSET :=LFCU03F01_TSET ; FCU03F01_IN.EVA :=LFCU03F01_EVA ; FCU03F01_IN.EVR :=LFCU03F01_EVR ; FCU03F01_IN.EVMC :=LFCU03F01_EVMC ; FCU03F01_IN.EVMV :=LFCU03F01_EVMV ; FCU03F01_IN.TS :=LFCU03F01_TS ; FCU03F01_IN.RST :=LFCU03F01_RST ; FCU03F01_IN.RSTV :=LFCU03F01_RSTV ; FCU03F01_IN.ISO1 :=LFCU03F01_ISO1 ; (*FCU_OUTSTRUCT*) LFCU03F01_EVC :=FCU03F01_OUT.EVC ; LFCU03F01_C :=FCU03F01_OUT.Control ; LFCU03F01_RH :=FCU03F01_OUT.RH ; LFCU03F01_SN :=FCU03F01_OUT.SN ; (*同步程序*) FCU03F01_SyncControl(CM:=RNIFCU00000_CM,RM:=LCMD00000_RM, BOOL_IN0 :=RNIFCU03X00_PC ,BOOL_IN1 :=LFCU03F01_PC ,BOOL_IN2 :=RFCU03F01_PC , INT_IN0 :=RNIFCU03X00_SM ,INT_IN1 :=LFCU03F01_SM ,INT_IN2 :=RFCU03F01_SM , REAL_IN0 :=RNIFCU03X00_TSET,REAL_IN1 :=LFCU03F01_TSET ,REAL_IN2 :=RFCU03F01_TSET | LFCU03F01_PC :=BOOL_OUT1 ,RFCU03F01_PC :=BOOL_OUT2 , LFCU03F01_TSET:=REAL_OUT1 ,RFCU03F01_TSET:=REAL_OUT2 , LFCU03F01_SM :=INT_OUT1 ,RFCU03F01_SM :=INT_OUT2) ; (********************************************FCU04F01********************************************) (*输入,类型,示值上限,示值下限,基准补偿,输出补偿*) FCU04F01_T_AVE(INPUT:=LFCU04F01_T); LFCU04F01_TS :=BS_Scale(FCU04F01_T_AVE.Output,1,0,100,0,0.0); (*主程序*) FCU04F01_FCU(FCU_STRUCT_IN:=FCU04F01_IN | FCU04F01_OUT:=FCU_STRUCT_OUT); (*AHU_INSTRUCT*) FCU04F01_IN.SM :=LFCU04F01_SM ; FCU04F01_IN.Run :=LFCU04F01_R ; FCU04F01_IN.Auto :=LFCU04F01_A ; FCU04F01_IN.Control :=LFCU04F01_PC ; FCU04F01_IN.TSET :=LFCU04F01_TSET ; FCU04F01_IN.EVA :=LFCU04F01_EVA ; FCU04F01_IN.EVR :=LFCU04F01_EVR ; FCU04F01_IN.EVMC :=LFCU04F01_EVMC ; FCU04F01_IN.EVMV :=LFCU04F01_EVMV ; FCU04F01_IN.TS :=LFCU04F01_TS ; FCU04F01_IN.RST :=LFCU04F01_RST ; FCU04F01_IN.RSTV :=LFCU04F01_RSTV ; FCU04F01_IN.ISO1 :=LFCU04F01_ISO1 ; (*FCU_OUTSTRUCT*) LFCU04F01_EVC :=FCU04F01_OUT.EVC ; LFCU04F01_C :=FCU04F01_OUT.Control ; LFCU04F01_RH :=FCU04F01_OUT.RH ; LFCU04F01_SN :=FCU04F01_OUT.SN ; (*同步程序*) FCU04F01_SyncControl(CM:=RNIFCU00000_CM,RM:=LCMD00000_RM, BOOL_IN0 :=RNIFCU04X00_PC ,BOOL_IN1 :=LFCU04F01_PC ,BOOL_IN2 :=RFCU04F01_PC , INT_IN0 :=RNIFCU04X00_SM ,INT_IN1 :=LFCU04F01_SM ,INT_IN2 :=RFCU04F01_SM , REAL_IN0 :=RNIFCU04X00_TSET,REAL_IN1 :=LFCU04F01_TSET ,REAL_IN2 :=RFCU04F01_TSET | LFCU04F01_PC :=BOOL_OUT1 ,RFCU04F01_PC :=BOOL_OUT2 , LFCU04F01_TSET:=REAL_OUT1 ,RFCU04F01_TSET:=REAL_OUT2 , LFCU04F01_SM :=INT_OUT1 ,RFCU04F01_SM :=INT_OUT2) ; END_PROGRAM