Presenter's guideline - WS0 : From simulation to Real world

Step 4: Create Your First Program in Simulation

Add Conveyor Logic

We want the conveyor to run until the object enters the conveyor workspace.

  1. Add a Run Conveyor block. Put the speed to 50%.
    Since you are using the conveyor, add a use conveyor block at the top of your program to ensure the robot detects the conveyor.

  2. Add the logic for the IR sensor:

    • Reminder: the IR sensor is plugged into DI5.

      • DI5 = HIGH (True) → no object detected

      • DI5 = LOW (False) → object detected

  3. Add:

    • While Get DI5 → do nothing (wait).

After the While, stopping condition is reached → stop the conveyor.