Showing results for 
Search instead for 
Did you mean: 

Creating a Line sensor that controls a machine start/stop


Hello everyone!

I finally created my first production line thanks to all the experts here, but I have a tiny problem ahead.

I want to create a sensor on a line, this sensor shall control the start/stop of a source (producses containers). This is based on:

1. If there is a container blocking the laser of the sensor, then the source shall stop producing containers.

2. If there is no container blocking the sensor's laser, then the source shall start producing containers.


After searching here, i unfortunately haven't found my answer.

Now what is the simtalk code for this to happen?