From ecc0fa93237f66647345106bc2048da15bd76ff6 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Fri, 11 Apr 2025 15:02:24 +0200 Subject: [PATCH 01/17] Add new programs and templates for penaumtics Add a template for safety shutter, wher ethe PSS permit signals are created. Add a program for the Pneumatic_Box, where all the signals for pressure sensors and pressure calcualtions are implemented. Correct the Pneumatics_Template TaskInfo was missing a _, delete the pressurelimtis, and add the pressure group selection. Call the new programs from PROG() MAIN. --- .../Applications/Pneumatic_Box.TcPOU | 104 ++++++++++++++++++ .../Axes/Pneumatics_Template.TcPOU | 14 +-- .../Axes/Safety_Shutter.TcPOU | 31 ++++++ solution/tc_project_app/POUs/MAIN.TcPOU | 6 +- 4 files changed, 143 insertions(+), 12 deletions(-) create mode 100644 solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU create mode 100644 solution/tc_project_app/POUs/Application_Specific/Axes/Safety_Shutter.TcPOU diff --git a/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU new file mode 100644 index 0000000..85c18c8 --- /dev/null +++ b/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU @@ -0,0 +1,104 @@ + + + + + + + + + + + GVL_APP.fHigh_LIMIT_AIR_PRESSURE1,PT:=GVL_APP.tTIME_PRESSURE_OUT_OF_RANGE); + +fbOutOfRangeLowTimer2(IN := fScaledAirPressureGroup2 < GVL_APP.fLOW_LIMIT_AIR_PRESSURE2,PT:=GVL_APP.tTIME_PRESSURE_OUT_OF_RANGE); +fbOutOfRangeHighTimer2(IN := fScaledAirPressureGroup2 > GVL_APP.fHigh_LIMIT_AIR_PRESSURE2,PT:=GVL_APP.tTIME_PRESSURE_OUT_OF_RANGE); + +//Check if the air pressure value is too low for longer than defined time +IF fbOutOfRangeLowTimer1.Q THEN + bAirPressureLowGrp1 := TRUE; +ELSE + bAirPressureLowGrp1 := FALSE; +END_IF + +IF fbOutOfRangeLowTimer2.Q THEN + bAirPressureLowGrp2 := TRUE; +ELSE + bAirPressureLowGrp2 := FALSE; +END_IF + + +//Check if the air pressure value is too high for longer than defined time +IF fbOutOfRangeHighTimer1.Q THEN + bAirPressureHighGrp1 := TRUE; +ELSE + bAirPressureHighGrp1 := FALSE; +END_IF + +IF fbOutOfRangeHighTimer2.Q THEN + bAirPressureHighGrp2 := TRUE; +ELSE + bAirPressureHighGrp2 := FALSE; +END_IF +]]> + + + + + + + + + + \ No newline at end of file diff --git a/solution/tc_project_app/POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU index dfbdcec..dda5fb1 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU @@ -10,21 +10,15 @@ END_VAR 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 new file mode 100644 index 0000000..4481776 --- /dev/null +++ b/solution/tc_project_app/POUs/Application_Specific/Axes/Safety_Shutter.TcPOU @@ -0,0 +1,31 @@ + + + + + + + + + \ No newline at end of file diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index 98821bc..e183ea3 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -129,11 +129,13 @@ GVL.fbGetCurTaskIndex(); //Axes initial parameters and program Axis_Template(); +Safety_Shutter(); //Pneumatics_Template(); //Application program calls -Cabinet_Configuration(); -Application_Template(); +Cabinet_Monitoring(); +Pneumatic_Box(); +//Application_Template(); ]]> From c7ddb220463cfd5d6d408e72f478028eb5a9064d Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Fri, 11 Apr 2025 15:08:11 +0200 Subject: [PATCH 02/17] Rename Cabinet_Configuration to Cabinet_Monitoring Remove the pneumatics variables from Cabinet_Configuration and move them to Pneumatic_Box program.Because of that the program now handles onle the cabinet monitoring. Rename the prgram to reflect that change deleted: solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU new file: solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Monitoring.TcPOU --- .../Applications/Cabinet_Configuration.TcPOU | 53 ------------------- .../Applications/Cabinet_Monitoring.TcPOU | 23 ++++++++ 2 files changed, 23 insertions(+), 53 deletions(-) delete mode 100644 solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU create mode 100644 solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Monitoring.TcPOU diff --git a/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU deleted file mode 100644 index 812c3c4..0000000 --- a/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - , - aErrorMsg=> , - nEcMasterFramesLost=> , - nCPULoad=> , - fCycleExecTime_ms=> , - nAlarmGrpBitNumber=> ); -*) - -//Scale pressure sensor group 1 and 2 -fScaledAirPressureGroup1 := mScaledPressureValue(nRawValue:=GVL.nAirPressureSensorGroup1); -fScaledAirPressureGroup2 := mScaledPressureValue(nRawValue:=GVL.nAirPressureSensorGroup2); -]]> - - - - - - - - - \ No newline at end of file diff --git a/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Monitoring.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Monitoring.TcPOU new file mode 100644 index 0000000..1af68a5 --- /dev/null +++ b/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Monitoring.TcPOU @@ -0,0 +1,23 @@ + + + + + + , + aErrorMsg=> , + nEcMasterFramesLost=> , + nCPULoad=> , + fCycleExecTime_ms=> , + nAlarmGrpBitNumber=> ); +*) +]]> + + + \ No newline at end of file From 51a352d24a21848d4a17816941c8d6b55bd8403d Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Fri, 11 Apr 2025 15:11:47 +0200 Subject: [PATCH 03/17] Remove the negation(NOT) from the PSS permit status signal --- .../Applications/Shutter_Operator_panel_Template.TcPOU | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_panel_Template.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_panel_Template.TcPOU index b9eaf76..5dc18c1 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_panel_Template.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_panel_Template.TcPOU @@ -22,7 +22,7 @@ END_VAR Date: Fri, 11 Apr 2025 15:13:45 +0200 Subject: [PATCH 04/17] Add as constant variable the tTIME_PRESSURE_OUT_OF_RANGE variable --- solution/tc_project_app/GVLs/GVL_APP.TcGVL | 1 + 1 file changed, 1 insertion(+) diff --git a/solution/tc_project_app/GVLs/GVL_APP.TcGVL b/solution/tc_project_app/GVLs/GVL_APP.TcGVL index 0da9a07..ec88f65 100644 --- a/solution/tc_project_app/GVLs/GVL_APP.TcGVL +++ b/solution/tc_project_app/GVLs/GVL_APP.TcGVL @@ -12,6 +12,7 @@ VAR_GLOBAL CONSTANT nPNEUMATIC_AXIS_NUM: UINT := 0; //Specifies the total number of pneumatic axes in the system //Pneumatic air pressure groups high and low limits + tTIME_PRESSURE_OUT_OF_RANGE: TIME := T#10S; //User defined allowed time in seconds for the duration of air pressure value fluctuation fLOW_LIMIT_AIR_PRESSURE1: REAL := 0; //User defined value in bar for low limit air pressure value for pneumatic axes group 1 fHIGH_LIMIT_AIR_PRESSURE1: REAL := 0; //User defined value in bar for high limit air pressure value for pneumatic axes group 1 fLOW_LIMIT_AIR_PRESSURE2: REAL := 0; //User defined value in bar for low limit air pressure value for pneumatic axes group 2 From 8dbdba11e2a34475c93ee704f9185ea4fe380ced Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Fri, 11 Apr 2025 15:14:37 +0200 Subject: [PATCH 05/17] Build solution with the new pneumatics progs and variables --- solution/_Config/PLC/tc_project_app.xti | 23 ++++++++++++++++++- .../tc_project_app/tc_project_app.plcproj | 8 ++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/solution/_Config/PLC/tc_project_app.xti b/solution/_Config/PLC/tc_project_app.xti index 482ce85..1f0935d 100644 --- a/solution/_Config/PLC/tc_project_app.xti +++ b/solution/_Config/PLC/tc_project_app.xti @@ -1,11 +1,19 @@ - + tc_project_app Instance {08500001-0000-0000-F000-000000000064} PlcTask Inputs + + Safety_Shutter.bPSSPermit1 + BOOL + + + Safety_Shutter.bPSSPermit2 + BOOL + GVL.nAirPressureSensorGroup1 @@ -17,6 +25,19 @@ INT + + PlcTask Outputs + + Safety_Shutter.bPSSPermitPower + + BOOL + + + Pneumatic_Box.bPowerPressureSensors + + BOOL + + 0 diff --git a/solution/tc_project_app/tc_project_app.plcproj b/solution/tc_project_app/tc_project_app.plcproj index 39c4c6c..00d39ce 100644 --- a/solution/tc_project_app/tc_project_app.plcproj +++ b/solution/tc_project_app/tc_project_app.plcproj @@ -37,7 +37,10 @@ Code - + + Code + + Code @@ -49,6 +52,9 @@ Code + + Code + Code From ea3db4e15d35d1c34d53b8a2098d951a012bbfb3 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 16 Apr 2025 15:22:25 +0200 Subject: [PATCH 06/17] Fix indentation and typo in comment --- .../POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU index 85c18c8..cd686f3 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU @@ -4,7 +4,7 @@ Date: Wed, 16 Apr 2025 15:23:56 +0200 Subject: [PATCH 07/17] Add new lines for configurable variables fromg GVL_APP --- .../POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/solution/tc_project_app/POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU index dda5fb1..5c1eb7d 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU @@ -15,8 +15,10 @@ IF _TaskInfo[fbGetCurTaskIndex.index].FirstCycle THEN GVL.astPneumaticAxes[x].stPneumaticAxisConfig.bSafetyShutter := FALSE; GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nTimeToExtend := 10; GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nTimeToRetract := 10; - GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nAllowTimePressureOutOfRange := 5; + GVL.astPneumaticAxes[x].stPneumaticAxisConfig.tAllowTimePressureOutOfRange := GVL_APP.tTIME_PRESSURE_OUT_OF_RANGE; GVL.astPneumaticAxes[x].stPneumaticAxisConfig.eSelectPneumaticAxisGroup := E_PneumaticAxisGroup.ePneumaticAxisGroup#; + GVL.astPneumaticAxes[x].stPneumaticAxisConfig.fLowLimitPressureValue := GVL_APP.fLOW_LIMIT_AIR_PRESSURE#; + GVL.astPneumaticAxes[x].stPneumaticAxisConfig.fHighLimitPressureValue := GVL_APP.fHIGH_LIMIT_AIR_PRESSURE#; END_IF *) ]]> From bf17f42be119c6028588e822e7fd280b596855e4 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 16 Apr 2025 15:25:58 +0200 Subject: [PATCH 08/17] 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 ]]> From b807a0772386fb6b3f403c1746746ae36e0bb8c4 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 16 Apr 2025 15:31:49 +0200 Subject: [PATCH 09/17] Rename the Shutter operator panel program and update the PSS permit variable link Add the comment to call the Shutter_Operator_Panel program from MAIN/PROG() Build solution. renamed: solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_panel_Template.TcPOU -> solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_Panel.TcPOU modified: solution/tc_project_app/POUs/MAIN.TcPOU modified: solution/tc_project_app/tc_project_app.plcproj --- ...mplate.TcPOU => Shutter_Operator_Panel.TcPOU} | 16 ++++++++-------- solution/tc_project_app/POUs/MAIN.TcPOU | 1 + solution/tc_project_app/tc_project_app.plcproj | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) rename solution/tc_project_app/POUs/Application_Specific/Applications/{Shutter_Operator_panel_Template.TcPOU => Shutter_Operator_Panel.TcPOU} (71%) diff --git a/solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_panel_Template.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_Panel.TcPOU similarity index 71% rename from solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_panel_Template.TcPOU rename to solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_Panel.TcPOU index 5dc18c1..d8fcf84 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_panel_Template.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_Panel.TcPOU @@ -1,7 +1,7 @@  - - + diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index e183ea3..ab6434b 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -135,6 +135,7 @@ Safety_Shutter(); //Application program calls Cabinet_Monitoring(); Pneumatic_Box(); +//Shutter_Operator_Panel(); //Application_Template(); ]]> diff --git a/solution/tc_project_app/tc_project_app.plcproj b/solution/tc_project_app/tc_project_app.plcproj index 00d39ce..6581927 100644 --- a/solution/tc_project_app/tc_project_app.plcproj +++ b/solution/tc_project_app/tc_project_app.plcproj @@ -43,7 +43,7 @@ Code - + Code From 7cf9ab307b2467b21846272e44d71edbbeb9218d Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 16 Apr 2025 15:40:43 +0200 Subject: [PATCH 10/17] Build solution including the fix of typo in comment --- solution/_Config/PLC/tc_project_app.xti | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solution/_Config/PLC/tc_project_app.xti b/solution/_Config/PLC/tc_project_app.xti index 1f0935d..508c870 100644 --- a/solution/_Config/PLC/tc_project_app.xti +++ b/solution/_Config/PLC/tc_project_app.xti @@ -1,7 +1,7 @@ - + tc_project_app Instance {08500001-0000-0000-F000-000000000064} @@ -34,7 +34,7 @@ Pneumatic_Box.bPowerPressureSensors - + BOOL From ad92cc97fa24842e541607b479c7bfde8452d589 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 16 Apr 2025 15:45:55 +0200 Subject: [PATCH 11/17] Add initial values to low and high pressure limits values, fix indentation modified: solution/tc_project_app/GVLs/GVL_APP.TcGVL --- solution/tc_project_app/GVLs/GVL_APP.TcGVL | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solution/tc_project_app/GVLs/GVL_APP.TcGVL b/solution/tc_project_app/GVLs/GVL_APP.TcGVL index ec88f65..ac3e9a0 100644 --- a/solution/tc_project_app/GVLs/GVL_APP.TcGVL +++ b/solution/tc_project_app/GVLs/GVL_APP.TcGVL @@ -13,10 +13,10 @@ VAR_GLOBAL CONSTANT //Pneumatic air pressure groups high and low limits tTIME_PRESSURE_OUT_OF_RANGE: TIME := T#10S; //User defined allowed time in seconds for the duration of air pressure value fluctuation - fLOW_LIMIT_AIR_PRESSURE1: REAL := 0; //User defined value in bar for low limit air pressure value for pneumatic axes group 1 - fHIGH_LIMIT_AIR_PRESSURE1: REAL := 0; //User defined value in bar for high limit air pressure value for pneumatic axes group 1 - fLOW_LIMIT_AIR_PRESSURE2: REAL := 0; //User defined value in bar for low limit air pressure value for pneumatic axes group 2 - fHIGH_LIMIT_AIR_PRESSURE2: REAL := 0; //User defined value in bar for high limit air pressure value for pneumatic axes group 2 + fLOW_LIMIT_AIR_PRESSURE1: REAL := 1; //User defined value in bar for low limit air pressure value for pneumatic axes group 1 + fHIGH_LIMIT_AIR_PRESSURE1: REAL := 6; //User defined value in bar for high limit air pressure value for pneumatic axes group 1 + fLOW_LIMIT_AIR_PRESSURE2: REAL := 1; //User defined value in bar for low limit air pressure value for pneumatic axes group 2 + fHIGH_LIMIT_AIR_PRESSURE2: REAL := 6; //User defined value in bar for high limit air pressure value for pneumatic axes group 2 END_VAR ]]> From da583336717e7b085d6885e28aab9cfb697960f4 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 16 Apr 2025 15:47:35 +0200 Subject: [PATCH 12/17] Update pointer to tc_mca_Std_lib to MBP-310 commit --- solution/tc_project_app/tc_mca_std_lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solution/tc_project_app/tc_mca_std_lib b/solution/tc_project_app/tc_mca_std_lib index e0866f8..50f1fa4 160000 --- a/solution/tc_project_app/tc_mca_std_lib +++ b/solution/tc_project_app/tc_mca_std_lib @@ -1 +1 @@ -Subproject commit e0866f8a66aebed3bf87e21e19e6056b9fca198d +Subproject commit 50f1fa4c69e127d901edac8fad27e7f55f7fb122 From 289c92d07c198703eeaceb5ce2546b705b7a0c8f Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 23 Apr 2025 11:43:47 +0200 Subject: [PATCH 13/17] Extend the multiline comment to include the PSSPermit code --- .../POUs/Application_Specific/Axes/Safety_Shutter.TcPOU | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 19bdd5e..c878b55 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 @@ -23,10 +23,10 @@ IF _TaskInfo[fbGetCurTaskIndex.index].FirstCycle THEN 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.bPSSPermitOK := bPSSPermit1 AND bPSSPermit2 +*) ]]> From 36e68aa23e5bd07a634e450561b5a187a191e5c0 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 23 Apr 2025 11:48:18 +0200 Subject: [PATCH 14/17] Add output variable to power the green LED and the inside light of box, build solution modified: solution/_Config/PLC/tc_project_app.xti modified: solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU --- solution/_Config/PLC/tc_project_app.xti | 7 ++++++- .../Application_Specific/Applications/Pneumatic_Box.TcPOU | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/solution/_Config/PLC/tc_project_app.xti b/solution/_Config/PLC/tc_project_app.xti index 508c870..11de617 100644 --- a/solution/_Config/PLC/tc_project_app.xti +++ b/solution/_Config/PLC/tc_project_app.xti @@ -1,7 +1,7 @@ - + tc_project_app Instance {08500001-0000-0000-F000-000000000064} @@ -32,6 +32,11 @@ BOOL + + Pneumatic_Box.bPowerLedAndLight + + BOOL + Pneumatic_Box.bPowerPressureSensors diff --git a/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU index cd686f3..62e9042 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU @@ -4,6 +4,7 @@ Date: Wed, 23 Apr 2025 12:05:25 +0200 Subject: [PATCH 15/17] Update VISU text elements and delete unused elements --- solution/tc_project_app/GlobalTextList.TcGTLO | 224 +----------------- 1 file changed, 2 insertions(+), 222 deletions(-) diff --git a/solution/tc_project_app/GlobalTextList.TcGTLO b/solution/tc_project_app/GlobalTextList.TcGTLO index aad6021..2a574ff 100644 --- a/solution/tc_project_app/GlobalTextList.TcGTLO +++ b/solution/tc_project_app/GlobalTextList.TcGTLO @@ -5,21 +5,6 @@ - - "947" - " LocalMode" - - - - "972" - " bLocalMode" - - - - "587" - "%1d" - - "951" "%2.2f" @@ -40,21 +25,11 @@ "%d" - - "39" - "%n" - - "821" "%s" - - "916" - "%time_t" - - "940" "%x" @@ -95,11 +70,6 @@ "bBwEnabled" - - "633" - "bCoammandAborted" - - "225" "bCommandAborted" @@ -125,11 +95,6 @@ "bError" - - "102" - "bExecute" - - "999" "bExtended" @@ -140,11 +105,6 @@ "bFwEnabled" - - "297" - "bGeared" - - "902" "bHighTempAxisDisabled" @@ -155,11 +115,6 @@ "bHomed" - - "944" - "bCommandAborted" - - "509" "bHWMaskActive" @@ -176,8 +131,8 @@ - "541" - "bInVeloit" + "835" + "bLocalMode" @@ -190,21 +145,11 @@ "bMovingExtend" - - "648" - "bMovingExtract" - - "998" "bMovingRetract" - - "511" - "bPermit" - - "963" "bPSSPermit" @@ -245,11 +190,6 @@ "disSoftLimFw" - - "986" - "ehomeDirect" - - "350" "eHomeDirect" @@ -305,11 +245,6 @@ "eHomeToRef_Fwd" - - "313" - "Elapsed time" - - "87" "Elapsed time (ms)" @@ -320,16 +255,6 @@ "ENABLE" - - "106" - "ENABLE BW" - - - - "105" - "ENABLE FW" - - "1009" "End switches simulation" @@ -345,11 +270,6 @@ "EndSwitchFwd" - - "109" - "English" - - "1496" "enSoftLimBw" @@ -385,11 +305,6 @@ "eWriteParameter" - - "768" - "eWriteParameter" - - "937" "E_PneumaticErrors" @@ -400,11 +315,6 @@ "E_PneumaticMode" - - "463" - "E_PneumaticMode Selection" - - "955" "fAcceleration" @@ -430,11 +340,6 @@ "fHomePosition" - - "157" - "fHomePositions" - - "957" "fPosition" @@ -475,11 +380,6 @@ "fWriteCoEParam" - - "299" - "gearIn" - - "717" "gearInMultiMaster" @@ -500,31 +400,11 @@ "High pressure limit (bar)" - - "123" - "HOME" - - "568" "Home" - - "169" - "homeDirect" - - - - "566" - "homeSensorNeg" - - - - "677" - "homeSensorPos" - - "784" "Interlock Bwd" @@ -550,41 +430,16 @@ "Label" - - "19" - "Limit switches simulation" - - - - "919" - "LimitBwd" - - - - "459" - "LimitFwd" - - "961" "Low pressure limit (bar)" - - "298" - "masterGear" - - "460" "Mode Selection" - - "118" - "Mode selection" - - "111" "moveAbsolute" @@ -610,31 +465,11 @@ "nIndex" - - "716" - "nTimeToExtend" - - - - "787" - "nTimeToExtend(ms)" - - "992" "nTimeToExtend(s)" - - "929" - "nTimeToRetract" - - - - "444" - "nTimeToRetract(ms)" - - "995" "nTimeToRetract(s)" @@ -645,26 +480,11 @@ "Pneumatic Axis Selection" - - "958" - "Pneumatic AxisSelection" - - - - "694" - "Pneumatics" - - "942" "reset" - - "611" - "shomeDirect" - - "227" "Single Solenoid Manual" @@ -675,21 +495,6 @@ "Single Solenoid PLC" - - "581" - "Single Solenoid PLC ON" - - - - "959" - "Sngle solenoid PLC" - - - - "466" - "Sngle solenoid PLC " - - "855" "sStatus" @@ -710,36 +515,11 @@ "stop" - - "978" - "Stop at any Limit Swtich" - - "1033" "SWLimitSwitches" - - "108" - "Test Language" - - - - "103" - "toggle" - - - - "445" - "Write" - - - - "322" - "WriteParameters" - - {a3a9f9fc-0872-4de9-8fe0-73a54ef2c389} From ecebae5752ac4ff1a70be9864df436d03b617ab0 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 23 Apr 2025 12:06:38 +0200 Subject: [PATCH 16/17] Update pointer to tc_mca_std_lib to commit cd60a1f9 --- solution/tc_project_app/tc_mca_std_lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solution/tc_project_app/tc_mca_std_lib b/solution/tc_project_app/tc_mca_std_lib index 50f1fa4..cd60a1f 160000 --- a/solution/tc_project_app/tc_mca_std_lib +++ b/solution/tc_project_app/tc_mca_std_lib @@ -1 +1 @@ -Subproject commit 50f1fa4c69e127d901edac8fad27e7f55f7fb122 +Subproject commit cd60a1f9017765b4c48a91d86d1ce42cc47782dc From 1bf30748a3eea289e6823037d419638786556175 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Wed, 23 Apr 2025 13:49:41 +0200 Subject: [PATCH 17/17] Update pointer of std_lib to the merge to master of MBP-310 --- solution/tc_project_app/tc_mca_std_lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solution/tc_project_app/tc_mca_std_lib b/solution/tc_project_app/tc_mca_std_lib index cd60a1f..b4e85b3 160000 --- a/solution/tc_project_app/tc_mca_std_lib +++ b/solution/tc_project_app/tc_mca_std_lib @@ -1 +1 @@ -Subproject commit cd60a1f9017765b4c48a91d86d1ce42cc47782dc +Subproject commit b4e85b36da70f30cdecb3059c5fe98b88725e9dd