question

Josué Islas avatar image
0 Likes"
Josué Islas asked Josué Islas commented

Configuración de cantidad de canastillas por nivel en un pallet

¿Como puedo configurar que en un pallet pueda colocar 5 canastillas por nivel? Pregunto ya que por default me esta colocando 4 canastillas por nivel.

FlexSim 23.2.0
paletización
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 Josué Islas commented

Hello @Josué Islas,

You can create a custom packing method for your pallet.

1691805784161.png


1691805784161.png (237.4 KiB)
· 3
5 |100000

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

Josué Islas avatar image Josué Islas commented ·

Thanks Jeanette!, but how should I program the code to accommodate 5 boxes per level on the pallet? I show you drawing.acomodo-cajas-en-tarima.pngcodificacion-pallet.png

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Josué Islas commented ·

Hello @Josué Islas,

Since you will have consistency for this pallet packing you can have the code check the number of items in the pallet and then return what position and z the item needs to be. That position then decides the location and rotation that needs to be set.

Object item = i;
Object current = c;
Object lastitem = item.prev;
/**Custom 5 per layer/


int index = current.subnodes.length;
int position = Math.fmod(index, 5);
int level = Math.floor((index-1)/5);
double z = current.size.z + level*item.size.z;

// Check to see if the flowitem is the first one in
if (position == 1) {
item.setLocation(0, 0, z);
return 0;
}

if (position == 2) {
item.setLocation(item.size.x, 0, z);
return 0;
}

if (position == 3) {
item.setLocation(2*item.size.x, 0, z);
return 0;
}

if (position == 4) {
item.setLocation(0, -item.size.y, z);
item.setRotation(0,0,90);
return 0;
}

if (position == 0) {
item.setLocation(item.size.x, -item.size.y, z);
item.setRotation(0,0,90);
return 0;
}

Custom Packing Method 5 per layer.fsm

2 Likes 2 ·
Josué Islas avatar image Josué Islas commented ·

Thanks you so much! :)

0 Likes 0 ·