Manually set IsHomed state of MpAxisBasic

Hello everyone!
I’m quite new to mappMotion, and I’m currently struggling with the IsHomed state of the MpAxisBasicFB.

My problem is that as soon as the axis gets disabled or enters an error state, it should no longer be considered referenced — but the IsHomed property always remains true.

Is there a way to manually set this property to false, or to trigger something that resets it?

Hello,

As far as i know only Encoder Errors will reset the Homing Status of the Axis. Because only this situation is considered as lose of Position Data.

If i have this kind of Requirement that the Application has a different understanding of the “IsHome”, i implement an own Application State via Helper Variable. In this way you have complete influence of the Status in your Application.

It mostly takes only few lines to sychronies the helper-IsHomed with the MpAxis-IsHomed.

IF MpAxis-IsHomed = 0 THEN 
  helper-IsHomed := 0; 
END_IF 

In the State were you get the Homing.Done you must also set the helper-IsHomed := 1;

Greetings
Michael