Call: DistanceBetween (String Tag, int low, int High )
Input: Tagname, Lower value, Higher Value
Output: boolean
The value for the selected ultrasonic, associated with the Tagname is checked on the lower and higher value. So when the measured distance is between or equal to one of the two values, the function result is true when called in the cycle.
Example:
Status = DistanceBetween(“BIRD1”,10,100);