question

Gabri avatar image
0 Likes"
Gabri asked Gabri commented

Set pallet capacity

Hi,

I have 2 queue, one with pallets and one with boxes. The queue with pallets is connected to a processor. Using a process flow I move the boxes on the pallet in the processor, how can I set a value and move for example 30 boxes?

Thank you in advance for the reply

FlexSim 22.0.16
pallet
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

Iago MF avatar image
0 Likes"
Iago MF answered Gabri commented

Hi Gabri,

You can know how many items are inside the pallet with this code, assuming you have a reference to the pallet on a token label named "pallet":

token.pallet.subnodes.length;

So, you can use a decide activity or a condition in a script to stop moving items into the pallet:

if(token.pallet.subnodes.length < 30)
{
   //move item to pallet code
}
else
{
   //full pallet
}

Moreover, you could set before a label on the pallet with the max. capacity. Then, you will be able to read that label in the conditional. For example:

if(token.pallet.subnodes.length < token.pallet.maxCapacity)
{    //move item to pallet code } else {    //full pallet }
· 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.

Gabri avatar image Gabri commented ·
Thank you
0 Likes 0 ·