Skip to main content
Explorer
Sep 15, 2025 10:20 AM UTC
Question

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

[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.

This topic has been closed for replies.

1 reply

GMA
ST Technical Moderator
Sep 15, 2025 1:33 PM UTC

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 'Best answer'.Best regards.GMA