Hello Walter
I like select case for this sort of thing it can be faster with less code in flash and is easy to add more tests to but it works a bit backwards you also add one to your reading so at the setting its going to be true.
[code:1:c962d55b33]
select case Pressure5
case is >Maxpress 'you can set a fail safe
case is > Phigh
case is > Plow
case else 'here it will be below Plow
end select
[/code:1:c962d55b33]
Regards Paul
↧