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:

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.

Joerg Vogel avatar image Joerg Vogel commented ·

Attached model version FlexSim 20.1

0 Likes 0 ·

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:

"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.

Joerg Vogel avatar image Joerg Vogel commented ·

How to stack sequence with more racks? Quite simple answer a slot must be assigned before the item enters a rack! Then you must evaluate, where the slot is in your warehouse to send it to the right rack object.

If you want to understand where the source codes are:

  • Source: Trigger Tab> On Creation Trigger > assign a slot
  • Source: Flow Tab > Send to Port Function > get output port number
0 Likes 0 ·
Victoria M2 avatar image Victoria M2 commented ·
It only works if I have one source??
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Victoria M2 commented ·

No, it works with more sources, too. You must enhance the findSlot query to limit or identify the racks that are connected to the source!

0 Likes 0 ·
Victoria M2 avatar image Victoria M2 Joerg Vogel commented ·

What if I use other object to link the source and the rack?

What trigger should I use??

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Victoria M2 commented ·

attached optimized model!

twoRacks_Fill_levels_first.fsm

0 Likes 0 ·
Victoria M2 avatar image Victoria M2 commented ·

Thank you very much!!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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