270 lines
12 KiB
Plaintext
270 lines
12 KiB
Plaintext
(* @GLOBAL_VARIABLE_LIST := HMI_Blender_Parameters *)
|
|
(* @PATH := '\/HMI_Variable' *)
|
|
(* @SYMFILEFLAGS := '59392' *)
|
|
VAR_GLOBAL PERSISTENT
|
|
(*************************************************************************)
|
|
(* PROCESSOR OPTIONS *)
|
|
(*************************************************************************)
|
|
gH_Blender_OPT_ModelNum : UINT ; (* *)
|
|
gH_Blender_OPT_CO2_Offset : REAL ; (* *)
|
|
gH_Blender_OPT_MaxSyrDeltaBrix : REAL ; (* *)
|
|
|
|
gH_Blender_OPT_BrixMeter : BOOL ; (* *)
|
|
gH_Blender_OPT_MeterType : UINT ; (* 1: Maselli 2: AntoonPaar 3: 4-20mA 4: UC05 UR22 *)
|
|
gH_Blender_OPT_MeterReceiveOnly : BOOL ; (* *)
|
|
gH_Blender_OPT_SyrBrixMeter : BOOL ; (* *)
|
|
gH_Blender_OPT_SyrupLevel : BOOL ; (* 0: Digital 1: Analogical *)
|
|
|
|
gH_Blender_OPT_FastChangeOverEnabled : BOOL ; (* *)
|
|
gH_Blender_OPT_FillerRinseTank : BOOL ; (* *)
|
|
gH_Blender_OPT_BlendFillSystem : BOOL ; (* *)
|
|
gH_Blender_OPT_TrackFillerSpeed : BOOL ; (* *)
|
|
gH_Blender_OPT_SignalExchange : UINT ; (* 0: Hardware 1: Ethernet 2: DeviceNet *)
|
|
|
|
gH_Blender_OPT_CoolerPresent : BOOL ; (* *)
|
|
gH_Blender_OPT_CoolerControl : UINT ; (* 0: External 1: Only Water 2: Only Product 3: Water+Product -Separated Control- 4: Water+Product -Single Control- *)
|
|
gH_Blender_OPT_CoolerType : UINT ; (* 0: Glycol 1: Ammonia *)
|
|
|
|
gH_Blender_OPT_LocalCIP : BOOL ; (* *)
|
|
gH_Blender_OPT_Conductimeter : BOOL ; (* *)
|
|
gH_Blender_OPT_Conductimeter_Profibus : BOOL ; (* *)
|
|
gH_Blender_OPT_CIPSignalExchange : BOOL ; (* *)
|
|
|
|
gH_Blender_OPT_RemoteInjection : BOOL ; (* *)
|
|
gH_Blender_OPT_CarboPresent : BOOL ;
|
|
gH_Blender_OPT_InjectionPress_Ctrl : BOOL ; (* 0: Manual 1: Automatic ----- Injection pressure control and deareation valve *)
|
|
gH_Blender_OPT_VacuumPump : BOOL ; (* *)
|
|
|
|
gH_Blender_OPT_DoubleDeair : BOOL ; (* *)
|
|
gH_Blender_OPT_ByPassDeair : BOOL ; (* EV48 EV49 EV50 *)
|
|
gH_Blender_OPT_Deaireation : BOOL ; (* 0: SAG 1:SAE/SAF *)
|
|
gH_Blender_OPT_StillWaterByPass : BOOL ; (* EV39 EV40 *)
|
|
gH_Blender_OPT_Flowtronic : BOOL ; (* 0: Not Present 1: Present *)
|
|
|
|
gH_Blender_OPT_Inverter : BOOL ; (* *)
|
|
gH_Blender_OPT_DivertPanel : UINT ; (* *)
|
|
gH_Blender_OPT_Promass : UINT ; (* *)
|
|
gH_Blender_OPT_WaterPromass : BOOL ; (* *)
|
|
gH_Blender_OPT_ProductConductimeter : BOOL ; (* *)
|
|
gH_Blender_OPT_ProductPulp : BOOL ; (* *)
|
|
gH_Blender_OPT_PLCDataAcq : BOOL ; (* *)
|
|
gH_Blender_OPT_CO2_N2_Injection : BOOL ; (* *)
|
|
gH_Blender_OPT_UPS_Siemens : BOOL ; (* *)
|
|
gH_Blender_OPT_UVLamp : BOOL ; (* *)
|
|
gH_Blender_OPT_RunOut_Water : BOOL ; (* 0: Water Not Present - 1: Water Present *)
|
|
|
|
gH_Blender_OPT_Simulation : BOOL ; (* *)
|
|
|
|
|
|
(*************************************************************************)
|
|
(* ACTUAL RECIPE PARAMETERS *)
|
|
(*************************************************************************)
|
|
gH_A_Recipe_Name : STRING ;
|
|
gH_A_Recipe_SyrupBrix : REAL ; (* *)
|
|
gH_A_Recipe_SyrupDensity : REAL ; (* *)
|
|
gH_A_Recipe_SyrupFactor : REAL ; (* *)
|
|
gH_A_Recipe_ProductBrix : REAL ; (* *)
|
|
gH_A_Recipe_ProductionRate : REAL ; (* *)
|
|
gH_A_Recipe_Ratio : REAL ; (* *)
|
|
gH_A_Recipe_ProdBrixOffset : REAL ; (* *)
|
|
gH_A_Recipe_CO2Vols : REAL ; (* *)
|
|
gH_A_Recipe_CO2Fact : REAL ; (* *)
|
|
gH_A_Recipe_CO2 : BOOL ; (* *)
|
|
gH_A_Recipe_ProdTankPress : REAL ; (* *)
|
|
gH_A_Recipe_SP_ProdTemp : REAL ; (* *)
|
|
gH_A_Recipe_EnProdTemp : BOOL ; (* *)
|
|
gH_A_Recipe_PrdTankMinLevel : REAL ; (* *)
|
|
gH_A_Recipe_Type : INT ; (* *)
|
|
gH_A_Recipe_WaterValveSave : REAL ; (* *)
|
|
gH_A_Recipe_SyrupValveSave : REAL ; (* *)
|
|
gH_A_Recipe_CarboCO2ValveSave : REAL ; (* *)
|
|
gH_A_Recipe_ProdMeterRecipeNum : INT ; (* *)
|
|
gH_A_Recipe_ProdMeterHighBrix : REAL ; (* *)
|
|
gH_A_Recipe_ProdMeterLowBrix : REAL ; (* *)
|
|
gH_A_Recipe_ProdMeterHighCO2 : REAL ; (* *)
|
|
gH_A_Recipe_ProdMeterLowCO2 : REAL ; (* *)
|
|
gH_A_Recipe_ProdMeter_ZeroCO2 : REAL;
|
|
gH_A_Recipe_ProdMeter_ZeroBrix : REAL;
|
|
|
|
gH_A_Recipe_ProdHighCond : REAL ; (* *)
|
|
gH_A_Recipe_ProdLowCond : REAL ; (* *)
|
|
gH_A_Recipe_WaterSelection : BYTE ; (* *)
|
|
gH_A_Recipe_EnDeaireation : BOOL ; (* *)
|
|
|
|
gH_A_Recipe_FillerNextRecipeNum : BYTE ; (* *)
|
|
gH_A_Recipe_BottleSize : REAL; (* *)
|
|
gH_A_Recipe_BottleShape : SINT ; (* *)
|
|
gH_A_Recipe_FillingValveHead_SP : REAL ;
|
|
|
|
gH_A_Recipe_Transfer : BOOL ;
|
|
|
|
gH_mPDS1000_SyrupFactor : REAL ; (* *)
|
|
|
|
(*************************************************************************)
|
|
(* NEXT RECIPE PARAMETERS *)
|
|
(*************************************************************************)
|
|
gH_N_Recipe_Name : STRING ;
|
|
gH_N_Recipe_SyrupBrix : REAL ; (* *)
|
|
gH_N_Recipe_SyrupDensity : REAL ; (* *)
|
|
gH_N_Recipe_SyrupFactor : REAL ; (* *)
|
|
gH_N_Recipe_ProductBrix : REAL ; (* *)
|
|
gH_N_Recipe_ProductionRate : REAL ; (* *)
|
|
gH_N_Recipe_Ratio : REAL ; (* *)
|
|
gH_N_Recipe_ProdBrixOffset : REAL ; (* *)
|
|
gH_N_Recipe_CO2Vols : REAL ; (* *)
|
|
gH_N_Recipe_CO2Fact : REAL ; (* *)
|
|
gH_N_Recipe_CO2 : BOOL ; (* *)
|
|
gH_N_Recipe_ProdTankPress : REAL ; (* *)
|
|
gH_N_Recipe_SP_ProdTemp : REAL ; (* *)
|
|
gH_N_Recipe_EnProdTemp : BOOL ; (* *)
|
|
gH_N_Recipe_PrdTankMinLevel : REAL ; (* *)
|
|
gH_N_Recipe_Type : INT ; (* *)
|
|
gH_N_Recipe_WaterValveSave : REAL ; (* *)
|
|
gH_N_Recipe_SyrupValveSave : REAL ; (* *)
|
|
gH_N_Recipe_CarboCO2ValveSave : REAL ; (* *)
|
|
gH_N_Recipe_ProdMeterRecipeNum : INT ; (* *)
|
|
gH_N_Recipe_ProdMeterHighBrix : REAL ; (* *)
|
|
gH_N_Recipe_ProdMeterLowBrix : REAL ; (* *)
|
|
gH_N_Recipe_ProdMeterHighCO2 : REAL ; (* *)
|
|
gH_N_Recipe_ProdMeterLowCO2 : REAL ; (* *)
|
|
gH_N_Recipe_ProdMeter_ZeroCO2 : REAL;
|
|
gH_N_Recipe_ProdMeter_ZeroBrix : REAL;
|
|
|
|
gH_N_Recipe_ProdHighCond : REAL ; (* *)
|
|
gH_N_Recipe_ProdLowCond : REAL ; (* *)
|
|
gH_N_Recipe_WaterSelection : BYTE ; (* *)
|
|
gH_N_Recipe_EnDeaireation : BOOL ; (* *)
|
|
|
|
gH_N_Recipe_FillerNextRecipeNum : BYTE ; (* *)
|
|
gH_N_Recipe_BottleSize : REAL; (* *)
|
|
gH_N_Recipe_BottleShape : SINT ; (* *)
|
|
gH_N_Recipe_FillingValveHead_SP : REAL ;
|
|
|
|
gH_N_Recipe_Transfer : BOOL ;
|
|
(*************************************************************************)
|
|
(* ANALOG VALUES - READ/WRITE *)
|
|
(*************************************************************************)
|
|
gH_ProcessSetup_WaterPumpPressure : REAL ; (* Water Pump Maximum Pressure *)
|
|
gH_ProcessSetup_SyrupPumpPressure : REAL ; (* Syrup Pump Maximum Pressure *)
|
|
gH_ProcessSetup_KWaterLoss : REAL ; (* Friction Loss Constant in Serpentine *)
|
|
gH_ProcessSetup_KSyrupLoss : REAL ; (* Friction Loss Constant in Syrup Pipe *)
|
|
gH_ProcessSetup_KProdLoss : REAL ; (* Pressure Loss Factor *)
|
|
gH_ProcessSetup_KProdPump : REAL ; (* Frequency Overpressure Pump P3 Constant [Hz/mm] *)
|
|
gH_ProcessSetup_MinProduction : REAL ; (* Minimum Production Set Point - L/min - *)
|
|
gH_ProcessSetup_SyrupLinePressure : REAL ; (* Syrup Line pressure at VEP2 valve *)
|
|
|
|
gH_ProcessSetup_CIPWaterValveOV : REAL ; (* Water Valve Opening During CIP *)
|
|
gH_ProcessSetup_CIPSyrupValveOV : REAL ; (* Syrup Valve Opening During CIP *)
|
|
gH_ProcessSetup_CIPProdTankMinLevel : REAL ; (* Product Tank Minimum Level In CIP *)
|
|
gH_ProcessSetup_CIPProdTankMaxLevel : REAL ; (* Product Tank Maximum Level In CIP *)
|
|
gH_ProcessSetup_CIPProdPumpFreq : REAL ; (* CIP frequency Value [Hz] *)
|
|
gH_ProcessSetup_CIPSyrTankMinLevel : REAL ; (* Syrup Tank Minimum Level In CIP *)
|
|
gH_ProcessSetup_CIPSyrTankMaxLevel : REAL ; (* Syrup Tank Maximum Level In CIP *)
|
|
|
|
gH_ProcessSetup_RinseWaterValveOV : REAL ; (* Water Valve Opening During Rinse *)
|
|
gH_ProcessSetup_RinseSyrupValveOV : REAL ; (* Syrup Valve Opening During Rinse *)
|
|
gH_ProcessSetup_RinseProdTankPress : REAL ; (* Product Tank Pressure In Rinse *)
|
|
gH_ProcessSetup_RinseProdPumpFreq : REAL ; (* Rinse frequency Value [Hz] *)
|
|
|
|
gH_ProcessSetup_KRecBlendError : REAL ; (* Blend Error Recovery CONSTANT *)
|
|
gH_ProcessSetup_KRecCarboCO2Error : REAL ; (* Carbonation Error Recovery Constant *)
|
|
gH_ProcessSetup_MaxBlendError : REAL ; (* Blend Error Maximum Value *)
|
|
gH_ProcessSetup_MaxCarboCO2Error : REAL ; (* Carbonation Error Maximum Value *)
|
|
gH_ProcessSetup_StartUpBrixExtraWater : REAL ; (* *)
|
|
gH_ProcessSetup_StartUpCO2ExtraWater : REAL ; (* *)
|
|
gH_ProcessSetup_StartUpProdPumpFreq : REAL ; (* Start Up frequency Value [Hz] *)
|
|
|
|
gH_ProcessSetup_SyrupRoomTank : INT ;
|
|
gH_ProcessSetup_SyrupRunOutLiters : REAL ; (* *)
|
|
|
|
gH_ProcessSetup_BPWaterPID : REAL ; (* *)
|
|
gH_ProcessSetup_TIWaterPID : REAL ; (* *)
|
|
gH_ProcessSetup_TDWaterPID : REAL ; (* *)
|
|
gH_ProcessSetup_FFWaterPID : REAL ; (* *)
|
|
|
|
gH_ProcessSetup_BPSyrupPID : REAL ; (* *)
|
|
gH_ProcessSetup_TISyrupPID : REAL ; (* *)
|
|
gH_ProcessSetup_TDSyrupPID : REAL ; (* *)
|
|
gH_ProcessSetup_FFSyrupPID : REAL ; (* *)
|
|
|
|
gH_ProcessSetup_BPCarboCO2PID : REAL ; (* *)
|
|
gH_ProcessSetup_TICarboCO2PID : REAL ; (* *)
|
|
gH_ProcessSetup_TDCarboCO2PID : REAL ; (* *)
|
|
gH_ProcessSetup_FFCarboCO2PID : REAL ; (* *)
|
|
|
|
gH_ProcessSetup_BPCIPTempPID : REAL ; (* *)
|
|
gH_ProcessSetup_TICIPTempPID : REAL ; (* *)
|
|
gH_ProcessSetup_TDCIPTempPID : REAL ; (* *)
|
|
gH_ProcessSetup_FFCIPTempPID : REAL ; (* *)
|
|
|
|
gH_ProcessSetup_BPProdTempPID : REAL ; (* *)
|
|
gH_ProcessSetup_TIProdTempPID : REAL ; (* *)
|
|
gH_ProcessSetup_TDProdTempPID : REAL ; (* *)
|
|
gH_ProcessSetup_FFProdTempPID : REAL ; (* *)
|
|
|
|
gH_ProcessSetup_BPWaterTempPID : REAL ; (* *)
|
|
gH_ProcessSetup_TIWaterTempPID : REAL ; (* *)
|
|
gH_ProcessSetup_TDWaterTempPID : REAL ; (* *)
|
|
gH_ProcessSetup_FFWaterTempPID : REAL ; (* *)
|
|
|
|
gH_ProcessSetup_BPSyrupLevelPID : REAL ; (* *)
|
|
gH_ProcessSetup_TISyrupLevelPID : REAL ; (* *)
|
|
gH_ProcessSetup_TDSyrupLevelPID : REAL ; (* *)
|
|
gH_ProcessSetup_FFSyrupLevelPID : REAL ; (* *)
|
|
|
|
gH_ProcessSetup_KpCO2PressPID : REAL ; (* *)
|
|
gH_ProcessSetup_DeadBandCO2PressPID : REAL ; (* *)
|
|
gH_ProcessSetup_InjCO2Press_Offset : REAL ; (* *)
|
|
gH_ProcessSetup_InjCO2Press_MinFlow : UINT ; (* *)
|
|
gH_ProcessSetup_InjCO2Press_MaxFlow : UINT ; (* *)
|
|
gH_ProcessSetup_CarboCO2Pressure : REAL ; (* CO2 Pressure Infeed Line *)
|
|
gH_ProcessSetup_N2MinPressure : REAL ; (* N2 Minimum Pressure Infeed Line *)
|
|
|
|
gH_ProcessSetup_BPFillingValvePID : REAL ; (* *)
|
|
gH_ProcessSetup_TIFillingValvePID : REAL ; (* *)
|
|
gH_ProcessSetup_TDFillingValvePID : REAL ; (* *)
|
|
gH_ProcessSetup_FFFillingValvePID : REAL ; (* Not USED *)
|
|
|
|
gH_ProcessSetup_DiffSensor_Height : REAL := 1035.0 ; (* Sensor Height from Soil [mm] *)
|
|
gH_ProcessSetup_DiffSensor_DeltaHeight : REAL := 0.0 ; (* Sensor Plates Height Difference [mm] *)
|
|
gH_ProcessSetup_DiffSensor_Offset : REAL := 27.0 ; (* Sensor Offset Read with zero pressure (all valves open) in [mm] *)
|
|
|
|
gH_ProcessSetup_FillingValveHeight : REAL := 1540.0 ; (* Filling Valve Height from soil [mm] *)
|
|
gH_ProcessSetup_FillerDiameter : REAL := 4960.0 ; (* Filler Carousel Diameter [mm] *)
|
|
gH_ProcessSetup_FillingValveNum : INT := 130 ; (* Filling Valves Number *)
|
|
gH_ProcessSetup_FillerProdPipeDN : REAL := 100.0 ;
|
|
gH_ProcessSetup_FillerProdPipeMass : REAL := 190 ;
|
|
gH_ProcessSetup_FillingTime : REAL ;
|
|
|
|
gH_ProcessSetup_ProdTankHeight_0 : REAL := 990.0 ; (* Level at 0% Tank Level Height in mm *)
|
|
gH_ProcessSetup_ProdTankLevelPerc_2 : REAL := 53.88 ; (* Second level percentage *)
|
|
gH_ProcessSetup_ProdTankHeight_2 : REAL := 1995.0 ; (* Second level Height in mm *)
|
|
|
|
gH_ProcessSetup_DeaireationFactor : REAL := 0.75 ; (* DeareationFlow/WaterFlow *)
|
|
gH_ProcessSetup_DeaireationKVValve : REAL := 0.3 ; (* DeareationFlow/(DeareationValveOpening*14.3*P1) *)
|
|
|
|
|
|
gH_FirstProdExtraBrix : REAL ; (*Start up *)
|
|
gH_FirstProdDietExtraSyr : REAL ; (*Start up *)
|
|
gH_FirstProdExtraCO2Fact : REAL ; (*Start up *)
|
|
|
|
gH_ProdTankDrainStep0Time : TIME ; (* Step 0 Product Tank Drain Time *)
|
|
gH_ProdTankDrainStep1Time : TIME ; (* Step 1 Product Tank Drain Time *)
|
|
gH_ProdPipeRunOutStep0Time : TIME ; (* Step 0 Product Pipe Run Out Time *)
|
|
|
|
gH_H2OOpenInProdPipeRunOut : REAL ;
|
|
gH_SyrupValveProdPipeRunOut : REAL ;
|
|
|
|
gH_ProdPipeRunOutProdAmount : REAL ; (* Water amount used to push product through product pipe + serpentine - in Liters *)
|
|
gH_ProdTankRunOutChillerAmount : REAL ; (* Water amount used to push product through product chiller - in Liters *)
|
|
|
|
gH_SwitchOff_DensityOk : BOOL;
|
|
END_VAR
|
|
(* @OBJECT_END := HMI_Blender_Parameters *)
|
|
(* @CONNECTIONS := HMI_Blender_Parameters
|
|
FILENAME : ''
|
|
FILETIME : 0
|
|
EXPORT : 0
|
|
NUMOFCONNECTIONS : 0
|
|
*)
|