question

Victoria M2 avatar image
0 Likes"
Victoria M2 asked Victoria M2 commented

How to stack sequence in a rack by level with more than one rack?

I have found this code below which stacks by level:

  1. Storage.system.findSlot("WHERE slot.slotItems.length < 1 ORDER BY slot.levelID ASC")

I can't get it to work if I have more than one rack in the model!

Can anyone help me?


twoRacks.fsm

FlexSim 20.0.3
rackflexsim 20.0.3sequence
tworacks.fsm (41.5 KiB)
· 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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Victoria M2 commented

I deactivate pull option in rack objects. I assign slots in On Creation Trigger of one source and deleted the second one. Now the Send to Port function gets executed the item has already got a slot assigned. I need to get the ouput object of the rack connected to the source to divert the item to the right rack where the slot is assigned to.

fill_rack_system_by_level.fsm

The ORDER BY clause defines now how the levels, bays and slots gets items into the rack:

Alternating rack, bay, slot starting with first level:

  1. "WHERE slot.slotItems.length < 1 ORDER BY slot.levelID, slot.bayID, slot.slotID ASC " 



· 6
5 |100000

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