Absolute positioning
When positioning absolutely, the drive system moves at the specified velocity from the current position to the absolute position in the traversing range.
- Prerequisite
- Configure the stepper motor modul.
- Enable the motor driver. in_enabled is TRUE.
- Execute a successful reference run. in_referenced is TRUE.
- Set out_operation_mode to 2 (absolute positioning).
- Set out_target_pos to the target position.
- 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 to the target position.
- After a successful run, in_state_target_pos changes to TRUE.