2023-12-13 10:14 PM
The MC_ProgramSpeedRampMotor1 api is created in six steps to modify the ramp; however, ramp changes cannot be made with this api.It is possible to modify the ramp in FOC by using the MC_ProgramSpeedRampMotor1_F api.
Additionally, two produced APIs are supplied in FOC; however, in the Six Step, just MC_ProgramSpeedRampMotor1 generated.
I am unable to modify the ramp using the MC_ProgramSpeedRampMotor1 api in six step. Could you please assist me? Is there another method to modify the ramp in a six-step algorithm?
2023-12-14 10:07 PM
Is there any other method to modify the ramp in a six-step algorithm?
2023-12-18 06:02 AM
I generated a 6step project and added
MC_ProgramSpeedRampMotor1(333, 5000);
in main.c and it works pretty well. The speed is gradually changed to 2krpm in 5s. Consider that a change of sign in the speed (spin rotation change) is not allowed in 6step and forces the motor to stop. What exactly is the issue you are facing?
2023-12-18 09:53 PM
This is the code i am using to generate the ramp in six step algorithm, The MC_ProgramSpeedRampMotor1 api is created in six steps to modify the ramp; however, ramp changes cannot be made with this api. Could you please assist me? Is there another method to modify the ramp in a six-step algorithm?
2023-12-19 12:23 AM
Are you sure that the effect of your code is not an overcurrent event?
I see an error in the usage of the speed. As indicated in the documentation the api accepts the speed expressed in #SPEED_UNIT.
So, I suggest to use the macro RPM_2_SPEED_UNIT(rpm) to convert it before calling the function.
MC_ProgramSpeedRampMotor1(RPM_2_SPEED_UNIT(target_speed), duration);