question

Ruben M4 avatar image
0 Likes"
Ruben M4 asked Ruben M4 commented

Help for a newbie

Hi there,

I would like to simulate a process in which "production orders" are followed according to a list. The problem is that I want each token to be created when a process has finished, I don't want the tokens to be created after a specific time previously specified, but when the machine where the operation is carried out is free.
Then, in the first iteration, a token with the associated characteristics of the first row of the table must be created.
Secondly, when the first token has finished performing the operation, a second token will be created with the characteristics of the second row, and so on.
And to continue in this way...
Could you please help me?
Thank you very much in advance.

FlexSim 19.2.4
flexsim 19.2.4advice
· 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 @Ruben M4,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Eric M avatar image Eric M commented ·

Hi @Ruben M4,

We haven't heard back from you. 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 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Ruben M4 commented

Event triggered source does this. An item exits or a processing finishes, then a token is created. You can create tokens on content change to exact value 0, if you like.

https://docs.flexsim.com/en/19.2/Reference/ProcessFlowObjects/TokenCreation/EventTriggeredSource/

You want to count the number of occurred events. Then you evaluate the statistic of this activity. You put an assign labels activity below the event triggered source. You give a suitable name for a label like index, row, or other names. The value could be tricky to write but you can use the eye-droper icon called sampler tool and move it over the event triggered source activity. You select this coded line which points in some way to output stats. Now any token exiting the event triggered source activity gets next assigned a value which is equal to the number of released token so far. This label value can you put in the right square bracket to read table cell values to assign further labels at your token.

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

Ruben M4 avatar image Ruben M4 commented ·

Thank you so much. It help me a lot!

0 Likes 0 ·