Call:      DistanceShorter (String Tag, int shorter ) 

Input:    Tagname, Lower value 

Output: boolean 

 

The value for the selected ultrasonic, associated with the Tagname is checked on the lower value. So when the measured distance is shorter than the set point, the function result is true when called in the cycle.

 

Example: 

Status = DistanceShorter("BIRD1”,Collapse);