I want to stop an item in a conveyor at a decision point. I used the stop and delay option, but it is time-based. I want to resume until the decision point receives a message. What is the right code? Anybody?
I want to stop an item in a conveyor at a decision point. I used the stop and delay option, but it is time-based. I want to resume until the decision point receives a message. What is the right code? Anybody?
Instead of using "Stop and Delay" you can just use the "Stop Item" from the same pick list. You can then use the Resume Item option to send the item on its way again. Note that you need a reference to the item for this, so you should pass it in via a message parameter or store it on a label in the trigger where you stop the item.
thank you @Mischa Spelt. This is most useful, what code line do you use to store the item reference in the label trigger. Upon receiving the message, i'll use the information in this label.
I believe what @Mischa Spelt is referring to, is that in the same trigger that you are stopping the item, you could create a label on that object (queue, processor or whatever) so that when you go to release this item, its reference will be in that label on that object. The code would be something like this:
current.ItemRef = item;
Where "ItemRef" is the "Pointer Label" that "item" is stored in.
Sorry for reply to this very ancient answer. But since this answer triggered my further question, so please bear with me:
I understand how to stop the item based on a label. For example what I did is to add a Photo Eye to check if the front conveyor is blocked. If it is blocked, then I set a label for that PE. When it is free, I set the same label to another value. The decision point will base on this label value to stop item (on arrival). However, I am struggling with that once the item is stopped. Because stopping the item was triggered by item's arrival, I can't just use "on arrival" to trigger the DP to read the label once again at the PE. Could you please point out a solution for me?
Kind regards,
Sicong
It would be best to start a new question and reference this post in the new post. You can tag users like Mischa when referencing this post. I also reccomend you post a model and Please check out our best practices.
8 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