question

Amit Kulkarni avatar image
0 Likes"
Amit Kulkarni asked Ben Wilson commented

Copy container labels to packed items after separator

In attached model, two pallets go through a combiner and are packed onto another pallet. The contained pallet of the combined pallet is then assigned a slot in the rack system. How do I correctly copy these labels to the packed pallets if they have to go through a separator as shown in the system, so that the individual pallets after the separator go to the location assigned to their container pallet?

Container_Label_to_Packed_Item.fsm

FlexSim 20.2.3
flexsim 20.2.3combiner separatorcopy labels
· 1
5 |100000

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

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Amit Kulkarni, was jason.lightfoot's answer helpful? If so, please click the red "Accept" button on 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.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Joerg Vogel edited

You could put this in the processFinish trigger of the seperator if you alway know there are two pallets in the packed pallet.

createcopy(item.attrs["labels"],item.first.as(Object).attrs["labels"],1,0,0,1);
createcopy(item.attrs["labels"],item.last.as(Object).attrs["labels"],1,0,0,1);



1607383827353.png (8.3 KiB)
· 17
5 |100000

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

Amit Kulkarni avatar image Amit Kulkarni commented ·
Do I remove the subflow after adding this trigger?
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Amit Kulkarni commented ·

Yes - or use that subflow with the logic above and don't put it on the trigger.

0 Likes 0 ·
Amit Kulkarni avatar image Amit Kulkarni Jason Lightfoot ♦ commented ·

Okay, I removed the subflow and put the logic on the separator's processFinish trigger. Separated pallets now have the slot and rack that the container pallet was assigned. So far so good. Now when moving these separated pallets to the rack, how do I currectly reference them? I used current as shown below, but it triggers exceptions.

What am I doing wrong and which part of the manual do I refer to have a better understanding of referencing for situations like this?

Many thanks for the help!

0 Likes 0 ·
1607445802597.png (9.0 KiB)
Show more comments

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.