question

Richmond B avatar image
1 Like"
Richmond B asked Joerg Vogel answered

Stocking and retrieving

I am simulating a rack with asrs vehicle, i want a custom code to change the slot assignment strategy to store and retrieve flowitems from slots with specific address

1. The user should stock first and retrieve from specific slots with address

2. Load the whole storage rack and retrieve from specific slots.

Tanks in advance

FlexSim 19.2.2
storage system
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
0 Likes"
Joerg Vogel answered Joerg Vogel edited

Place a rack object into the model

Open Storage System the Toolbox. I have set an Adress Scheme with a letter for bay, a number for level and another number for the slot. Example A-1-1

Important you must set the scheme explicitly on the Objects tab for the rack that should work with this scheme.

Rack properties window Slot Assignment Strategy:

source code

Storage.Object current = ownerobject(c);// default header
Object item = param(1);// default header
Storage.Item itemStorage = Storage.Item(item);// insert item reference into storage system
Storage.Slot slotRack = current.getSlot("A",3,1);// get a slot by the adress scheme
itemStorage.assignedSlot = slotRack; //assign storage system item to slot

The getSlot method accepts Variant data for Bay, Level and Slot. You can insert also the values of variables into the parameters. Additionally you can check if the slot isStorable and hasSpace for the item.

You get items into the rack by a moveobject activity in Process Flow or a command by source code in a trigger. Or you can also just unload the item by a taskexecuter.

Example Model:basic-warehouse-rack.fsm

Edit: Attached a rack retrieving model by address scheme:rack-retrieve-by-address.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.