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!!
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!!
the Reset Trigger is only fired once you press the reset button. If you want to send your Messages more often, you will have to add some Code in another trigger.
Could you please share your model or create a small example model?
Thanks sebastian, here is the model.
As sebastian pointed out, it's hard to know without the context of a model. But if you want a conveyor to stop, when it's empty you'll want to use a different trigger than OnReset. Again, as Sebastian pointed out, OnReset only fires when you reset the model. If you want the conveyor to stop when a certain queue is empty. You could use the OnExit trigger in the queue, and make sure your logic checks the condition if the content of "current" (the queue) is 0.
Hi Samm here is the model, Im a little bit confused by the logic i have to use... but the main idea it´s if the queue1 its empty, the conveyor 1 has to stop until the queue 1 get items.
btw, could you help me? I recently add the second task executer with the option by different case, because of that I also made the source release a batch of items with different itemtype... is there other way to do that?
Thanks!!
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:
Sam, your description says that you check Queue1 in the OnMessage trigger to see if it is empty. But looking at your model, you don't do that check. Attached is your model with that check included. I hope this is what you intended.
Thanks @Jeff Nordgren. Accidentally posted the wrong one. Good catch!
10 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved