lifo.fsmi bult a model, i write some code in the pull requirement of rack outobject:
but i found that the flowitem output sequence is 2,8,25, from small to big, not the 25,8,2,why this happen?would you please help me ?thanks.
lifo.fsmi bult a model, i write some code in the pull requirement of rack outobject:
but i found that the flowitem output sequence is 2,8,25, from small to big, not the 25,8,2,why this happen?would you please help me ?thanks.
The Pull Requirement tests the items in the object in order of entering. If you want to pull an item that got later to the object you mustn’t test in the Pull Requirement items that were earlier in the object.
You can put a print command into the function that prints the rank of the tested item to the output console. You will see that the function will be called several times until the return value becomes true.
You want to pull an item with a high rank, you must be absolutely sure the item is actually in the object. In such a scenario you don’t let the Pull Requirement tests several ranks. You test only one rank! Then you can compare this single rank with the currently tested item rank. If the rank of the tested item and the variable value match, you return a logical true as 1.
You will often find that the comparison statement is directly behind the return command. Because if the comparison doesn’t match the result is 0 or logical false, then the Pull Requirement is called again to test next item with a higher rank.
If the comparison condition gets true, you must erase the value of the rank from the sequence of items to pull. This means you cannot put the comparison directly behind the return command you must use the comparison as a condition in a if-structure to erase first the value of the sequence to test next and then you are allowed to return 1 to get the item pulled.
9 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