homingSoft and homingSensor

They use a homing sensor to get the home position. To use homingSoft or homingSensor, you need to specify a digital input (DI). This DI can be a bit in an I/O module or in a servo drive. The DI may be connected to a sensor. When an axis is moving and touching the sensor, the bit is changed to true (or false, for normally closed sensors).

The ways homingSoft and homingSensor work are similar. The bold text shows the difference between homingSoft and homingSensor.

homingSoft

homingSensor

How homingSoft and homingSensor work

The figure below shows how homingSoft and homingSensor work in different scenarios when the homing direction is positive.

: an axis moves forward fast. When it touches a sensor, the sensor's signal changes, which causes the axis to change the direction. The axis moves backward slowly, and then moves forward in the slower speed until it reaches the target.

: an axis moves forward when the sensor's signal is zero, and moves backward when the sensor's signal is one. When the axis touches a sensor, it changes the direction and moves back and forth around the homing sensor until it reaches the target. With homingSensor, the axis may start moving backward if the sensor's signal is one when the move starts. In that case, the last direction will still be forward because the homing direction is positive.

: an axis touches the limit switch. Homing is cancelled.

Tutorials

homingSoft and homingSensor