question

Rafael Turchenski avatar image
0 Likes"
Rafael Turchenski asked Felipe Capalbo edited

Exception Caught in ObjectFunction250

Hello, I am trying to unload the boxes that are in the agv to a processor using processflow. I tried with queues and the exception is the same. The idea is that in my Unload activity, I unload a box to the line and I loop it until there is nothing else to load. I check this end condition with token.agv.subnodes[1].subnodes.length.

Always in the second time that I am going to unload, this exception emerges, in the unload activity. I made some breakpoints and simplified the code but it still occurrs.

Maybe it is relevant that I created a pallet and 4 boxes in it but I do not use their token references to try to unload. I always use the token.agv.subnodes...

flexsim-nvl0bsugon.png

I have attached the model. AGV Simulation.fsm

FlexSim 22.2.0
exception error
agv-simulation.fsm (736.0 KiB)
agv-simulation.fsm (736.0 KiB)
· 1
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Rafael Turchenski,

Thank you for contributing to our community! We couldn't identify a maintained license or subscription linked to your account.

You may need to update your profile information to identify yourself as a license owner or their associate. Check out our article for how to ensure you receive timely support. If you update your profile comment back to let us know - we'll adjust the priority of your post accordingly.

If your current license is expired, please contact your local distributor to renew.

0 Likes 0 ·

1 Answer

Felipe Capalbo avatar image
0 Likes"
Felipe Capalbo answered Felipe Capalbo edited

Hello, Rafael.
For the unload activity, I switched to using "token.item" (instead of just "item" as before) as the reference to execute the unload.

tokenitem.png

This adjustment works well for the unloading process itself, but you may need to refine the surrounding flow. You could add a Wait for Event activity for the token to wait the next unload event.


tokenitem.png (25.2 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.