From 11f6bfaecc70d2c4f5ef6a1f9c660a7adb68c4f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szil=C3=A1rd=20H=C3=B6kk=C3=B6n?= Date: Fri, 24 Jul 2026 15:06:04 +0200 Subject: [PATCH 1/2] MBP-406: Update config of position recovery --- .../POUs/Application_Specific/Axes/Axis_Template.TcPOU | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a59201b..a89549b 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 @@ -24,7 +24,7 @@ IF _TaskInfo[fbGetCurTaskIndex.index].FirstCycle THEN GVL.astAxes[cAXIS_ID].stConfig.eHomeSeq := E_HomingRoutines.eNoHoming; GVL.astAxes[cAXIS_ID].stConfig.fHomePosition := 0.0; GVL.astAxes[cAXIS_ID].stConfig.fHomeFinishDistance := 0.0; - GVL.astAxes[cAXIS_ID].stConfig.eRestorePosition := E_RestorePosition.eRestoreWithoutHome; + GVL.astAxes[cAXIS_ID].stConfig.bRestorePosition := FALSE; GVL.astAxes[cAXIS_ID].stConfig.bEnableTemperatureDisable := FALSE; GVL.astAxes[cAXIS_ID].stConfig.fMaxTemperature := 85.0; GVL.astAxes[cAXIS_ID].stConfig.bEnableStopWithAnyLimitSwitch := TRUE; From a13c6e408e4a27ac5384324ab53c4f893f181394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szil=C3=A1rd=20H=C3=B6kk=C3=B6n?= Date: Fri, 24 Jul 2026 15:06:46 +0200 Subject: [PATCH 2/2] MBP-406: Update config of homing --- .../POUs/Application_Specific/Axes/Axis_Template.TcPOU | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 a89549b..97c3562 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 @@ -39,8 +39,11 @@ IF _TaskInfo[fbGetCurTaskIndex.index].FirstCycle THEN //Add the variables of Advanced homing parameters if you need to chage them GVL.astAxes[cAXIS_ID].stConfig.stHomingConfig.bDisableDriveAccess := TRUE; - GVL.astAxes[cAXIS_ID].stConfig.stHomingConfig.eLimitSwitchMode := MC_Switch_Mode.mcRisingEdge; //Rising edge: stays on limit switch/Falling edge: bounces off limit switch. - GVL.astAxes[cAXIS_ID].stConfig.stHomingConfig.eRefSwitchMode := MC_Switch_Mode.mcRisingEdge; + GVL.astAxes[cAXIS_ID].stConfig.stHomingConfig.eDetectionMode := E_DetectionMode.eFalling; //Rising edge: stays on limit switch/Falling edge: bounces off limit switch. + GVL.astAxes[cAXIS_ID].stConfig.stHomingConfig.bLimitFwdNormallyClosed := TRUE; + GVL.astAxes[cAXIS_ID].stConfig.stHomingConfig.bLimitBwdNormallyClosed := TRUE; + GVL.astAxes[cAXIS_ID].stConfig.stHomingConfig.bHomeSensorNormallyClosed := FALSE; + GVL.astAxes[cAXIS_ID].stConfig.stHomingConfig.bAbsoluteMoveAtFinishHoming := TRUE; END_IF *)