User Manual

MCP Series
Brushed DC Motor Controllers
MCP Series User Manual
113
SYSMAXLBAT
Variable can be use to read or set the maximum logic battery voltage limit. Values are in 10ths
of a volt.
SYSMAXLBAT = 120 ;tenths of a volt
main
puts 0,[hex4 SYSSTATUS\4,13] ;watch status for an error
pause 100
goto main
DOUTACTION(8)
Variable array is used to set or read the DOUT pins action setting.
Actions
Motor1 is active 0x01
Motor2 is active 0x02
Either motor is active 0x03
Motor1 is reversed 0x04
Motor2 is reversed 0x05
Either motor is reversed 0x06
Overvoltage 0x07
Overtemperature 0x08
Stat1 LED 0x09
Stat2 LED 0x0A
Err LED 0x0B
;Output Error Status on an external LEDs/Lamps
DOUTACTION(0) = 0x0B ;wire DOUT1 to an external LED/Lamp
DOUTACTION(1) = 0x07 ;wire DOUT2 to an external load dump circuit
DOUT(8)
Variable array is used to set or read the output state of a DOUT pin.
;Blink an external LED
main
DOUT(0) = 1 ;wire DOUT1 to an external LED/Lamp
pause 100
DOUT(0) = 0 ;wire DOUT1 to an external LED/Lamp
pause 100
goto main