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):
in=11
sp=10
db=3
actAbove=true
output=true
if in=8
output=true
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):
in=9
sp=10
db=3
actAbove=false
output=true
if in=12
output=true
if in=14
output=false
has to be lower than 10 to be true again