question

j08j avatar image
0 Likes"
j08j asked j08j commented

How to modify the method of retrieving items from the rack?

1. This code segment retrieves items from the rack following the FIFO rule.

  1. asrsvehicle.setProperty("QueueStrategy", "TaskSequence taskSequence = param(1);\n\
  2. Dispatcher current = ownerobject(c);\n\
  3. /**No Queue Strategy - Straight FIFO*/\n\
  4. /**Note: This option may improve model run speed for large task sequence queues*/\n\
  5. return DISPATCHER_ABORT_QUEUE_STRATEGY;\n\
  6. ");

I wish to modify it to sequentially check each slot. If a slot containing an item is found during the check, then that item should be retrieved; otherwise, it should proceed to check the next slot. How can I achieve this?

2. Additionally, there is a property like `.assignedSlot` for specifying a designated slot for placement. Are there similar properties available to retrieve items from specified slots?

model.fsm

Thanks.

FlexSim 24.0.2
rackcodeasrsflexscrip
model.fsm (42.8 KiB)
· 2
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 j08j commented

@j08j, It is not a question about slots, it is a question about items. You classify an item into a storageItem. Then it gets into states: gets assigned a slot, enters a slot, bounds out of a slot, exits a slot and finally it isn't a storageItem anymore.

https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.Item.State.html

Perhaps you explore a bit about storage class methodes, properties and constructers.

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