Setup Time Error

Setup Time Error

luis_rodrigues
Not applicable
747 Views
5 Replies
Message 1 of 6

Setup Time Error

luis_rodrigues
Not applicable

[ FlexSim 24.0.2 ]

Hi, I'm working on a model that each token has a setup time and I want that when the token index is 1 it should actually do the setup time.

I'm having the following error:

1.png

But when I change the Setup Time from "token.SetupTime" to "10" the error doesn't appear.

ml00-to-ml04 - tempos2.fsm

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

FelixMoehlmann
Mentor
Mentor
Accepted solution

The issue is not directly related to the setup time (in fact I can't even say why it doesn't happen without it). The problem is that depending on how the timing works out, multiple tokens might try to get rid of an empty box. The second token will cause the error, because the item will not exist by the time the transporter is told to load it.

You can prevent this by introducing a check whether the item still exists in the "Move Empty" activity.

ml00-to-ml04-tempos2_1.fsm

0 Likes
Message 3 of 6

luis_rodrigues
Not applicable
@Felix Möhlmann the "breathe" is the function that checks if the item still exists? I don't understand very well how the "breathe" works.
0 Likes
Message 4 of 6

luis_rodrigues
Not applicable

I believe I have the same problem with this one:

Todos.fsm

0 Likes
Message 5 of 6

FelixMoehlmann
Mentor
Mentor
The function that checks if the item exists is "objectexists(token.item)" in the quantity field of the "Move Empty" Run Sub Flow activity. It returns a 1 when the object exists, 0 otherwise.

The "Breathe" is just a 0s delay. It's there to make sure that an item entering the sink has actually been destroyed before the next token can acquire the transporter and check the item's existance. "Breathe" was added with version 24.0 as a standalone activity because its used quite regularly. Previously one would use a Delay activity set to 0s.

0 Likes
Message 6 of 6

luis_rodrigues
Not applicable
Thank you very much
0 Likes