These formulae are used on the one hand for the analog inputs, on the
other hand for the variable analog output.
The source library comes from a file of library SWAG
(http://webtweakers.com/swag/MATH/0130.PAS.html).
Possible variables
The
analog inputs have variables xP (value sent by the driver of
the
primary channel), xA (value sent by the driver of the auxiliary
channel), and xS (value sent by the driver of the supplementary
channel).
For the variable analog output, a fourth variable is
possible, xT, which is time in seconds of the series of measure. That
allows a signal which varies along the time, for example a square
signal, or a saw-signal, etc
Operations and functions
The usual operators are possible: +, -, *,/, ^, !
Functions available:
sin, cos, tan, cot, acos, asin, atan int, sqrt, abs, log, ln, exp, pi,
Comments after the function
One
can put comments after the function, which can be useful in the files
of configuration to remember why the transformation was made.
Example:
-3.5*xP //this is the comment