Took me a while to find it!
First you might find the attached manual helpful if you don't have it. It allow you to change the start and stop speeds and other parameters. Also shows the error codes.
Here is my schematic:
View attachment 407872
This replaces the foot pedal speed control that I assume your motor came with? If not, it plugs into the back of the controller. The pin inputs are also shown on the attached manual.
My circuit is basically just a voltage divider circuit but the resistances were carefully selected by trial and error. The power switch on the controller is still used as a master power switch. That switch also turns on my work light. The run/stop switch is added. For my application I used the factory switch on my drill press. The speed control is a 1K potentiometer with the signal to the controller coming off the center tap. I mounted this in the controller box for convenience.
You may note that the motor starts when the input voltage is around 2.4volts and hits max at 4.2 volts (delta voltage 1.8v.) The response is non-linear so I had to buy a reverse audio taper pot for optimum performance. I am assuming all of these controllers are very similar if not identical. I would mock it up on a breadboard first and make sure it works for your controller.
View attachment 407873