question

dcorral avatar image
0 Likes"
dcorral asked dcorral commented

Create a "gated" process for token to flow

Hey everyone,

I am reaching to see if anyone has had to create a process flow similar to mine and what you did to solve the problem.


I am working off a schedule source that creates tokens at set intervals. The number of tokens vary, and each token has a specific workstation it needs to go to. However, only one type can be worked at a time.


In the model attached

- I have 3 types of tokens representing the three workstations they need to go to.

- At the moment, they are all working in parallel, but I need them to only be worked one workstation at a time.

- Even if there are more than one token of the same workstation, that is okay to be worked.

- If there are 3 tokens with different workstations, only one of the tokens can be worked on. Other tokens with different workstation need to wait until the delay is complete.


Any help would be greatly appreciated, and if you need any more info, please let me know!

FlexSim 23.2.3
proces flow
gatedprocess.fsm (30.6 KiB)
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
0 Likes"
Felix Möhlmann answered dcorral commented

You need to store the information which workstation is currently 'active' somewhere. You can then use a Decide activity to let tokens for that station pass while others must wait.

In the attached model a label on the Process Flow itself is used for this. A zone is used to keep track of how many 'active' tokens there are and to trigger waiting tokens to re-try to enter once the zone is empty.

gatedprocess_1.fsm


gatedprocess-1.fsm (34.1 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.

dcorral avatar image dcorral commented ·
That's great and exactly what I was looking for. Thank you!
0 Likes 0 ·