Back to top
MLFB_HomeFindHomeInput with additional features
The KAS IDE comes with the UDFB (User-Defined Function Block) MLFB_HomeFindHomeInput, as shown below.
The attached UDFB is an updated version with the following changes:
- The homing sensor was used as normal detection, It is set to detect falling edge.
- After the home sensor is tripped, the axis will move to an offset position. At the end of motion there will be a soft stop.
- The input “iHomeOffset” (LREAL) was added to set the offset position.