
Please note:
The "number" entered is a number between 0 and 255 that represents a distance. Some testing/calibrating will need to be done to determine the number that represents the required distance. The KRC has a STATUS function to allow for this type of test. |
The next step starts by dragging the IR sensor icon into the next cell (1,3).
Double Clicking the left mouse button over the IR sensor icon will pop up the window shown below. Here we can specify:
- which IR sensor will be monitored,
- the "number" that represents the distance, and finally
- the cell that the program will continue executing at if the value read by the IR sensor is less than that specified.
In this example we have implemented the following statement:
if (IR1>=128) then next cell down
else move to cell (1,2)
next .... |