Detecting if a weigh scale is stabilized or not with RTES
|
Variables |
Analog Input : WEIGHT Registers : R0017 W0 R0028 STABLE R0029 WEIGHTSX R0030 WEIGHTS |
|
Rules |
RULE STABLE=((W0=W1)&(W1=W2)&(W2=W3))d3 |
|
Notes |
This example uses the SHIFT function. Whenever the expression associated with SHIFT changes from false to true, the registers referenced by the next two registers are shifted one position down. Registers W0 through W3 must be consecutive. The delays (0.5 seconds+0.5 second) add up to a one second sampling period. When all 4 values are identical, and the situation is continuously maintained for 3 seconds, STABLE becomes true. In case the scale cannot come to full immobility within the resolution of its output, you could make the rule for STABLE more complex to include a range for each comparison. |