cancel
Showing results for 
Search instead for 
Did you mean: 

MC_ProgramSpeedRampMotor1(), MC_ProgramTorqueRampMotor1() not working in Position Control mode

DonCC007
Associate

[PN]: STSPIN32G4 + Custom board
[VERSION]: MCSDK 6.4.1
[TOOL]: Firmware
[DETAILS]:I set the Position control mode in workbench and run MC_ProgramSpeedRampMotor1() or MC_ProgramTorqueRampMotor1() in main loop. It always doesn't work. When I set the speed mode in workbench, it works always.
[EXPECTED BEHAVIOR]:In position control mode, MC_ProgramSpeedRampMotor1(), MC_ProgramTorqueRampMotor1()  should work.(run the motor at a specific speed or torque)
[HOW TO REPRODUCE]:always

I can see serval posts related to this topic. Seems that it is not possible in the current version. If really not possible in the current version. do you have a plan to implementing the above function in the future?

 

Thank you in advance.

1 REPLY 1
GMA
ST Employee

Hello @DonCC007,

Refer to Position Control application note document for API usage and description.
The Position Control feature uses position and duration values for trajectory computation.
It is not planned to add speed or torque control in the future.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA