question

luis-rodrigues avatar image
0 Likes"
luis-rodrigues asked Felix Möhlmann answered

Flowitem Reference

Hi I'm working on a model. It was working perfectly fine but when I change the quantities at the source it started returning an error in the "move object".

mlall.fsm

I have two columns of quantity (I don't know exactly why) and I noticed that if I change only the first column it works, but If I change the two it doesn't work

Thank you in advance :)

FlexSim 24.1.0
flowitem reference
mlall.fsm (404.7 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

That the quantity increase made this error surface is a coincidence. Token that take the right path (Palletizer00, red arrow) always moce their item to the sink immediately. If one of them end up in the Move Object activity (marked red) you will get an error because the item does not exist anymore.

They end up there if the quantity of the storage is larger than one hundred when the decide activity is entered. This can only happen if the last item of a recipe fills up the storage beyond the threshold. But because it is the last on it skips the check (green arrow).

capture1.png

To fix it, move the "Keep Storage Clean" check ahead of the "End Recipe" check (and optionally only do it for tokens from the left in the first place).

capture2.png

The first "Quantity" column is the one build into the schedule and determines how many tokens are created for that row. The second is a label that stores this value on the token so it can be used in "End Recipe" to check if the token in question is the last one for that row (token.Index == token.Quantity).


capture1.png (44.9 KiB)
capture2.png (15.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.