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.

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

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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @j08j,

Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

Hi @j08j, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

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.

j08j avatar image j08j commented ·
Thanks for your applied, I will try it.
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.