question

j08j avatar image
0 Likes"
j08j asked Joerg Vogel edited

How can I assigned product into slot?

I want to put products into the slot in order, but now all products will be placed in the first slot. How can I fixed my code?


input_and_output.fsm

FlexSim 24.0.2
flexscriptcodeassignedslot
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 Joerg Vogel edited

If you only want to put items in empty slots add this expression to the 'continue' condition of your racks slot assignment strategy:

  1. slot.slotItems.length>0

to give

  1. if (slot.slotItems.length>0 || !slot.isStorable || (mustHaveSpace && !slot.hasSpace(item)))
  2. continue;

input-and-output_jl.fsm


· 7
5 |100000

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