question

Sandeep_kumar I2 avatar image
0 Likes"
Sandeep_kumar I2 asked Sandeep_kumar I2 commented

How to identify location of an item in a rack?

In my use case, I need to use specific transport based on where the item sits in a rack. For example. if an item sits in Level 1, I will use Transporter A, Level 2 Transporter B and so on. When I retrieve Item from the rack, I need to know it's location to select the right transport. How to know the location/address (mainly level in the rack) of an item I am going to retrieve? I would like to pick the right variable that contains this value so I can program my process flow.

FlexSim 21.1.0
#rack#location#retrieve
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

·
Felix Möhlmann avatar image
2 Likes"
Felix Möhlmann answered Sandeep_kumar I2 commented

You can access the BayID, LevelID and SlotID through the "Storage.Slot" class, which you can in turn access from the "Storage.Item" (a representation of the item in the warehousing system).

The code to do that is as follows (assuming the reference to the item is given as "token.item"):

// "First, you get the correct StorageItem"
Storage.Item StorageItem = Storage.Item(token.item);

// "From there, you can access the slot where it is stored"
Storage.Slot StorageSlot = StorageItem.currentSlot;

// "Then get the position of that slot"
token.Bay = StorageSlot.bayID;
token.Level = StorageSlot.levelID;
token.Slot = StorageSlot.slotID;
token.Address = StorageSlot.address;

If you want to access any of these values in one line (to use in the "Assign Label" activity for example) that would be:

Storage.Item(token.item).currentSlot.levelID

What exact values these will return depends on the address scheme you set for your racks. By default, bays, levels and slots are numbered (1, 2, 3, ...) in (X+, Y+, Z+) direction.

GetPositionInRack_Example.fsm


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

Sandeep_kumar I2 avatar image Sandeep_kumar I2 commented ·

This is perfect. Thanks for the sample model.

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.