Function Blocks 
MATH Function Block 
190    HC900 Hybrid Control Designer Function Block Reference Guide  Revision 11 
  2/07 
 
ATTENTION 
A token is an operation, variable, or pair of parenthesis; the end of an equation counts as one 
token. 
 
Inputs 
IN A
 – block input 1 
IN B – block input 2 
IN C – block input 3 
IN D – block input 4 
IN E – block input 5 
IN F – block input 6 
IN G – block input 7 
IN H – block input 8 
Output 
ERR
 = ON if block detects an error on any of the following operations: 
•   division by 0 
•   fractional root of a negative number (for example: -2**0.5) 
•   zero to the zero power 
•   LOG10 or LN of a negative number or 0 
•   result of x^y is greater than 1.7E + 308. 
•   result of EXP (x) is greater than 3.4E + 308 or less than 3.4E -308. 
 
 
ATTENTION 
•  For the above rules, groups of constants will be combined and treated as one constant. 
•  Any number less than or equal to 3.4E -308 is considered 0. 
 
OUT = Calculated Output 
 
 
ATTENTION 
•  Use only the following words and characters in equations 
−  +; -; *; /: ^;  EXP; LOG10; Ln; Negative (Unary minus); 
−  '  '   Blank space (ignored) 
−  'a' . . 'h'   Variables (operand) either a constant or tag 
−  ( ), [ ], { }  Parentheses - 3 types 
•  A left parenthesis must have a matching right parenthesis. 
•  The matching parenthesis must be the same type - e.g., ( ), [ ], or { }. 
•  Parentheses may be nested to any depth. 
•  Infix operators: +, -, *, /, ^ must have a left and right operand. 
•  If the '-' operator only has a right operand, it is interpreted as the Unary minus.