I have one main conveyor (which consist of a few sections) and some perpendicular side conveyors connecting to the main conveyor. There are manipulators which carry product from side conveyor to the main conveyor. When product apeears at the end of side conveyor, sensor check if product on main conveyor (it has higher priority) is closer than 1 meter. If not – manipulator take product and carry it to next section of the main conveyor. If distance is shorter than 1 meter, manipulator waits.
I use advanced conveyor which has sensors I put sensor one meter befor its outskirts with code:
Code: Select all
do(
if(Status(AtomByName([manipulator1], Model))=2,closeoutput(c)),
closeinput(atombyname([manipulator1],Model))
)
Code: Select all
closeinput(atombyname([manipulator1],Model))
with expression:
Code: Select all
status(atombyname([robot1],Model))=1
Code: Select all
openoutput(atombyname([mainconveyor1],Model))
I am not sure if it's good solution. Can you give me some advice, another solution how to solve my problem?