User Manual

MCP Series
Brushed DC Motor Controllers
MCP Series User Manual
6
MOTORENCPIN (2) ......................................................................................120
MOTORBUFFER (2) ......................................................................................120
STREAMTYPE (4) ........................................................................................120
STREAMRATE (4) ........................................................................................120
STREAMTIMEOUT (4) ..................................................................................121
STREAMTICK (4) .........................................................................................121
STREAMISBUSY (4) .....................................................................................121
STREAMCOUNT (4) .....................................................................................121
SIGNALACTIVE (32) ....................................................................................121
SIGNALTYPE (32) ........................................................................................122
SIGNALTARGET (32) ....................................................................................122
SIGNALLOWPASS (32) .................................................................................122
SIGNALTIMEOUT (32) ..................................................................................122
SIGNALTICK (32) ........................................................................................122
SIGNALMINACTION (32) ..............................................................................123
SIGNALMAXACTION (32) .............................................................................123
SIGNALLOADHOME (32) ..............................................................................123
SIGNALMIN (32) .........................................................................................124
SIGNALMAX (32) ........................................................................................124
SIGNALCENTER (32) ...................................................................................124
SIGNALDEADBAND (32) ..............................................................................124
SIGNALPOWEREXP (32) ...............................................................................124
SIGNALPOWERMIN (32) ...............................................................................125
SIGNALMODE (32) ......................................................................................125
SIGNALMINOUT (32) ...................................................................................125
SIGNALMAXOUT (32) ..................................................................................125
SIGNALPOSITION (32) ................................................................................126
SIGNALPERCENT (32) ..................................................................................126
SIGNALSPEED (32) .....................................................................................126
SIGNALSPEEDS (32) ...................................................................................126
SIGNALCOMMAND (32) ................................................................................126
3.2 MCL Math .................................................................................................. 127
3.2.1 Math Functions ...................................................................................127
3.2.2 Number Bases ....................................................................................127
3.2.3 Math and Operators ............................................................................127
3.2.4 Operators ..........................................................................................127
3.2.5 Operator Precedence ...........................................................................129
3.2.6 Precedence Table ................................................................................129
- (Negative) ...............................................................................................129
ABS ..........................................................................................................130
SIN, COS ...................................................................................................130
SQR (Square Root) .....................................................................................131
BIN2BCD ...................................................................................................132
RANDOM ...................................................................................................132
Subtraction (-) ...........................................................................................133
Addition (+) ...............................................................................................133
Multiplication (*) ........................................................................................133
Division (/) ................................................................................................133
High Multiplication (**) ...............................................................................134
Fractional Multiplication (*/) .........................................................................134
Mod (//) ....................................................................................................135
MAX ..........................................................................................................135
MIN ..........................................................................................................135