question

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

Error unloading

Hi. I'm trying to move to boxes from a queue but I'm having an error which the transporter gets stuck unloading, it should be a simple fix. I hope someone can help me.

ml00-to-ml04 - rertirar não necessários.fsm

FlexSim 24.1.0
unloading
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

In the "Run Sub Flow" activity that creates the tokens in the "End Recipe" section, you set that the child tokens should only access labels on their parent token. This means that the "taskSequence" label from "Create TS" will be created on the parent tokena dn overwritten by the second token, resulting in the first token getting stuch because the "taskSequence" label now points to a different task sequence. Either create an empty "taskSequence" label on the child tokens, so they do not add it on the parent, or disallow them from writing to labels on the parent alltogether.

capture1.png


capture1.png (5.7 KiB)
· 3
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 ·

Hi @Felix Möhlmann welcome back. That worked well but now I'm getting an error in the last column of the recipes because of the logic I used.

1.png

2.png

Can you advise me on how to get through this?

ml00-to-ml04 - rertirar não necessários.fsm

0 Likes 0 ·
1.png (38.9 KiB)
2.png (17.4 KiB)
Felix Möhlmann avatar image Felix Möhlmann luis-rodrigues commented ·

I assume that logic is supposed to prevent items being removed from the queues if they are needed for the next recipe as well.

You could simply check if the next recipe number still exists in the table. If not, return 0 for all qty values. Though this logic will of course only work as long as the recipe numbers are ordered in ascending order in the source table.

ml00-to-ml04-rertirar-nao-necessarios-fm.fsm

I also updated the start of the Process Flow, because the token with the highest "index" for a given recipe wasn't necessarily the last one to be processed.

0 Likes 0 ·
luis-rodrigues avatar image luis-rodrigues Felix Möhlmann commented ·
Thank you very much.
0 Likes 0 ·