Skip to main content
Associate
July 2, 2026
Solved

Removing the speed potentiometer functionality from STEVAL-PTOOL1V1_6S_HL example

  • July 2, 2026
  • 1 reply
  • 24 views

I have been developing an application based on the STEVAL-PTOOL1V1_6S_HL. I have managed to successfully get the motor up and running to the expected RPM using the speed potentiometer functionality. 

I am now developing my own custom hardware using the STSPIN32F0B and I will not be using the speed potentiometer to control the speed of the motor. Instead my intention is to use the commands such as:

MC_ProgramSpeedRampMotor1(2000, 1000);

MC_StartMotor1();

To set the motor speed and start the motor.

I am unsure of how to go about removing the speed potentiometer functionality from the generated code In MC Workbench (V6.4.2) after loading in the STEVAL-PTOOL1V1_6S_HL.ioc the Potentiometer option visible can’t be changed 

Best answer by ADAVE.1

Hi ​@JStamwood 

the easiest way to remove the potentiometer feature is the following:

before loading the IOC file into the Workbench, open it with a text editor. Scroll and find the line “MotorControl.M1_POTENTIOMETER_ENABLE”, change its value to “false”.

Save it and load it into the Workbench. At this time, you won’t be see the potentiometer flag anymore and the code will be generated with the standard API only.

Alessio

 

1 reply

ADAVE.1
ADAVE.1Best answer
ST Employee
July 3, 2026

Hi ​@JStamwood 

the easiest way to remove the potentiometer feature is the following:

before loading the IOC file into the Workbench, open it with a text editor. Scroll and find the line “MotorControl.M1_POTENTIOMETER_ENABLE”, change its value to “false”.

Save it and load it into the Workbench. At this time, you won’t be see the potentiometer flag anymore and the code will be generated with the standard API only.

Alessio