question

MarianCretu avatar image
0 Likes"
MarianCretu asked Joerg Vogel answered

Load in rack by type

load-by-type.fsm

Hello all,

I have a source that creates 2 type of boxes.

How is it possible to load the rack in this way :

- type 1 - load as far in the right side of the rack

- type 2 - load as close in the left side of the rack

Thank you.

Regards,

FlexSim 19.1.1
load in rack
load-by-type.fsm (22.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 ·

Please consider to insert 2 rack objects. Choose for both racks Place in first available Bay and Place in first available Level. You rotate the second rack by 180 degrees. The Object previous to the rack sends the items by expression. The items of type 1 goes to the first connected rack, the others to the second rack.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

you can query a global table of rack cells to identify an empty cell. You order the query ascendingly or descendingly to get a cell with a low or high number. A table row consists of the cell number, the bay of the cell and the level, and a column to identify the content.

Because the function Place in Bay is executed first, you query the table there. Then you add a label at the item to store the found cell number. And you change the content column value of the row.

The Place in Level function evaluates the global table by the stored item label to return the right level.

When an item is leaving the rack you set the content column value back to be empty again.

choose-rackcell-by-table-query-asc-desc.fsm


5 |100000

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