Call: DistanceLonger (String Tag, int longer )
Input: Tagname, Lower value
The value for the selected ultrasonic, associated with the Tagname is checked on the longer value. So when the measured distance is longer than the setpoint, the function result is true when called in the cycle.
Status = DistanceLonger("BIRD1”,OutOfRange);