From bf17f42be119c6028588e822e7fd280b596855e4 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 16 Apr 2025 15:25:58 +0200 Subject: [PATCH] Program for Safety Shutters Program includes all the needed Inputs and Outputs for the PSS signals related to the Safety shutter. Also contains all the needed configurable variables. modified: solution/tc_project_app/POUs/Application_Specific/Axes/Safety_Shutter.TcPOU --- .../Axes/Safety_Shutter.TcPOU | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/solution/tc_project_app/POUs/Application_Specific/Axes/Safety_Shutter.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Axes/Safety_Shutter.TcPOU index 4481776..19bdd5e 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Axes/Safety_Shutter.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Axes/Safety_Shutter.TcPOU @@ -14,17 +14,19 @@ END_VAR //Uncomment the next IF statement to configure and activate the intial parameters of the axis (* IF _TaskInfo[fbGetCurTaskIndex.index].FirstCycle THEN - GVL.astPneumaticAxes[x].stPneumaticAxisConfig.sPneumaticAxisName := 'SafetyShutter'; - GVL.astPneumaticAxes[x].stPneumaticAxisConfig.bSafetyShutter := TRUE; - GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nTimeToExtend := 10; - GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nTimeToRetract := 10; - GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nAllowTimePressureOutOfRange := 5; - GVL.astPneumaticAxes[x].stPneumaticAxisConfig.eSelectPneumaticAxisGroup := E_PneumaticAxisGroup.ePneumaticAxisGroup1; + GVL.astPneumaticAxes[1].stPneumaticAxisConfig.sPneumaticAxisName := 'SafetyShutter'; + GVL.astPneumaticAxes[1].stPneumaticAxisConfig.bSafetyShutter := TRUE; + GVL.astPneumaticAxes[1].stPneumaticAxisConfig.nTimeToExtend := 10; + GVL.astPneumaticAxes[1].stPneumaticAxisConfig.nTimeToRetract := 10; + GVL.astPneumaticAxes[1].stPneumaticAxisConfig.tAllowTimePressureOutOfRange := GVL_APP.tTIME_PRESSURE_OUT_OF_RANGE; + GVL.astPneumaticAxes[1].stPneumaticAxisConfig.eSelectPneumaticAxisGroup := E_PneumaticAxisGroup.ePneumaticAxisGroup1; + GVL.astPneumaticAxes[1].stPneumaticAxisConfig.fLowLimitPressureValue := GVL_APP.fLOW_LIMIT_AIR_PRESSURE1; + GVL.astPneumaticAxes[1].stPneumaticAxisConfig.fHighLimitPressureValue := GVL_APP.fHIGH_LIMIT_AIR_PRESSURE1; END_IF *) //PSS Permit signal -//GVL.astPneumaticAxes[1].stPneumaticAxisStatus.bPSSPermit := bPSSPermit1 AND bPSSPermit2 +//GVL.astPneumaticAxes[1].stPneumaticAxisStatus.bPSSPermitOK := bPSSPermit1 AND bPSSPermit2 ]]>