User Manual
MCP Series
Brushed DC Motor Controllers
MCP Series User Manual
174
POWER2
Syntax
power2 duty1,accel1,duty2,accel2
• Duty1...Duty2 - is a variable, constant or expression that sets the duty to run the motor at.
• Accel1...Accel2 - is a variable, constant or expression that sets the acceleration/decceleration
to use when the motor powers up/down to the specied power.
Description
The POWER2 command is used to control both motors using just PWM duty cycle percentages.
This is the simplest method of controlling a DC motor but does not compensate for changes in
the load on the motors.
;Simple PWM control of motor
main
power2 32767,32767,0,32676er(100% duty)
pause 1000
power2 0,32767,32767,32767
pause 1000
goto main