Calculator

Free-format calculations

Simple to use

Powerful

The calculator adds all the commonly used mathematical functions including trigonometric functions, logical and relational operators. A simple text file is used to configure the calculations which are to be performed at the end of every scan. A compiler then translates the text into highly efficient code which is executed at run time. Comprehensive error messages are generated to assist in developing and debugging complex calculations.

Capability
* / + - (mathematical)
! & | ^ (logical)
> < >= <= != == (relational)
LAND LOR LNOT (boolean)
sqrt(), deg(), rad()
sin(), cos(), tan(), log, exp()
hour(), min(), sec()
wday(), yday()
counter(), timer(), mean()
Reads and writes database point values and descriptors

Example:

IF OIL_BATH>65
 
 
setvalue(CHILLER, ON)
ENDIF