Obsidean_VM/04-SIDEL/06 - E5.007363 - Modifica O.../Source/source/BlenderCtrl_InitErrors.md

742 B

FUNCTION "BlenderCtrl_InitErrors" : Void
{ S7_Optimized_Access := 'FALSE' }
AUTHOR : 'Author'
FAMILY : TASK2
NAME : 'Name'
VERSION : 1.0

BEGIN
	
	
	IF NOT "Blender_Variables_Pers".gWaterRecipe THEN
	    "Blender_Variables".gBlendError := "HMI_Blender_Parameters".ProcessSetup._StartUpBrixExtraWater ;
	ELSE
	    "Blender_Variables".gBlendError := 0 ;
	END_IF;
	
	
	IF "Blender_Variables_Pers".gCarboStillRecipe THEN
	    "Blender_Variables".gCarboCO2Error := "HMI_Blender_Parameters".ProcessSetup._StartUpCO2ExtraWater * "HMI_Blender_Parameters".Actual_Recipe_Parameters._CO2Vols * "HMI_Blender_Parameters".Actual_Recipe_Parameters._CO2Fact ;
	ELSE
	    "Blender_Variables".gCarboCO2Error := 0 ;
	END_IF;
	
	
END_FUNCTION