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.

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

  1. 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.