question

Yang H2 avatar image
0 Likes"
Yang H2 asked Yang H2 commented

How do I read the label or type information of the goods in the container?

The box can get information directly on the conveyor belt by

getlabelnum (item, "Type") or item.Type == 1,

but if the goods cannot be read in the container, how can I solve it? If the goods are composed of multiple synthesizers, how can the two-layer packaging container read the label and type information? Thank you!

实验.fsm

FlexSim 18.2.3
label
实验.fsm (39.2 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

Braydn T avatar image
1 Like"
Braydn T answered Yang H2 commented

@Yang H2

The box has the label Type, not the pallet. To access the items in the pallet you can use ".subnodes". which will return an array of the items packed on the pallet. Once you have a reference to the box, you can reference the label on it.

· 4
5 |100000

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

Yang H2 avatar image Yang H2 commented ·

Thank you very much. I did the same according to your method. Single-layer packaging can be achieved, but when there are two layers of trays, "subnodes [2]" cannot be used to read the label information. What should I do?实验-1.fsm

0 Likes 0 ·
实验-1.fsm (43.8 KiB)
Shubham C2 avatar image Shubham C2 Yang H2 commented ·

Not sure what you mean to ask :
But try this : subnodes[1].subnodes[1]

1 Like 1 ·
Braydn T avatar image Braydn T Shubham C2 commented ·

This is correct. You can see if an item has subnodes by right clicking on the flow item and then clicking explore tree.

0 Likes 0 ·
Show more comments