From aa679246500c8f1dc4f31b02253d41fc98a02f87 Mon Sep 17 00:00:00 2001 From: Federico Rojas Date: Tue, 1 Nov 2022 14:20:53 +0100 Subject: [PATCH] Add example to configure retore position of an axis in Axis_Template --- solution/_Config/PLC/tc_project_app.xti | 2 +- solution/solution.tsproj | 4 ---- .../POUs/Application_Specific/Axes/Axis_Template.TcPOU | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/solution/_Config/PLC/tc_project_app.xti b/solution/_Config/PLC/tc_project_app.xti index e29aaf0..30060c1 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} diff --git a/solution/solution.tsproj b/solution/solution.tsproj index 44582e8..f495754 100644 --- a/solution/solution.tsproj +++ b/solution/solution.tsproj @@ -18,9 +18,5 @@ - - - - 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 43513fc..5e9edcc 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 @@ -16,6 +16,7 @@ END_VAR]]> GVL.astAxes[1].stConfig.eHomeSeq := 0; GVL.astAxes[1].stConfig.fHomePosition := 0.0; GVL.astAxes[1].stConfig.fHomeFinishDistance := 0.0; + GVL.astAxes[1].stConfig.eRestorePosition := E_RestorePosition.eRestoreWithoutHome; END_IF*) //Define ACTIONS() or write exclusive code for an specific axis.