question

luis-rodrigues avatar image
0 Likes"
luis-rodrigues asked luis-rodrigues commented

Setup Time Error

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

FlexSim 24.0.2
setup time
1.png (13.8 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 luis-rodrigues commented

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


· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

luis-rodrigues avatar image luis-rodrigues commented ·
@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 0 ·
luis-rodrigues avatar image luis-rodrigues luis-rodrigues commented ·

I believe I have the same problem with this one:

Todos.fsm

0 Likes 0 ·
todos.fsm (112.2 KiB)
Felix Möhlmann avatar image Felix Möhlmann luis-rodrigues commented ·
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 0 ·
Show more comments

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.