For example I draw PhotoEye on my conveyor1 and a box is covered PE1 then I want to send my box to other conveyor lines by getting a parameter and replacing agv's port number. I dont how to do it.
For example I draw PhotoEye on my conveyor1 and a box is covered PE1 then I want to send my box to other conveyor lines by getting a parameter and replacing agv's port number. I dont how to do it.
Hi @Sam, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
This is quite a broad question, as there are many different possible solutions to situations like this.
In the attached model I added a pointer label to the queue that refers to the Photo Eye. In the Send to Port option the queue checks the current status of the Photo Eye. If it is not "blocked", the item is send to port 1, otherwise to port 2.
Instead of the pointer label, you could use a centerport connection between the two objects to get a reference to each other.
Or you could use a global variable that gets set by the Photo Eye and read by the queue.
You could also use the "Model.find()" command to get a reference to an object in the model , though if you access it often, it's usually better to store it somewhere instead of having to search for the object each time.
There's probably even more ways but which is "best" always depends on the given situation (which object accesses which other object and how often) as well as personal preference.
A pointer label has advantages over centerports in that the centerport connection number can change if you then add and remove other connections. The centerport reference by number also doesn't make it obvious what is the intent of an expression, whereas a well named pointer label makes it clear which relation you are trying to reference. This improves code/expression understanding and maintenance.
The pointer label also has advantage over find() in that it will still work if you decide to rename the object.
Lastly - note that if you copy/paste groups of objects that refer to each other the pointer references correctly update to the new group of objects. (centerports also do this)
14 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