question

Nelson C avatar image
0 Likes"
Nelson C asked Nelson C commented

How to set and use different labels in the same processflow?

print1.png

separator-combiner-label.fsm

In the attached model, I have a task sequence in the process flow. The idea is simple: an operator loads and unloads itens between the 3D processes (Combiner and Separator). Half of the logic is working properly, but I have an issue in the highlighted circle (attached picture). I want to use a conditional decide, so if I have a pallet in the "Package_Queue" the operator loads it and unloads it in "Queue3", but I don't know how to set a new label for this item (pallet).

Currently, I have 2 labels in the model:
P1: The first label assigned when the item enters
P2: The second label assigned when the combiner process is finished
And I assume I'll need a third one to the pallet in the "Package_Queue".

Thanks.

FlexSim 19.0.0
combinerlabelsseparatorlabel assignmentassign labels
print1.png (114.9 KiB)
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

·
Jeff Nordgren avatar image
2 Likes"
Jeff Nordgren answered Nelson C commented

@Nelson C,

Attached is your model with the change(s) that I've made.

Really about the only thing I added was an Assign Labels PF block in front of the Load_Package_Queue PF block. Changed a couple of references in blocks after that and that's about it.

Take a look at the model and see if it is now doing what you are wanting it to do. If you have any problems or questions, please let us know.

Thanks.

separator-combiner-label-jn1.fsm


· 3
5 |100000

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

Nelson C avatar image Nelson C commented ·

Hey @Jeff Nordgren, this was exactly what I needed. Thanks very much. But I still have a question about this part "Model.find("Package_Queue").first" in the value field. What the "first" stands for? Is the "first" responsible for assigning the label on the item?

Thanks for your time!

0 Likes 0 ·
Benjamin W2 avatar image Benjamin W2 Nelson C commented ·

Hi @Nelson C, first refers to the first subnode within the object. You can read about it by selecting Help -> Flexscript API Reference -> treenode.

https://docs.flexsim.com/en/19.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Property-first

2 Likes 2 ·
Nelson C avatar image Nelson C Benjamin W2 commented ·

Thanks, @Benjamin W2! I will read more about it.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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