From 525cc159690fb30c7e335b9e491f586a138233dc Mon Sep 17 00:00:00 2001 From: federicorojas Date: Thu, 27 Mar 2025 16:26:04 +0100 Subject: [PATCH 1/6] Add values for th eenable disable soft limits in MainVisu --- solution/tc_project_app/GlobalTextList.TcGTLO | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/solution/tc_project_app/GlobalTextList.TcGTLO b/solution/tc_project_app/GlobalTextList.TcGTLO index 661dfb0..aad6021 100644 --- a/solution/tc_project_app/GlobalTextList.TcGTLO +++ b/solution/tc_project_app/GlobalTextList.TcGTLO @@ -235,6 +235,16 @@ "Current pressure value (bar)" + + "1386" + "disSoftLimBw" + + + + "269" + "disSoftLimFw" + + "986" "ehomeDirect" @@ -340,6 +350,16 @@ "English" + + "1496" + "enSoftLimBw" + + + + "850" + "enSoftLimFw" + + "720" "eReadCoEParameter" @@ -695,6 +715,11 @@ "Stop at any Limit Swtich" + + "1033" + "SWLimitSwitches" + + "108" "Test Language" From 04cf94a1fe9f9c46dc21a4475e5bdd5358e4a2e6 Mon Sep 17 00:00:00 2001 From: federicorojas Date: Thu, 27 Mar 2025 16:26:43 +0100 Subject: [PATCH 2/6] Move pressure high and low limits from Pneumatics_template to Cabinet_Configuration The pressure limits are for the pressure groups and not for individual axes therefore, the definition of those limits was move as part of the cabinet_configuration. modified: solution/tc_project_app/POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU --- .../POUs/Application_Specific/Axes/Pneumatics_Template.TcPOU | 2 -- 1 file changed, 2 deletions(-) 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 9dbd47c..28b89b0 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,6 @@ END_VAR GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nTimeToExtend := 10; GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nTimeToRetract := 10; GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nAllowTimePressureOutOfRange := 5; - GVL.astPneumaticAxes[x].stPneumaticAxisConfig.fLowLimitPressureValue := 3.5; - GVL.astPneumaticAxes[x].stPneumaticAxisConfig.fHighLimitPressureValue := 6.0; END_IF *) From 3b4bef716935807df160bb476d5c38581ddb3221 Mon Sep 17 00:00:00 2001 From: federicorojas Date: Thu, 27 Mar 2025 16:29:36 +0100 Subject: [PATCH 3/6] Create Cabinet_Configuration program and call it from MAIN/PROG() Cabinet_Configuraiton contains the cabinet monitoring and the pressure limits high and low for the cbainets and pneumatic boxes. modified: solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU modified: solution/tc_project_app/POUs/MAIN.TcPOU --- .../Applications/Cabinet_Configuration.TcPOU | 11 ++++++----- solution/tc_project_app/POUs/MAIN.TcPOU | 4 +++- 2 files changed, 9 insertions(+), 6 deletions(-) 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 index 1a332eb..12fb117 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU @@ -7,7 +7,8 @@ VAR END_VAR ]]> - , aErrorMsg=> , @@ -18,12 +19,12 @@ END_VAR *) //Define pressure limits for pneumatic pressure group 1 -GVL.fHighLimitAirPressureGroup1 := 0.0; -GVL.fLowLimitAirPressureGroup1 := 0.0; +//GVL.fHighLimitAirPressureGroup1 := 0.0; +//GVL.fLowLimitAirPressureGroup1 := 0.0; //Define pressure limits for pneumatic pressure group 2 -GVL.fHighLimitAirPressureGroup2 := 0.0; -GVL.fLowLimitAirPressureGroup2 := 0.0; +//GVL.fHighLimitAirPressureGroup2 := 0.0; +//GVL.fLowLimitAirPressureGroup2 := 0.0; ]]> diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index 1e0304d..df45fc0 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -120,11 +120,13 @@ END_IF Date: Mon, 31 Mar 2025 15:26:15 +0200 Subject: [PATCH 4/6] Add attribute TcLinkTo for the LEDs of the shutter OP For each declared output of the shutter OP template add the attribute TcLinkTo. The shutter OP are always the same and will have the same terminals name and connected to the same ouputs. modified: solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_panel_Template.TcPOU --- .../Applications/Shutter_Operator_panel_Template.TcPOU | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 70706d6..e248f30 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 @@ -4,12 +4,18 @@ From 1a8fe4a7f2886ef8d3518ef2cc014722eadddbea Mon Sep 17 00:00:00 2001 From: federicorojas Date: Mon, 31 Mar 2025 15:37:37 +0200 Subject: [PATCH 5/6] Add comment for the nEcMasterNetId input variable of fbCabinetMonitoring Add the comment to explain the source of the AMS NetId for the fbCabinetMonitoring. The NetId should be from the Device (EtherCAT) of the I/O section of the solution. Add the commented call for the fbCabinetMonitoring in MAINS/PROG(). --- .../Applications/Cabinet_Configuration.TcPOU | 2 +- solution/tc_project_app/POUs/MAIN.TcPOU | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 index 12fb117..ca4ebf4 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU @@ -9,7 +9,7 @@ END_VAR , aErrorMsg=> , nEcMasterFramesLost=> , diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index df45fc0..557d5d8 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -125,7 +125,7 @@ GVL.fbGetCurTaskIndex(); //Create as many programs in that folder as axes and applications you have or need //Cabinet monitoring and pressure limits for pneumatics -Cabinet_Configuration(); +//Cabinet_Configuration(); //Axes initial parameters and program Axis_Template(); From d05f187bb8f69fce7c463f7c0d39de5ab723aed5 Mon Sep 17 00:00:00 2001 From: federicorojas Date: Mon, 31 Mar 2025 15:42:48 +0200 Subject: [PATCH 6/6] Build solution with version 4024.62. Update pointer of tc_mca_std_lib Unpin the TwinCAT verison 4024.56 and build solution with version 4024.62. Update the tc_mca_std_lib to commit 9cfc5a1. Build solution including the new variables from tc_mca_std_lib and new templates. --- solution/_Config/PLC/tc_project_app.xti | 17 +++++++++++++++-- solution/solution.tsproj | 2 +- .../Shutter_Operator_panel_Template.TcPOU | 2 +- solution/tc_project_app/tc_mca_std_lib | 2 +- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/solution/_Config/PLC/tc_project_app.xti b/solution/_Config/PLC/tc_project_app.xti index a36cf68..ecf2b39 100644 --- a/solution/_Config/PLC/tc_project_app.xti +++ b/solution/_Config/PLC/tc_project_app.xti @@ -1,9 +1,22 @@ - + - + tc_project_app Instance {08500001-0000-0000-F000-000000000064} + + PlcTask Inputs + + GVL.nAirPressureSensorGroup1 + + INT + + + GVL.nAirPressureSensorGroup2 + + INT + + 0 diff --git a/solution/solution.tsproj b/solution/solution.tsproj index 29d4f8f..e6a917a 100644 --- a/solution/solution.tsproj +++ b/solution/solution.tsproj @@ -1,5 +1,5 @@ - + 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 e248f30..b9eaf76 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 @@ -5,7 +5,7 @@ VAR //Variables used to control the LEDs of the Safety Shutter Operator panel (* - {attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF03 (EL2014)^DIG Outputs^Channel 1^Output'} + {attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF03 (EL2014)^DIG Outputs^Channel 1^Output'} bExtendedLight AT %Q*: BOOL; //Power output for Open position + LED {attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF03 (EL2014)^DIG Outputs^Channel 3^Output'} bRetractedLight AT %Q*: BOOL; //Power output for Close position + LED diff --git a/solution/tc_project_app/tc_mca_std_lib b/solution/tc_project_app/tc_mca_std_lib index 58b64e0..9cfc5a1 160000 --- a/solution/tc_project_app/tc_mca_std_lib +++ b/solution/tc_project_app/tc_mca_std_lib @@ -1 +1 @@ -Subproject commit 58b64e0f696843d128f38dddd72db4e427c3ccda +Subproject commit 9cfc5a1d1df46a3d6efda48065477801acebdc50