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
- An axis moves in the preset homing direction using high velocity.
- An axis reverses the direction every time it touches a sensor, because the sensor's signal changes whenever the sensor is touched.
- The velocity is divided by 10 every time the direction is reversed until it finds the sensor in the preset direction at the low velocity.
homingSensor
- An axis moves in the preset homing direction using high velocity.
- The moving direction of an axis is determined by a sensor's signal. If the signal is zero, it moves forward; if the signal is one, it moves backward.
- The velocity is divided by 10 every time the direction is reversed until it finds the sensor in the preset direction at the low velocity.
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.