Relative positioning
When positioning relatively, the drive system moves a specified distance from the current position at the specified velocity. The drive system can exit the parameterised traversing range.
- Prerequisite
- Configure the stepper motor modul.
- Enable the motor driver. in_enabled is TRUE.
- Set out_operation_mode to 3 (relative positioning).
- Set out_target_pos to the target distance.
- Set out_target_velocity to the target velocity.
- Set out_target_accel to the target acceleration.
- Set out_accel_mode to the desired acceleration type.
- To initiate positioning, set out_start to TRUE.
- The drive system travels the target distance.
- After a successful run, in_state_target_pos changes to TRUE.