question

Marc R5 avatar image
0 Likes"
Marc R5 asked Ryan Clark commented

create token for each queue in my model

I need to create a token for each queue I have in my model, so then I can pass them to create a list of my empty queues.

Thanks!

FlexSim 22.0.1
listsqueuestoken
· 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.

Ryan Clark avatar image Ryan Clark commented ·

Hi @Marc R5, was one of Jason Lightfoot's or Marcello Rosadini's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 unaccept and comment back to reopen your question.

0 Likes 0 ·
Marcello Rosadini avatar image
0 Likes"
Marcello Rosadini answered Marc R5 commented

Hi Marc,

one possible solution is to create a group with the queues and then generate as many tokens as GroupMembers and then pushing the reference to the queue to the list like in this example:

011H support.fsm


011h-support.fsm (30.7 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.

Marc R5 avatar image Marc R5 commented ·

I see that it creates an extra token without any label?

Many thanks Marcello!


0 Likes 0 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Use an instanced object process flow instead of a general flow. Then you refer to the queue as 'current' anywhere you need a reference. The are a few benefits - if you were to have many queues and therefore lots of tokens you can more easily track the token of an instance by viewing just that queue's process flow instance.

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

Marc R5 avatar image Marc R5 commented ·

Thanks Jason,

In my case, I am trying to get a list of empty racks and a list of empty slots, to then manage where they should go by checking the list.

I am not sure how to do it with instanced process flow...

The model is in initial stage, but you can see it here:

Layout v3.1_1.fsm

0 Likes 0 ·
layout-v31-1.fsm (388.3 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ Marc R5 commented ·

You don't need tokens for that - you can use a Global List and set the initial content to a Group.

(By the way - your use of the word Slot for your Queues and Racks (I can't see them) is confusing for us since they are concepts of the Storage System which you don't appear to be using)

Update: Attaching model using an instance process flow to register your Slots (Queues) and Racks (Flowitems).

layout-v31-1_jl.fsm

0 Likes 0 ·
layout-v31-1-jl.fsm (394.5 KiB)

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.