Hello,
David Lincoln, author of book "Programming and customizing Picaxe" (second edition) describes how work PWM command.
Page 161, a program for controlling motor speed and direction use a formula for determinate duty cycle in relation with the value of potentiometer. I would understand...