question

mary avatar image
0 Likes"
mary asked Andrew O commented

Pallet label

Hi, I have a model where I want to show the pallet status whether it is empty or not by creating label.

once the box is present in pallet it should show full pallet. once box is removed it should show empty pallet status. How can I assign it.

pallet status.fsm


@Felix Möhlmann @Jason Lightfoot

FlexSim 20.0.10
palletstatus
pallet-status.fsm (42.1 KiB)
· 2
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·
For what purpose do you want to use the label? As I see it, if you have access to the label, you must also have access to the object itself, so why not just read the content directly whenever you need it?

Having a label seems unnecessarily complicated. Because I can't think of a general event that would indicate the last item leaving. To update the label you would have to check the content each time an item is removed from the pallet.

0 Likes 0 ·
Andrew O avatar image Andrew O commented ·

Hi @mary, was Jeanette F'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.

0 Likes 0 ·

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F commented

Hello @mary,

You can add a label to the FlowItem. Then in the model you can add triggers that set the value to 1 for Full and 0 for empty at times you know the pallet is being filled and emptied.

1658936495133.png

Another way to access and see if the pallet has contents is

Pallet.subnodes.length

Pallet is the reference to the pallet

subnodes is the array what is contained in the pallet

length returns the length of the array which is also the number of items contained in the pallet


1658936495133.png (100.0 KiB)
· 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.

mary avatar image mary commented ·
Hi @Jeanette F where shall i add the Pallet.subnodes.length in my model
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ mary commented ·

Currently, I would just use the first option of the label because I am not sure what you are wanting accomplish with the information.

The script I gave you was just in case you found that useful.

0 Likes 0 ·
mary avatar image mary Jeanette F ♦♦ commented ·
@Jeanette F Can you send a first option sample model.
0 Likes 0 ·
Show more comments