question

Alex Gf avatar image
0 Likes"
Alex Gf asked Sam Stubbs commented

How i can make my conveyor stop if a queue its empty? Stopping Line concept

I want to stop my main line if i dont have items to transport to the conveyor in a queue of a sub line, I used send message in OnReset at the Queue but it doesn´t works, it just stopped once en then the line didnt stop.

Hope somebody help me!!

Choose One
conveyorassembly linestop line
unnamed-1.png (183.9 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered Sam Stubbs commented

Using some custom triggers on the Queue, and a motor object (that can be stopped with the stopobject command) I think I was able to achieve something along the lines of what you're looking for.

First I created a motor object and connected it to the conveyor. Then I set up a trigger so that whenever an item leaves Queue 1, the queue sends a 0 delay message to itself. When the message arrives it checks to see if the content of the queue is 0, if so, it stops the conveyor motor. Once something enters the queue again, the motor is resumed.

Here's the model:

6021-stopping-line-model-1.fsm


· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.