Moving the motor
At this point,
Assuming all the previous steps of configuration and tuning have been followed and reasonably stable tuning and phasing have been achieved, this guide will briefly explain how to perform movements with the motor.
Move the motor using trapezoidal commutation (BLDC)
Skip this step if a feedback different from digital halls is selected
- To move the motor using BLDC commutation, make sure the digital halls sensor is selected as commutation feedback - 0x151
- Make sure the feedback is aligned against the system using the forced alignment method.
- Select "No Phasing" in phasing mode parameter (once forced alignment has been performed, or an angle offset has been applied) - 0x154
- Set commutation modulation to trapezoidal modulation - 0x14F
Move using voltage mode
- Set operation mode to voltage mode by writing the following parameter - 0x014
- Set voltage quadrature set-point to the desired voltage value by writing the following parameter - 0x018
- Enable motor using the Control-Word parameter - 0x010
- At this point, if the voltage is high enough, the motor should spin. The voltage quadrature set-point can be modified at any moment while the power stage enabled.
Move using current mode
- Set operation mode to current mode by writing the following parameter - 0x014
- Set Current quadrature set-point to the desired value by writing the following parameter - 0x01A
- Enable motor using the Control-Word parameter - 0x010
- At this point, if the current is high enough, the motor should spin. The current quadrature set-point can be modified at any moment while the power stage is enabled.
Move using velocity mode
Move using raw set-points
- Set operation mode to velocity mode by writing the following parameter - 0x014
- Set Velocity set-point to the desired value by writing the following parameter - 0x021
- Enable motor using the Control-Word parameter - 0x010
- At this point, the motor should spin. The velocity set-point can be modified at any moment while the power stage is enabled.
Move using profiler
Profiler configuration
- Configure Profiler max. velocity by writing the following parameter - 0x025. This will limit the maximum velocity demanded by the profiler to this value.
- Configure Profiler max. acceleration by writing the following parameter - 0x026
- Configure Profiler min. acceleration by writing the following parameter - 0x027
- Activate Profile velocity mode by writing the value 0x13 (Profiler mode: 1 and Operation mode: 3) into the operation mode parameter - 0x014
Profiler usage
- Set Velocity set-point to the desired value by writing the following parameter - 0x021
- Enable motor using the Control-word parameter - 0x010
- Once the motor is enabled, latch the velocity set-point into the profiler. To do this, set to 1 the New set-point bit of the Control-word parameter (0x010). A rising edge of this bit when the power stage is enabled, latches the set-point and new demands are generated.
For instance, if the value 0xF in the Control-word was set to put the driver in operation enabled, setting a value of 0x20F would latch a position set-point. Latching with 0xA0F should latch the set-point in relative mode. - At this points the velocity demand will be generated following the ramp defined by the acceleration / deceleration and the maximum velocity. The motor should spin.
- New set-points can be latched while the motor is enabled.
Move using position mode
Move using raw set-points
- Set operation mode to position mode by writing the following parameter - 0x014
- Set Position set-point to the desired value by writing the following parameter - 0x020
- Enable motor using the Control-Word parameter - 0x010
- At this point, the motor should spin. The position set-point can be modified at any moment while the power stage is enabled.
Move using profiler
Profiler configuration
- Configure Profiler max. velocity by writing the following parameter - 0x025. This will limit the maximum velocity demanded by the profiler to this value.
- Configure Profiler max. acceleration by writing the following parameter - 0x026
- Configure Profiler min. acceleration by writing the following parameter - 0x027
- Activate Profile position mode by writing the value 0x14 (Profiler mode: 1 and Operation mode: 4) into the operation mode parameter - 0x014
Profiler usage
- Set Position set-point to the desired value by writing the following parameter - 0x020
- Enable motor using the Control-word parameter - 0x010
- Once the motor is enabled, latch the position set-point into the profiler. To do this, set to 1 the New set-point bit of the Control-word parameter (0x010). A rising edge of this bit when the power stage is enabled, latches the set-point and new demands are generated.
For instance, if the value 0xF in the Control-word was set to put the driver in operation enabled, setting a value of 0x20F would latch a position set-point. Latching with 0xA0F should latch the set-point in relative mode. - At this points the position demand will be generated following the trapezoidal profile defined by the acceleration / deceleration and the maximum velocity. The motor should spin.
- New set-points can be latched while the motor is enabled.