User Manual

MCP Series
Brushed DC Motor Controllers
MCP Series User Manual
117
MOTORPOSKD (2)
Variable array holds the position Kd setting for both motor channels.
;initialize motor Kd setting in script
MOTORPOSKD(0) = TOINT(40000.0*2048.0)
main
goto main
MOTORPOSMAX (2)
Variable array holds the position Max setting for both motor channels.
;initialize motor maximum position
MOTORPOSMAX(0) = 10000
main
goto main
MOTORPOSMIN (2)
Variable array holds the position Min setting for both motor channels.
;initialize motor minimum position
MOTORPOSMIN(0) = 10000
main
goto main
MOTORPOSDEADZONE (2)
Variable array holds the position Deadzone setting for both motor channels.
;initialize motor deadzone
MOTORDEADZONE(0) = 10
main
goto main
MOTORTARGETPOS (2)
Variable array holds the target Position for both motor channels. This is the current position to
move to.
main
puts 0,[“Motor1 Target Position:”,sdec MOTORTARGETPOS(0),13]
pause 100
goto main
MOTORACCEL (2)
Variable array holds the current acceleeration setting for both motor channels.
main
puts 0,[“Motor1 Acceleration Setting:”,dec MOTORACCEL(0),13]
pause 100
goto main