User Manual

MCP Series
Brushed DC Motor Controllers
MCP Series User Manual
112
SYSTEMP2
Variable holds the boards secondary temperature in 10ths of a degree increments. Only MCP21xx
support this feature. There is two temperature sensors one for each channel.
SYSMBAT
variable hols the main battery voltage reading in 10ths of a volt.
main
puts 0,[real TOFLOAT SYSMBAT/10.0\2,13]
pause 100
goto main
SYSLBAT
Variable to read the logic battery voltage in 10ths of a volt. If the logic battery input is not being
used the reading may oat but will usually read as 0v. To prevent the Logic battery input from
oating the user can ground the Logic Battery input.
main
puts 0,[real TOFLOAT SYSLBAT/10.0\2,13]
pause 100
goto main
SYSMINMBAT
Variable to read or set the minimum main battery voltage limit. Values are in 10ths of a volt.
SYSMINMBAT = 120 ;tenths of a volt
main
puts 0,[hex4 SYSSTATUS\4,13] ;watch status for an error
pause 100
goto main
SYSMAXMBAT
Variable can be use to read or set the maximum main battery voltage limit. Values are in 10ths
of a volt.
SYSMAXMBAT = 200 ;tenths of a volt
main
puts 0,[hex4 SYSSTATUS\4,13] ;watch status for a warning
pause 100
goto main
SYSMINLBAT
Variable can be use to read or set the minimum logic battery voltage limit. Values are in 10ths of
a volt.
SYSMINLBAT = 120 ;tenths of a volt
main
puts 0,[hex4 SYSSTATUS\4,13] ;watch status for an error
pause 100
goto main