From 0e5b2240a75000d0ece6ccebf304fc5aafb8040d Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Tue, 14 Sep 2021 10:44:37 +0200 Subject: [PATCH 1/2] Update tc_mca_std_lib pointer --- 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 a1a1fbb..629ce84 160000 --- a/solution/tc_project_app/tc_mca_std_lib +++ b/solution/tc_project_app/tc_mca_std_lib @@ -1 +1 @@ -Subproject commit a1a1fbb57b1ee2ab0a4a69615f6e6b745af7364a +Subproject commit 629ce84d997e67af960722ca9760b1251c4e2a71 From bcd7c497b3824c7c8e80178470023ecf893749f0 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Tue, 21 Sep 2021 15:18:09 +0200 Subject: [PATCH 2/2] Add comments to Axis_template and remove supply outputs from MAIN --- solution/_Config/PLC/tc_project_app.xti | 8 -------- solution/tc_project_app/GlobalTextList.TcGTLO | 5 +++++ .../POUs/Application_Specific/Axes/Axis_Template.TcPOU | 8 +++++++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/solution/_Config/PLC/tc_project_app.xti b/solution/_Config/PLC/tc_project_app.xti index dbf21f9..9067711 100644 --- a/solution/_Config/PLC/tc_project_app.xti +++ b/solution/_Config/PLC/tc_project_app.xti @@ -4,14 +4,6 @@ tc_project_app Instance {08500001-0000-0000-F000-000000000064} - - PlcTask Outputs - - MAIN.bOutput1 - - BOOL - - 0 diff --git a/solution/tc_project_app/GlobalTextList.TcGTLO b/solution/tc_project_app/GlobalTextList.TcGTLO index 550df53..c9e9655 100644 --- a/solution/tc_project_app/GlobalTextList.TcGTLO +++ b/solution/tc_project_app/GlobalTextList.TcGTLO @@ -280,6 +280,11 @@ "halt" + + "123" + "HOME" + + "169" "homeDirect" diff --git a/solution/tc_project_app/POUs/Application_Specific/Axes/Axis_Template.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Axes/Axis_Template.TcPOU index dfff176..b7dc9f6 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Axes/Axis_Template.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Axes/Axis_Template.TcPOU @@ -3,7 +3,11 @@ @@ -16,7 +20,8 @@ END_VAR END_IF*) //Define ACTIONS() or write exclusive code for an specific axis. -//Eg. Stop when temperature reaches certain values, reduce speed if a signal is activated, etc. +(*Eg. Stop when temperature reaches certain values, reduce speed if a signal is activated, etc. +Eg. GVL.astAxes[x].stControl.bInterlockFwd := NOT bInterlockFwdOK;*) ]]> @@ -28,6 +33,7 @@ END_IF*) +