question

swa12 avatar image
0 Likes"
swa12 asked Jason Lightfoot edited

error in code

@Joerg Vogel Greetings, I am trying to store two pallets per bay according to my model, use this code that is assigned to the floor warehouse, I got an error, the code must respect the maximum floor storage per bay, it can only store one and it must have two pallets, maximum one on top of it. other

Code


Dll.fsm

Storage.Object current = ownerobject(c);

Object item = param(1);

Storage.Item storageItem = Storage.Item(item);

/***popup:SlotByCondition*/

/**First Slot with Space*/

storageItem.assignedSlot = Storage.system.findSlot("WHERE slot.slotItems.length < 2 ");


FlexSim 23.2.2
codefloor storageslot assignmentpallet stacking
· 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.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered swa12 edited

Your slots (1.08x1.23) are not big enough for the pallets (1.25x1.25) and your port choice is fixed - it doesn't respect if a slot can be assigned.

· 5
5 |100000

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