Sutron Corporation X-Link Operations & Maintenance Manual, Rev 1.63 5/24/2016 pg. 76
PULSE12(CONDUC=1, 100) If measurement CONDUC is equal to 1, then DOUT
will activate for 100 ms. If it is not, nothing will happen.
PULSE12(1, 500) Always pulses the DOUT line for 500ms
PULSE12 will compute to 1 if DOUT was turned on; it will compute to 0
otherwise.
MINDAY will resolve to the number of minutes into the day.
Equations can also contain references to other sensors: e.g.
(X + AirTemp)/2
would add X to the AirTemp value and divide by 2. You may also use the M1,
M2.. designators instead of measurement labels: e.g. (X+M4)/2 would add X to
the result of measurement four and divide it all by two.
Use Prev1, Prev2, Prev3.. to access the previously made reading by
measurement 1, measurement 2, measurement 3...
Use DeltaT1, DeltaT2, Delta T3.. to access the amount of time in seconds
between the most recent and the previous measurements.
12:00:00 Measurement M1 has made a reading of 1.0
At this point, we do not have enough data to compute Prev1 or DeltaT1
12:05:00 Measurement M1 has made a reading of 2.0
At this point, M1 = 2.0, Prev1 = 1.0, DeltaT1 = 300
12:15:00 Measurement M1 has made a reading of 3.0
At this point, M1 = 3.0, Prev1 = 2.0, DeltaT1 = 300
Please see the Rate of Change section on page 112 for more on Prev and DeltaT.
Comments can be contained within braces { }
{convert from Celsius to Fahrenheit} X*9/5+32
Other examples:
SIN(X)+COS(X)+X^3+LOG(X)
(X>1000)*1000 + (X<=1000)*X {would limit the value so that it could never be
greater than 1000}
STEINHART(10000*X/(2.5-X),0.001127098,0.000234445,0.0000000865403)
{temperature sensor}