Threshold returns true when input is above or below a setpoint with configurable deadband.
...
Below are couple examples of how the threshold block works.
Example 1: Setup with actAbove = true (meaning if input is above stpt):
Code Block |
---|
a: in=11 |
...
sp=10 |
...
db=3 |
...
actAbove=true |
...
output=true |
...
b: if in=8 |
...
output=true |
...
c: if in=5 |
...
output=false |
...
***has to go higher than 10 to be true again |
Example 2:
...
Setup with actAbove = false (meaning if input is below stpt)
...
Code Block |
---|
a: in=9 |
...
sp=10 |
...
db=3 |
...
actAbove=false |
...
output=true |
...
b: if in=12 |
...
output=true |
...
c: if in=14 |
...
output=false |
...
***has to be lower than 10 to be true again |