User Manual

MCP Series
Brushed DC Motor Controllers
MCP Series User Manual
142
NOT
The NOT operator is a logic operator that inverts a condition. When used, true becomes false and
false becomes true. The truth table demonstrates all combinations:
Condition Result
True False
False True
The NOT operator is used in decision making commands such as IF..THEN, DO..WHILE and so on.
Example of the NOT operator:
if hour = 5 then Quit_Time
if NOT hour < 5 then Over_Time
If hour is not equal to 5 the rst conditional statement will skip Quit_Time. In the second
conditional statement if hour is not less than 5 it jumps to the label Over_Time since the
NOT operator inverted the result of the condition. The IF..THEN only jumps to the label if the
statement is true.
Floating Point Operators
Operator Description
TOINT Convert a Floating Point value to a Integer
TOFLOAT Convert an Integer value to a Floating Point
FSQRT Floating Point Square Root
FSIN Floating Point Sine
FCOS Floating Point Cosine
FTAN Floating Point Tangent
FASIN Floating Point ArcSine
FACOS Floating Point ArcCosine
FATAN Floating Point Arc Tangent
FSINH Floating Point Hyperbolic Sine
FCOSH Floating Point Hyperbolic Cosine
FTANH Floating Point Hyperbolic Tangent
FATANH Floating Point Hyperbolic ArcTangent
FLN Floating Point Natural Log
FEXP Floating Point Exponent