User Manual
MCP Series 
Brushed DC Motor Controllers
MCP Series User Manual
116
MOTORVELQPPS (2)
Variable array holds the QPPS setting for both motor channels.
;initialize motor QPPS setting in script
MOTORVELQPPS(0) = 180000
main
  goto main
MOTORTARGETSPEED (2)
Variable array holds the target Speed setting for both motor channels. This is the speed the 
motor is accelerating/deccelerating to reach.
main
  puts 0,[“Motor1 target speed:”,dec MOTORTARGETSPEED(0),13]
  pause 100
  goto main
MOTORDISTANCE (2)
Variable array holds the remaining distance for both motor channels.
main
  puts 0,[“Motor1 distance:”,dec MOTORDISTANCE(0),13]
  pause 100
  goto main
MOTORPOSKP (2)
Variable array holds the position Kp setting for both motor channels.
;initialize motor Kp setting in script
MOTORPOSKP(0) = TOINT(4000.0*2048.0) 
main
  goto main
MOTORPOSKI (2)
Variable array holds the position Ki setting for both motor channels.
;initialize motor Ki setting in script
MOTORPOSKI(0) = TOINT(0.0*2048.0) 
main
  goto main
MOTORPOSKIMAX (2)
Variable array holds the position KiMax setting for both motor channels.
;initialize motor KiMax setting in script
MOTORPOSKIMAX(0) = 100
main
  goto main










