36 KiB
36 KiB
// Block Type: FC
// Block Name (Original): Pneumatic Valve Ctrl
// Block Number: 2020
// Original Network Languages: LAD
FUNCTION "Pneumatic_Valve_Ctrl" : Void
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
VAR_TEMP
mAVM346_Status : Bool;
mFlipFlop : Bool;
mAVM362_Status : Bool;
mAVM363_Status : Bool;
mFlipFlop1 : Bool;
mFlipFlop2 : Bool;
mPressOnlyCO2 : Bool;
mPressOnlyCO2_SterilAir : Bool;
mPressOnlyCO2_N2 : Bool;
mfliptest : Bool;
EN_1 : Bool;
mfliptestEN : Bool;
_50__BlenderNomSpeed : Real;
END_VAR
#_3S : Bool; // Auto-generated temporary
#_800ms : Bool; // Auto-generated temporary
BEGIN
// Network 1: Flip Enable (Original Language: LAD)
"Flip Enable" := "gBlenderCIPMode" AND "DI_CIP_CIP_Rinse" AND "gIN_CIP_DrainRequest";
// Network 2: Test (Original Language: LAD)
IF "Flip Enable" AND "CLK_1.0S" THEN
"MD600" := 1 + "MD600";
END_IF;
"mfliptestEN" := "MD600" >= 300;
IF "mfliptestEN" THEN
"MD600" := 0;
END_IF;
"Tag_51"(IN := "mfliptestEN", PT := S5T#800ms); // TODO: Declarar "Tag_51" : TP;
"mfliptest" := "Tag_51".Q;
// Network 3: FlipFlop (Original Language: LAD)
// Network 3 did not produce printable SCL code.
// Network 4: FlipFlop (Original Language: LAD)
// Network 4 did not produce printable SCL code.
// Network 5: FlipFlop (Original Language: LAD)
// Network 5 did not produce printable SCL code.
// Network 6: RVN301 (Original Language: LAD)
// In CASE OF Deaireator Minimum Level Fault, pressing the reset button the
// blender reopen EV01 & EV12 TO reload the tank.
// Network 6 did not produce printable SCL code.
// Network 7: RVN301_1 (Original Language: LAD)
// Network 7 did not produce printable SCL code.
// Network 8: RVN302 (Original Language: LAD)
"HMI_Device"."RVN302"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."RVN302"."ManOn") OR ("gIN_VoltageOk" AND "gP_RVN302" AND "HMI_Device"."RVN302"."Auto");
// Network 9: RVN302_1 (Original Language: LAD)
IF "HMI_Device"."RVN301"."Out" THEN
"50%_BlenderNomSpeed" := "Blender_Variables"."gBlenderNomSpeed" / 2.0;
END_IF;
"HMI_Device"."RVN302_1"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."RVN302_1"."ManOn") OR ("gIN_VoltageOk" AND "HMI_Device"."RVN302_1"."Auto" AND ("Blender_Variables"."gActual_Prod_SP" > "50%_BlenderNomSpeed"));
// Network 10: RVP303 (Original Language: LAD)
// Network 10 did not produce printable SCL code.
// Network 11: EV04 (Original Language: LAD)
"HMI_Device"."EV04"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."EV04"."ManOn") OR ("gIN_VoltageOk" AND "gP_EV04" AND "HMI_Device"."EV04"."Auto");
// Network 12: AVM311 (Original Language: LAD)
"HMI_Device"."AVM311"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVM311"."ManOn") OR ("gIN_VoltageOk" AND "PID_Variables"."PID_RVM301_Release" AND "HMI_Device"."AVM311"."Auto" AND "gBlenderRinseMode") OR ("gIN_VoltageOk" AND "PID_Variables"."PID_RVM301_Release" AND "HMI_Device"."AVM311"."Auto" AND "gBlenderProdMode");
// Network 13: AVM312 (Original Language: LAD)
"HMI_Device"."AVM312"."Out" := "gIN_VoltageOk" AND (("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "gP_AVM312") OR ("HMI_Device"."RVN301"."Out" AND "HMI_Device"."AVM312"."Auto" AND (("Procedure_Variables"."First_Production"."Latch" AND "gBlenderRinseMode" AND "gBlenderProdMode" AND (("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_ByPassDeair" AND (("Blender_Variables_Pers"."gCarboStillRecipe" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem") OR ("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_InjectionPress_Ctrl" > 0))) OR ("HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_EnDeaireation" AND (("Blender_Variables_Pers"."gCarboStillRecipe" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem") OR ("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_InjectionPress_Ctrl" > 0))))) OR ("Procedure_Variables"."First_Production"."Latch" AND "gFinalPressureOk" AND "gBlenderRinseMode" AND "gBlenderProdMode" AND (("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_ByPassDeair" AND (("Blender_Variables_Pers"."gCarboStillRecipe" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem") OR ("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_InjectionPress_Ctrl" > 0))) OR ("HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_EnDeaireation" AND (("Blender_Variables_Pers"."gCarboStillRecipe" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem") OR ("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_InjectionPress_Ctrl" > 0))))))));
// Network 14: AVM313 (Original Language: LAD)
"HMI_Device"."AVM313"."Out" := "gIN_VoltageOk" AND ("HMI_Device"."AVM313"."ManOn" OR ("HMI_Device"."AVM313"."Auto" AND (("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "System_RunOut_Variables"."ProdPipe_RunOut"."Latch" AND "Procedure_Variables"."First_Production"."Running" AND "gBlenderStartPumps" AND "gBlenderProdMode") OR ("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "System_RunOut_Variables"."ProdPipe_RunOut"."Latch" AND "Procedure_Variables"."First_Production"."Running" AND "gBlendRecircActive" AND "gBlenderProdMode"))));
// Network 15: AVM315 (Original Language: LAD)
"HMI_Device"."AVM315"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVM315"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVM315" AND "HMI_Device"."AVM315"."Auto") OR ("gIN_VoltageOk" AND "mfliptest" AND "HMI_Device"."AVM315"."Auto");
// Network 16: AVM317 (Original Language: LAD)
"HMI_Device"."AVM317"."Out" := "gIN_VoltageOk" AND (("HMI_Device"."AVM317_1"."Auto" AND "HMI_Device"."AVM317_1"."ManOn" AND "HMI_Device"."AVM317"."ManOn") OR ("HMI_Device"."AVM317"."Auto" AND ("gP_AVM317" OR ("Procedure_Variables"."Blender_Run"."Running" AND ("gBlenderCIPMode" OR "gBlenderRinseMode")))));
// Network 17: AVM317_1 (Original Language: LAD)
"HMI_Device"."AVM317_1"."Out" := "gIN_VoltageOk" AND (("HMI_Device"."AVM317_1"."ManOn" AND "HMI_Device"."AVM317"."Auto" AND "HMI_Device"."AVM317"."ManOn") OR ("HMI_Device"."AVM317_1"."Auto" AND ("gP_AVM317" OR ("Procedure_Variables"."Blender_Run"."Running" AND ("gBlenderCIPMode" OR "gBlenderRinseMode")))));
// Network 18: AVM317_2 (Original Language: LAD)
"HMI_Device"."AVM317_2"."Out" := "gIN_VoltageOk" AND (("HMI_Device"."AVM317_2"."ManOn" AND "HMI_Device"."AVM317"."Auto" AND "HMI_Device"."AVM317"."ManOn") OR ("HMI_Device"."AVM317_2"."Auto" AND ("gP_AVM317" OR ("Procedure_Variables"."Blender_Run"."Running" AND ("gBlenderCIPMode" OR "gBlenderRinseMode")))));
// Network 19: AVM318 (Original Language: LAD)
"mDelayOpenAVM317"(IN := "gCIPRinseOpenValves" AND "gOUT_PPN301_Run" AND (("Procedure_Variables"."TN301_StartUp"."Done" AND "gBlenderRinseMode") OR ("gBlenderCIPMode" AND ("CIP_Program_Variables"."Status"."CausticRecoveryRun" OR ("CIP_Program_Variables"."Status"."CausticRecoveryRun" AND "CIP_Program_Variables"."Status"."BlenderEmpty")))), PT := S5T#3S); // TODO: Declarar "mDelayOpenAVM317" : TON;
"HMI_Device"."AVM318"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVM318"."ManOn") OR ("gIN_VoltageOk" AND "mDelayOpenAVM317".Q AND "HMI_Device"."AVM318"."Auto") OR ("gIN_VoltageOk" AND "gP_AVM317" AND "HMI_Device"."AVM318"."Auto");
// Network 20: AVM321 (Original Language: LAD)
// Product Tank OverFill valve
"HMI_Device"."AVM321"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVM321"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVM321" AND "HMI_Device"."AVM321"."Auto") OR ("gBlenderCIPMode" AND "CIP_Program_Variables"."Status"."CausticRecoveryRun" AND "gIN_VoltageOk" AND "gCIP_PrdTank_PressLow" AND "HMI_Device"."AVM321"."Auto");
// Network 21: AVM322 (Original Language: LAD)
// Water Pump Priming Valve
"HMI_Device"."AVM322"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVM322"."ManOn") OR ("gIN_VoltageOk" AND "mfliptest" AND "HMI_Device"."AVM322"."Auto") OR ("gIN_VoltageOk" AND "gP_AVM322" AND "HMI_Device"."AVM322"."Auto");
// Network 22: AVM323 (Original Language: LAD)
// Water Pipe (Serpentine) Drain Valve
"HMI_Device"."AVM323"."Out" := ("gIN_VoltageOk" AND "mfliptest" AND "HMI_Device"."AVM323"."Auto") OR ("gIN_VoltageOk" AND "gP_AVM323" AND "HMI_Device"."AVM323"."Auto") OR ("gIN_VoltageOk" AND "HMI_Device"."AVM323_1"."Auto" AND "HMI_Device"."AVM323_1"."ManOn" AND "HMI_Device"."AVM323"."ManOn");
// Network 23: AVM323_1 (Original Language: LAD)
// Water Pipe (Serpentine) Drain Valve
"HMI_Device"."AVM323_1"."Out" := ("gIN_VoltageOk" AND "mfliptest" AND "HMI_Device"."AVM323_1"."Auto") OR ("gIN_VoltageOk" AND "gP_AVM323" AND "HMI_Device"."AVM323_1"."Auto") OR ("gIN_VoltageOk" AND "HMI_Device"."AVM323_1"."ManOn" AND "HMI_Device"."AVM323"."Auto" AND "HMI_Device"."AVM323"."ManOn");
// Network 24: AVM323_2 (Original Language: LAD)
// Water Pipe (Serpentine) Drain Valve
"HMI_Device"."AVM323_2"."Out" := ("gIN_VoltageOk" AND "mfliptest" AND "HMI_Device"."AVM323_2"."Auto") OR ("gIN_VoltageOk" AND "gP_AVM323" AND "HMI_Device"."AVM323_2"."Auto") OR ("gIN_VoltageOk" AND "HMI_Device"."AVM323_2"."ManOn" AND "HMI_Device"."AVM323"."Auto" AND "HMI_Device"."AVM323"."ManOn");
// Network 25: AVM326 (Original Language: LAD)
"HMI_Device"."AVM326"."Out" := "gIN_VoltageOk" AND (("HMI_Service"."Workshop_Test"."CO2TestRequest" AND "gWorkshopTest" AND "Procedure_Variables"."Blender_Run"."Running") OR ("HMI_Device"."AVM326"."Auto" AND ("gP_AVM326" OR ("gBlenderCIPMode" AND "gOUT_PPN301_Run" AND "gP_CIP_CO2_Inj"))));
// Network 26: AVM327 (Original Language: LAD)
"HMI_Device"."AVM327"."Out" := "gIN_VoltageOk" AND ("HMI_Device"."AVM327"."ManOn" OR ("HMI_Device"."AVM327"."Auto" AND ("gP_AVM327" OR ("Blender_Variables_Pers"."gCarboStillRecipe" AND "Blender_Variables_Pers"."gWaterRecipe" AND (("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_StillWaterByPass" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "gBlenderRinseMode") OR ("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_StillWaterByPass" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "gBlenderProdMode"))))));
// Network 27: AVM328 (Original Language: LAD)
"HMI_Device"."AVM328"."Out" := ("HMI_Device"."AVM328"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVM328" AND "HMI_Device"."AVM328"."Auto" AND "gIN_VoltageOk") OR ("gBlenderCIPMode" AND "mFlipFlop1" AND "mFlipFlop2" AND "HMI_Device"."AVM328"."Auto" AND "gIN_VoltageOk") OR ("mFlipFlop1" AND "mFlipFlop2" AND "HMI_Device"."AVM328"."Auto" AND "gIN_VoltageOk" AND "gBlenderRinseMode");
// Network 28: AVM329 (Original Language: LAD)
"HMI_Device"."AVM329"."Out" := ("HMI_Device"."AVM329"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVM329" AND "HMI_Device"."AVM329"."Auto" AND "gIN_VoltageOk") OR ("gBlenderCIPMode" AND "mFlipFlop1" AND "mFlipFlop2" AND "HMI_Device"."AVM329"."Auto" AND "gIN_VoltageOk") OR ("mFlipFlop1" AND "mFlipFlop2" AND "HMI_Device"."AVM329"."Auto" AND "gIN_VoltageOk" AND "gBlenderRinseMode");
// Network 29: AVM330 (Original Language: LAD)
"HMI_Device"."AVM330"."Out" := ("HMI_Device"."AVM330"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVM330" AND "HMI_Device"."AVM330"."Auto" AND "gIN_VoltageOk") OR ("gRinseDrainRunning" AND "HMI_Device"."AVM330"."Auto" AND "gIN_VoltageOk");
// Network 30: AVM331 (Original Language: LAD)
"HMI_Device"."AVM331"."Out" := ("HMI_Device"."AVM331"."ManOn" AND "gIN_VoltageOk") OR ("gBlenderCIPMode" AND "HMI_Device"."AVM331"."Config" AND "HMI_Device"."AVM327_NoCMD"."Out" AND "HMI_Device"."AVM331"."Auto" AND "Blender_Variables_Pers"."gCarboStillRecipe" AND "gIN_VoltageOk" AND "Blender_Variables_Pers"."gWaterRecipe");
// Network 31: AVM339 (Original Language: LAD)
"HMI_Device"."AVM339"."Out" := ("HMI_Device"."AVM339"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVM339" AND "HMI_Device"."AVM339"."Auto" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM339"."Auto" AND "Blender_Variables_Pers"."gCarboStillRecipe" AND "gIN_VoltageOk" AND "Blender_Variables_Pers"."gWaterRecipe");
// Network 32: AVM340 (Original Language: LAD)
"HMI_Device"."AVM340"."Out" := ("HMI_Device"."AVM340"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVM340" AND "HMI_Device"."AVM340"."Auto" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM340"."Auto" AND "Blender_Variables_Pers"."gCarboStillRecipe" AND "gIN_VoltageOk" AND "Blender_Variables_Pers"."gWaterRecipe" AND "gBlenderStartPumps" AND "gBlenderProdMode");
// Network 33: AVM341 (Original Language: LAD)
"HMI_Device"."AVM341"."Out" := "gIN_VoltageOk" AND ("gP_CIP_CO2_Inj" OR ("HMI_Device"."AVM341"."Auto" AND "Blender_Variables_Pers"."gCarboStillRecipe" AND (("gBlenderCIPMode" AND "HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_GAS2_Injection" AND "gBlenderRinseMode" AND ("gCloseMainCO2Valve" OR "Procedure_Variables"."TN301_StartUp"."Done")) OR ("gBlenderCIPMode" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_CO2_GAS2_Injection" AND "gBlenderRinseMode" AND ("gCloseMainCO2Valve" OR "Procedure_Variables"."TN301_StartUp"."Done")))));
// Network 34: AVM342 (Original Language: LAD)
"HMI_Device"."AVM342"."Out" := ("HMI_Device"."AVM342"."ManOn" AND "gIN_VoltageOk") OR ("gBlenderCIPMode" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_CO2_GAS2_Injection" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_Balaiage" AND "HMI_Device"."AVM342"."Auto" AND "Blender_Variables_Pers"."gCarboStillRecipe" AND "gIN_VoltageOk");
// Network 35: AVM345 (Original Language: LAD)
"HMI_Device"."AVM345"."Out" := ("gP_AVM345" AND "HMI_Device"."AVM345"."Auto" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM345_1"."Auto" AND "HMI_Device"."AVM345_1"."ManOn" AND "HMI_Device"."AVM345"."Auto" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM345_1"."Auto" AND "HMI_Device"."AVM345_1"."ManOn" AND "HMI_Device"."AVM345"."ManOn" AND "gIN_VoltageOk");
// Network 36: AVM345_1 (Original Language: LAD)
"HMI_Device"."AVM345_1"."Out" := ("gP_AVM345" AND "HMI_Device"."AVM345_1"."Auto" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM345_1"."Auto" AND "HMI_Device"."AVM345"."Auto" AND "HMI_Device"."AVM345"."ManOn" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM345_1"."ManOn" AND "HMI_Device"."AVM345"."Auto" AND "HMI_Device"."AVM345"."ManOn" AND "gIN_VoltageOk");
// Network 37: AVM346 Aux (Original Language: LAD)
"mAVM346_Status" := ("HMI_Device"."AVM346"."ManOn" AND "gIN_VoltageOk") OR ("gIN_Filler_AVM346_En" AND "Procedure_Variables"."BlendFill_StartUp"."Latch" AND "HMI_PID"."PPM303"."ManualControl"."PidEnable" AND "Procedure_Variables"."First_Production"."Done" AND "HMI_Device"."AVM346"."Auto" AND "gIN_VoltageOk") OR ("gIN_Filler_AVM346_En" AND "Procedure_Variables"."BlendFill_StartUp"."Latch" AND "HMI_PID"."PPM303"."ManualControl"."PidEnable" AND "Procedure_Variables"."BlendFill_StartUp"."Done" AND "HMI_Device"."AVM346"."Auto" AND "gIN_VoltageOk");
// Network 38: AVM346 (Original Language: LAD)
// EV46
"HMI_Device"."AVM346"."Out" := "mAVM346_Status" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem";
// Network 39: AVM353 (Original Language: LAD)
"HMI_Device"."AVM353"."Out" := ("HMI_Device"."AVM353"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVM353" AND "HMI_Device"."AVM353"."Auto" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM353"."Auto" AND "gIN_VoltageOk" AND "mfliptest");
// Network 40: AVM362 (Original Language: LAD)
"mAVM362_Status" := "gIN_VoltageOk" AND ("HMI_Device"."AVM362"."ManOn" OR ("HMI_Device"."AVM362"."Auto" AND (("HMI_Device"."AVM327_NoCMD"."Out" AND "gProdAvailable" AND "gOUT_FillerMinimumLevel" AND "gIN_Filler1ProductReq" AND "System_RunOut_Variables"."FastChangeOverActivated" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem") OR ("Procedure_Variables"."TM301_Drain"."Latch" AND "Procedure_Variables"."TM301_Drain"."Done" AND "gPrdTank_Empty" AND (("gIN_FillerCIPRequest" AND (("HMI_Device"."AVM327_NoCMD"."Out" AND "System_RunOut_Variables"."FastChangeOverActivated" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "gBlenderRinseMode") OR ("gBlenderCIPMode" AND "HMI_Device"."AVM327_NoCMD"."Out" AND "System_RunOut_Variables"."FastChangeOverActivated" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "gCIP_PrdTank_PressLow"))) OR ("DI_Flr1_WaterRequest" AND (("HMI_Device"."AVM327_NoCMD"."Out" AND "System_RunOut_Variables"."FastChangeOverActivated" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "gBlenderRinseMode") OR ("gBlenderCIPMode" AND "HMI_Device"."AVM327_NoCMD"."Out" AND "System_RunOut_Variables"."FastChangeOverActivated" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "gCIP_PrdTank_PressLow"))))))));
// Network 41: AVM362 (Original Language: LAD)
"HMI_Device"."AVM362"."Out" := "mAVM362_Status" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem";
// Network 42: AVM363 (Original Language: LAD)
"mAVM363_Status" := "gIN_VoltageOk" AND ("HMI_Device"."AVM363"."ManOn" OR ("HMI_Device"."AVM363"."Auto" AND (("HMI_Device"."AVM327_NoCMD"."Out" AND "gProdAvailable" AND "gOUT_FillerMinimumLevel" AND "gIN_Filler2ProductReq" AND "System_RunOut_Variables"."FastChangeOverActivated" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem") OR ("Procedure_Variables"."TM301_Drain"."Latch" AND "Procedure_Variables"."TM301_Drain"."Done" AND "gPrdTank_Empty" AND (("HMI_Device"."AVM327_NoCMD"."Out" AND "System_RunOut_Variables"."FastChangeOverActivated" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "gBlenderRinseMode") OR ("gBlenderCIPMode" AND "HMI_Device"."AVM327_NoCMD"."Out" AND "gIN_FillerCIPRequest" AND "System_RunOut_Variables"."FastChangeOverActivated" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem" AND "gCIP_PrdTank_PressLow"))))));
// Network 43: AVM363 (Original Language: LAD)
"HMI_Device"."AVM363"."Out" := "mAVM363_Status" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_BlendFillSystem";
// Network 44: AVM366 (Original Language: LAD)
"HMI_Device"."AVM366"."Out" := ("HMI_Device"."AVM366"."ManOn" AND "gIN_VoltageOk") OR ("System_RunOut_Variables"."Out_OpAVM366FlrTankOut" AND "HMI_Device"."AVM366"."Auto" AND "gIN_VoltageOk") OR ("gP_AVM366" AND "HMI_Device"."AVM366"."Auto" AND "gIN_VoltageOk");
// Network 45: AVM367 (Original Language: LAD)
"HMI_Device"."AVM367"."Out" := ("HMI_Device"."AVM367"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVM367" AND "HMI_Device"."AVM367"."Auto" AND "gIN_VoltageOk");
// Network 46: AVM368 (Original Language: LAD)
"HMI_Device"."AVM368"."Out" := ("HMI_Device"."AVM368"."ManOn" AND "gIN_VoltageOk") OR ("System_RunOut_Variables"."Out_OpAVM368InletWater" AND "HMI_Device"."AVM368"."Auto" AND "gIN_VoltageOk") OR ("gP_AVM368" AND "HMI_Device"."AVM368"."Auto" AND "gIN_VoltageOk");
// Network 47: AVM369 (Original Language: LAD)
"HMI_Device"."AVM369"."Out" := ("HMI_Device"."AVM369"."ManOn" AND "gIN_VoltageOk") OR ("System_RunOut_Variables"."Out_OpAVM369ProdPipeDrai" AND "HMI_Device"."AVM369"."Auto" AND "gIN_VoltageOk") OR ("gP_AVM369" AND "HMI_Device"."AVM369"."Auto" AND "gIN_VoltageOk");
// Network 48: AVM371 (Original Language: LAD)
"HMI_Device"."AVM371"."Out" := ("HMI_Device"."AVM371"."ManOn" AND "gIN_VoltageOk") OR ("System_RunOut_Variables"."Out_OpAVM371FillerProduc" AND "HMI_Device"."AVM371"."Auto" AND "gIN_VoltageOk") OR ("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_FillerRinseTank" AND "System_RunOut_Variables"."Out_OpAVM371RinseTankSpr" AND "HMI_Device"."AVM371"."Auto" AND "gIN_VoltageOk");
// Network 49: AVM372 (Original Language: LAD)
"HMI_Device"."AVM372"."Out" := ("HMI_Device"."AVM372"."ManOn" AND "gIN_VoltageOk") OR ("System_RunOut_Variables"."Out_OpAVM372RinseTankDra" AND "HMI_Device"."AVM372"."Auto" AND "gIN_VoltageOk") OR ("gP_AVM372" AND "HMI_Device"."AVM372"."Auto" AND "gIN_VoltageOk");
// Network 50: AVM380 (Original Language: LAD)
"HMI_Device"."AVM380"."Out" := ("HMI_Device"."AVM380"."ManOn" AND "gIN_VoltageOk") OR ("gBlenderCIPMode" AND "HMI_Device"."AVM380"."Auto" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM380"."Auto" AND "gIN_VoltageOk" AND "gEnRecircPHE");
// Network 51: AVM381 (Original Language: LAD)
"HMI_Device"."AVM381"."Out" := ("HMI_Device"."AVM381"."ManOn" AND "gIN_VoltageOk") OR ("Procedure_Variables"."TM301_RunOut"."Latch" AND "HMI_Device"."AVM381"."Auto" AND "gIN_VoltageOk" AND "gBlenderRinseMode") OR ("gBlenderCIPMode" AND "CIP_Program_Variables"."Status"."CausticRecoveryRun" AND "Procedure_Variables"."TM301_RunOut"."Latch" AND "HMI_Device"."AVM381"."Auto" AND "gIN_VoltageOk");
// Network 52: AVM385 (Original Language: LAD)
"HMI_Device"."AVM385"."Out" := ("HMI_Device"."AVM385"."ManOn" AND "gIN_VoltageOk") OR ("gRinseDrainRunning" AND "HMI_Device"."AVM385"."Auto" AND "gIN_VoltageOk") OR ("gP_AVM385" AND "HMI_Device"."AVM385"."Auto" AND "gIN_VoltageOk");
// Network 53: AVM386 (Original Language: LAD)
"HMI_Device"."AVM386"."Out" := ("HMI_Device"."AVM386"."ManOn" AND "gIN_VoltageOk") OR ("gRinseDrainRunning" AND "HMI_Device"."AVM386"."Auto" AND "gIN_VoltageOk") OR ("gP_AVM386" AND "HMI_Device"."AVM386"."Auto" AND "gIN_VoltageOk");
// Network 54: AVM388 (Original Language: LAD)
"HMI_Device"."AVM388"."Out" := ("HMI_Device"."AVM388"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVM388" AND "HMI_Device"."AVM388"."Auto" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM388"."Auto" AND "gIN_VoltageOk" AND "mfliptest");
// Network 55: AVM389 (Original Language: LAD)
"HMI_Device"."AVM389"."Out" := "gIN_VoltageOk" AND ("HMI_Device"."AVM389"."ManOn" OR ("HMI_Device"."AVM389"."Auto" AND ("gP_AVM389" OR ("HMI_Device"."PPN301"."Out" AND (("gBlenderCIPMode" AND "CIP_Program_Variables"."Status"."BlenderDrainRunning") OR ("Procedure_Variables"."TM301_Drain"."Latch" AND "Procedure_Variables"."TN301_StartUp"."Done" AND "gBlenderRinseMode"))))));
// Network 56: AVM391 (Original Language: LAD)
"mDelayOpenAVM391"(IN := "gBlenderCIPMode" AND "gCIPRinseOpenValves" AND "gOUT_PPN301_Run" AND ("CIP_Program_Variables"."Status"."CausticRecoveryRun" OR ("CIP_Program_Variables"."Status"."CausticRecoveryRun" AND "CIP_Program_Variables"."Status"."BlenderEmpty")), PT := S5T#3S); // TODO: Declarar "mDelayOpenAVM391" : TON;
"HMI_Device"."AVM391"."Out" := ("HMI_Device"."AVM391"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVM391" AND "HMI_Device"."AVM391"."Auto" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM391"."Auto" AND "gIN_VoltageOk" AND "mDelayOpenAVM391".Q);
// Network 57: AVM396 (Original Language: LAD)
"HMI_Device"."AVM396"."Out" := ("HMI_Device"."AVM396"."ManOn" AND "gIN_VoltageOk") OR ("HMI_Device"."AVM396"."Auto" AND "gIN_VoltageOk" AND Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 2)) OR ("gBlenderCIPMode" AND "gEqPressSelected" AND "Blender_Variables_Pers"."gCarboStillRecipe" AND "mProdTankPressCO2_StAir" AND "HMI_Device"."AVM396"."Auto" AND "gIN_VoltageOk");
// Network 58: AVM397 (Original Language: LAD)
"HMI_Device"."AVM397"."Out" := ("HMI_Device"."AVM397"."ManOn" AND "gIN_VoltageOk") OR ("gBlenderCIPMode" AND "Blender_Variables_Pers"."gCarboStillRecipe" AND "mProdTankPressOnlyCO2" AND "HMI_Device"."AVM397"."Auto" AND "gIN_VoltageOk") OR ("gBlenderCIPMode" AND "gEqPressSelected" AND "Blender_Variables_Pers"."gCarboStillRecipe" AND "mProdTankPressCO2_StAir" AND "HMI_Device"."AVM397"."Auto" AND "gIN_VoltageOk");
// Network 59: AVN314 (Original Language: LAD)
"HMI_Device"."AVN314"."Out" := ("HMI_Device"."AVN314"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVN314" AND "HMI_Device"."AVN314"."Auto" AND "gIN_VoltageOk") OR ("HMI_Device"."AVN314"."Auto" AND "gIN_VoltageOk" AND "mfliptest");
// Network 60: AVN318 (Original Language: LAD)
"HMI_Device"."AVN318"."Out" := ("HMI_Device"."AVN318"."ManOn" AND "gIN_VoltageOk") OR ("gP_AVN318" AND "HMI_Device"."AVN318"."Auto" AND "gIN_VoltageOk") OR ("gBlenderCIPMode" AND "HMI_Variables_Status"."Procedures"."CIP_SyrTankFloodRun" AND "HMI_Device"."AVN318"."Auto" AND "gIN_VoltageOk");
// Network 61: AVN325 (Original Language: LAD)
"HMI_Device"."AVN325"."Out" := Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_VacuumPump", 1);
// Network 62: AVN327 (Original Language: LAD)
"HMI_Device"."AVN327"."Out" := "gIN_VoltageOk" AND ("HMI_Device"."AVN327"."ManOn" OR ("HMI_Device"."AVN327"."Auto" AND ("gP_AVN327" OR ("gBlenderCIPMode" AND "HMI_Variables_Status"."Procedures"."CIP_SyrTankFloodRun" AND "gCIP_DeairTank_MaxLevel" AND "gCIPRinseOpenValves" AND "gOUT_PPN301_Run"))));
// Network 63: AVN328 (Original Language: LAD)
"HMI_Device"."AVN328"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVN328"."ManOn") OR ("gIN_VoltageOk" AND "HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_Deareation_Co2" AND "HMI_Device"."AVN328"."Auto" AND "HMI_Device"."RVN301"."Out" AND Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 0)) OR ("gIN_VoltageOk" AND "HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_Deareation_Co2" AND "HMI_Device"."AVN328"."Auto" AND "HMI_Device"."RVN301"."Out" AND Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 1));
// Network 64: AVN347 (Original Language: LAD)
"HMI_Device"."AVN347"."Out" := "gIN_VoltageOk" AND ("HMI_Device"."AVN347"."ManOn" OR ("HMI_Device"."AVN347"."Auto" AND (("gP_AVN328" AND "HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_Deareation_Co2" AND "HMI_Device"."RVN301"."Out" AND (Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 0) OR Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 1))) OR ("HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_Deareation_Co2" AND "HMI_PID"."RMM301"."ManualControl"."PidEnable" AND "HMI_Device"."RVN301"."Out" AND "gBlenderStartPumps" AND (Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 0) OR Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 1))))));
// Network 65: AVN350 (Original Language: LAD)
"HMI_Device"."AVN350"."Out" := "gIN_VoltageOk" AND ("HMI_Device"."AVN350"."ManOn" OR ("HMI_Device"."AVN350"."Auto" AND (("gP_AVN328" AND "HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_Deareation_Co2" AND "HMI_Device"."RVN301"."Out" AND (Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 0) OR Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 1))) OR ("HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_Deareation_Co2" AND "HMI_PID"."RMM301"."ManualControl"."PidEnable" AND "HMI_Device"."RVN301"."Out" AND "gBlenderStartPumps" AND (Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 0) OR Eq("HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_GAS2InjectionType", 1))))));
// Network 66: AVN329 (Original Language: LAD)
"HMI_Device"."AVN329"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVN329"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVN329" AND "HMI_Device"."AVN329"."Auto") OR ("gBlenderCIPMode" AND "HMI_Variables_Status"."Procedures"."CIP_SyrTankFloodRun" AND "gIN_VoltageOk" AND "HMI_Device"."AVN329"."Auto" AND "gCIPRinseOpenValves" AND "gOUT_PPN301_Run");
// Network 67: AVN348 (Original Language: LAD)
"HMI_Device"."AVN348"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVN348"."ManOn") OR ("HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_EnDeaireation" AND "gIN_VoltageOk" AND "HMI_Device"."AVN348"."Auto" AND "gBlenderProdMode") OR ("gBlenderCIPMode" AND "Procedure_Variables"."Blender_Run"."Latch" AND "gIN_VoltageOk" AND "mFlipFlop" AND "HMI_Device"."AVN348"."Auto");
// Network 68: AVN349 (Original Language: LAD)
"HMI_Device"."AVN349"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVN349"."ManOn") OR ("HMI_Blender_Parameters"."Actual_Recipe_Parameters"."_EnDeaireation" AND "gIN_VoltageOk" AND "HMI_Device"."AVN349"."Auto" AND "gBlenderProdMode") OR ("gBlenderCIPMode" AND "Procedure_Variables"."Blender_Run"."Latch" AND "gIN_VoltageOk" AND "mFlipFlop" AND "HMI_Device"."AVN349"."Auto");
// Network 69: AVN373 (Original Language: LAD)
"HMI_Device"."AVN373"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVN373"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVN373" AND "HMI_Device"."AVN373"."Auto");
// Network 70: AVN374 (Original Language: LAD)
// Deaireators Pipe Connection Drain Valve
"HMI_Device"."AVN374"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVN374"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVN374" AND "HMI_Device"."AVN374"."Auto");
// Network 71: AVN377 (Original Language: LAD)
// Control temperature system cooling
"HMI_Device"."AVN377"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVN377"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVN377" AND "HMI_Device"."AVN377"."Auto") OR ("gIN_VoltageOk" AND "gCoolingSysBypassAct" AND "HMI_Device"."AVN377"."Auto");
// Network 72: AVN378 (Original Language: LAD)
// Control temperature syste cooling
"HMI_Device"."AVN378"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVN378"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVN378" AND "HMI_Device"."AVN378"."Auto") OR ("gIN_VoltageOk" AND "gCoolingSystemBypass" AND "HMI_Device"."AVN378"."Auto");
// Network 73: AVN390 (Original Language: LAD)
"HMI_Device"."AVN390"."Out" := "gIN_VoltageOk" AND ("HMI_Device"."AVN390"."ManOn" OR ("Procedure_Variables"."FTP302Line_Preparation"."Latch" AND "Procedure_Variables"."FTP302_StartUp"."Latch" AND "gSyrupQcoRinse" AND "HMI_Device"."AVN390"."Auto" AND ("CIP_Program_Variables"."Status"."BlenderDrainRunning" OR ("gBlenderRinseMode" AND "gBlenderProdMode"))));
// Network 74: AVN395 (Original Language: LAD)
"HMI_Device"."AVN395"."Out" := "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_VacuumPump" >= 1;
// Network 75: AVP316 (Original Language: LAD)
"HMI_Device"."AVP316"."Out" := ("gIN_VoltageOk" AND "gP_AVP316" AND "HMI_Device"."AVP316"."Auto") OR ("gRinseDrainRunning" AND "gIN_VoltageOk" AND "HMI_Device"."AVP316"."Auto" AND "System_RunOut_Variables"."FastChangeOverActivated") OR ("gIN_VoltageOk" AND "HMI_Device"."AVP316_1"."Auto" AND "HMI_Device"."AVP316_1"."ManOn" AND "HMI_Device"."AVP316"."ManOn");
// Network 76: AVP316_1 (Original Language: LAD)
"HMI_Device"."AVP316_1"."Out" := ("gIN_VoltageOk" AND "gP_AVP316" AND "HMI_Device"."AVP316_1"."Auto") OR ("gRinseDrainRunning" AND "gIN_VoltageOk" AND "HMI_Device"."AVP316_1"."Auto" AND "System_RunOut_Variables"."FastChangeOverActivated") OR ("gIN_VoltageOk" AND "HMI_Device"."AVP316_1"."ManOn" AND "HMI_Device"."AVP316"."Auto" AND "HMI_Device"."AVP316"."ManOn");
// Network 77: AVP324 (Original Language: LAD)
// Syrup Tank Recirculating Valve
"HMI_Device"."AVP324"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVP324"."ManOn") OR ("gBlenderCIPMode" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_LocalCIP" AND "gIN_VoltageOk" AND "HMI_Device"."AVP324"."Auto") OR ("gIN_VoltageOk" AND "HMI_Device"."AVP324"."Auto" AND "System_RunOut_Variables"."FastChangeOverActivated" AND "gBlenderRinseMode");
// Network 78: AVP344 (Original Language: LAD)
"HMI_Device"."AVP344"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVP344"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVP344" AND "HMI_Device"."AVP344"."Auto");
// Network 79: AVP361 (Original Language: LAD)
"HMI_Device"."AVP361"."Out" := "gIN_VoltageOk" AND ("HMI_Device"."AVP361"."ManOn" OR ("HMI_Device"."AVP361"."Auto" AND ("gP_AVP361" OR ("gCIP_SyrTank_MaxLevel" AND "gCIPRinseOpenValves" AND "gOUT_PPN301_Run" AND (("HMI_Digital"."GSM322"."Config" AND "HMI_Digital"."GSM322"."Filtered" AND "System_RunOut_Variables"."FastChangeOverActivated" AND "Procedure_Variables"."TN301_StartUp"."Done" AND "gBlenderRinseMode") OR ("gBlenderCIPMode" AND (("HMI_Device"."AVM346"."Out" AND ("CIP_Program_Variables"."Status"."CausticRecoveryRun" OR ("CIP_Program_Variables"."Status"."CausticRecoveryRun" AND "CIP_Program_Variables"."Status"."BlenderEmpty"))) OR ("HMI_Device"."AVS337"."Out" AND ("CIP_Program_Variables"."Status"."CausticRecoveryRun" OR ("CIP_Program_Variables"."Status"."CausticRecoveryRun" AND "CIP_Program_Variables"."Status"."BlenderEmpty"))))))))));
// Network 80: AVP363 (Original Language: LAD)
"HMI_Device"."AVP363"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVP363"."ManOn") OR ("gIN_VoltageOk" AND "Procedure_Variables"."Syr_RunOut"."Running" AND "HMI_Device"."AVP363"."Auto") OR ("gIN_VoltageOk" AND "HMI_Digital"."GSM322"."Filtered" AND "HMI_Blender_Parameters"."Processor_Options"."Blender_OPT"."_FastChangeOverEnabled" AND "Procedure_Variables"."Blender_Rinse"."Running" AND "HMI_Device"."AVP363"."Auto" AND "System_RunOut_Variables"."FastChangeOverActivated");
// Network 81: AVP364 (Original Language: LAD)
"HMI_Device"."AVP364"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVP364"."ManOn") OR ("gIN_VoltageOk" AND "Interlocking_Variables"."SYRUP_ROOM_REC_DATA"."Syrup_Room_Cip" AND "HMI_Device"."AVP364"."Auto") OR ("gIN_VoltageOk" AND "HMI_Device"."SyrupRoom_SyrupPump"."Out" AND "System_RunOut_Variables"."SyrupLine1_AVP364" AND "Interlocking_Variables"."SYRUP_ROOM_REC_DATA"."Syrup_1_Ready" AND "HMI_Device"."AVP364"."Auto");
// Network 82: AVP365 (Original Language: LAD)
"HMI_Device"."AVP365"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVP365"."ManOn") OR ("gIN_VoltageOk" AND "Interlocking_Variables"."SYRUP_ROOM_REC_DATA"."Syrup_Room_Cip" AND "HMI_Device"."AVP365"."Auto") OR ("gIN_VoltageOk" AND "HMI_Device"."SyrupRoom_SyrupPump"."Out" AND "System_RunOut_Variables"."SyrupLine2_AVP365" AND "Interlocking_Variables"."SYRUP_ROOM_REC_DATA"."Syrup_2_Ready" AND "HMI_Device"."AVP365"."Auto");
// Network 83: AVP389 (Original Language: LAD)
"HMI_Device"."AVP389"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVP389"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVP389" AND "HMI_Device"."AVP389"."Auto");
// Network 84: AVP390 (Original Language: LAD)
"HMI_Device"."AVP390"."Out" := "gIN_VoltageOk" AND ("HMI_Device"."AVP390"."ManOn" OR ("Procedure_Variables"."FTP302Line_Preparation"."Latch" AND "Procedure_Variables"."FTP302_StartUp"."Latch" AND "gSyrupQcoRinse" AND "HMI_Device"."AVP390"."Auto" AND "gBlenderStartPumps" AND "gBlenderRinseMode" AND "gBlenderProdMode"));
// Network 85: AVP391 (Original Language: LAD)
"HMI_Device"."AVP391"."Out" := "gIN_VoltageOk" AND ("HMI_Device"."AVP391"."ManOn" OR ("Procedure_Variables"."FTP302Line_Preparation"."Latch" AND "Procedure_Variables"."FTP302_StartUp"."Latch" AND "gSyrupQcoRinse" AND "HMI_Device"."AVP391"."Auto" AND "gBlenderRinseMode" AND ("CIP_Program_Variables"."Status"."BlenderDrainRunning" OR "gBlenderProdMode")));
// Network 86: AVS331 (Original Language: LAD)
"HMI_Device"."AVS331"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVS331"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVS331" AND "HMI_Device"."AVS331"."Auto");
// Network 87: AVS332 (Original Language: LAD)
"HMI_Device"."AVS332"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVS332"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVS332" AND "HMI_Device"."AVS332"."Auto");
// Network 88: AVS333 (Original Language: LAD)
"HMI_Device"."AVS333"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVS333"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVS333" AND "CIP_Program_Variables"."Status"."OpenAVS333_335Valve" AND "HMI_Device"."AVS333"."Auto" AND "gOUT_PPN301_Run");
// Network 89: AVS334 (Original Language: LAD)
"HMI_Device"."AVS334"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVS334"."ManOn") OR ("gIN_VoltageOk" AND "CIP_Program_Variables"."Status"."OpenAVS333_335Valve" AND "gP_AVS334" AND "HMI_Device"."AVS334"."Auto" AND "gOUT_PPN301_Run");
// Network 90: AVS335 (Original Language: LAD)
"HMI_Device"."AVS335"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVS335"."ManOn") OR ("gIN_VoltageOk" AND "CIP_Program_Variables"."Status"."OpenAVS333_335Valve" AND "gP_AVS335" AND "HMI_Device"."AVS335"."Auto" AND "gOUT_PPN301_Run");
// Network 91: AVS336 (Original Language: LAD)
"HMI_Device"."AVS336"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVS336"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVS336" AND "HMI_Device"."AVS336"."Auto");
// Network 92: AVS337 (Original Language: LAD)
"HMI_Device"."AVS337"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVS337"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVS337" AND "HMI_Device"."AVS337"."Auto");
// Network 93: AVS338 (Original Language: LAD)
"HMI_Device"."AVS338"."Out" := ("gIN_VoltageOk" AND "HMI_Device"."AVS338"."ManOn") OR ("gIN_VoltageOk" AND "gP_AVS338" AND "HMI_Device"."AVS338"."Auto") OR ("gIN_VoltageOk" AND "HMI_PID"."RVS318"."ManualControl"."PidEnable" AND "HMI_Device"."AVS338"."Auto");
// Network 94: Pneumatic Valve Fault (Original Language: LAD)
IF "gWorkshopTest" THEN
Pneumatic_Valve_Fault();
END_IF;
END_FUNCTION