2.6 KiB
2.6 KiB
FUNCTION "FillerControl_DataSend" : Void
{ S7_Optimized_Access := 'FALSE' }
AUTHOR : 'Author'
FAMILY : TASK2
NAME : 'Name'
VERSION : 1.0
BEGIN
//BlendFillSystem
"Interlocking_Variables".MIXER_FILLER_SEND.ProdAvailableLit := REAL_TO_INT ("System_RunOut_Variables".TotalProductAvailable) ;
"Interlocking_Variables".MIXER_FILLER_SEND.Pressure_SP := REAL_TO_INT ("HMI_Blender_Parameters".Actual_Recipe_Parameters._FillingValveHead_SP) ;
"Interlocking_Variables".MIXER_FILLER_SEND.Pressure_PV := REAL_TO_INT ("HMI_PID".PPM303.Pv) ;
"Interlocking_Variables".MIXER_FILLER_SEND.Tank_Level := REAL_TO_INT ("HMI_Instrument".LTM302.PVFiltered * 10 ) ;
"Interlocking_Variables".MIXER_FILLER_SEND.Pump_Freq := REAL_TO_INT ("HMI_PID".PPM303.Out * 10 ) ;
"Interlocking_Variables".MIXER_FILLER_SEND.Recipe_Number := BYTE_TO_INT ("System_RunOut_Variables".FillerNextRecipeNum) ;
"Interlocking_Variables".MIXER_FILLER_SEND.Tank_Pressure_PV := REAL_TO_INT("HMI_PID".RVM301.Pv * 10);
"Interlocking_Variables".MIXER_FILLER_SEND.Tank_Pressure_SP := REAL_TO_INT ("HMI_PID".RVM301.Sp * 10 ) ;
"Interlocking_Variables".MIXER_FILLER_SEND.CO2_Prod_Pressure := "P_AI_PTF203":P ;
"Interlocking_Variables".MIXER_FILLER_SEND.Tank_Min_Lvl := "gOUT_FillerMinimumLevel";
"Interlocking_Variables".MIXER_FILLER_SEND.Stop_Filler_Critical_Level := NOT "gBlenderMinLevel";
"Interlocking_Variables".MIXER_FILLER_SEND.Alive_Bit := "AUX TRUE";
"Interlocking_Variables".MIXER_FILLER_SEND.GEN_AVM362_Status := "HMI_Device".AVM362.Out ;
"Interlocking_Variables".MIXER_FILLER_SEND.GEN_AVM346_Status := "HMI_Device".AVM346.Out ;
"Interlocking_Variables".MIXER_FILLER_SEND.GEN_AVM315_Status := "HMI_Device".AVM315.Out ;
"Interlocking_Variables".MIXER_FILLER_SEND.GEN_AVM313_Status := "HMI_Device".AVM313.Out;
"Interlocking_Variables".MIXER_FILLER_SEND.GEN_PPM303_Status := "HMI_Device".PPM303.Out ;
"Interlocking_Variables".MIXER_FILLER_SEND.GEN_PPM306_Status := "HMI_Device".PPM306.Out ;
"Interlocking_Variables".MIXER_FILLER_SEND.PROD_Press_Running := "HMI_Variables_Status".Procedures.BlendFillSysPressRun ;
"Interlocking_Variables".MIXER_FILLER_SEND.PROD_Prod_Load := "HMI_Variables_Status".Procedures.BlendFillSysProdLoadRun ;
"Interlocking_Variables".MIXER_FILLER_SEND.PROD_Prod_Send := "HMI_Variables_Status".Procedures.BlendFillSysProdSendRun ;
"Interlocking_Variables".MIXER_FILLER_SEND.PROD_Product_Completed := "System_RunOut_Variables".Out_Flr_ProductCompleted ;
//Simonazzi Filler with tank
END_FUNCTION