Creating child tokens from label / Batching label

Creating child tokens from label / Batching label

KhadijaM
Not applicable
203 Views
5 Replies
Message 1 of 6

Creating child tokens from label / Batching label

KhadijaM
Not applicable

[ FlexSim 23.1.1 ]

Hi,

I have a model (see attached model and picture to further explain) of trolleys entering an autoclave. The total number of trolleys is specified for each individual product and assigned as a label. The challenge I'm having is that the autoclave can only take 6 no. trolleys at a time. How can I take the total number of trolleys and release only 6 at a time to the autoclave?

Kind regards,

Khadija


Child Token and Label Query.fsmChild Token and Label Query.PNG

0 Likes
Accepted solutions (1)
204 Views
5 Replies
Replies (5)
Message 2 of 6

Vinay_S_Jindal
Not applicable
Accepted solution

Hi @KhadijaM,


I modified your model, I added a subflow and moved Autoclave delay time inside it.

Check this modified model solves your problem.child-token-and-label-query Mod.fsm.

Also check the formula I used to consider no of child tokens to be released to subflow.

1695731407918.png

0 Likes
Message 3 of 6

KhadijaM
Not applicable
Thank you so much Vinay this is exactly what I was looking for!
0 Likes
Message 4 of 6

KhadijaM
Not applicable

Just an additional question.

The time taken for the autoclave time now is applied to each of the trolleys.

What I mean is if I have a token A where the total autoclave time is 36hours, this means that it requires 6 loads of the autoclave at 6hours each. By dividing the total autoclave time by 6 do I achieve this?

Note that each unique batch has a unique autoclave time. Meaning that token B with a total autoclave time of 40hrs will have 6.6hours and 7 loads.


Kind regards,

Khadija

0 Likes
Message 5 of 6

moehlmann_fe
Enthusiast
Enthusiast

You'd simply divide the total time by the number of batches which you already determine as the number of subflow tokens.

Note: Instead of the expression @Vinay S used for that, you can also just use Math.ceil(token.Trolleys/6).capture1.png

Message 6 of 6

KhadijaM
Not applicable

I understand, thanks so much Felix!!

0 Likes