question

Amit Kulkarni avatar image
0 Likes"
Amit Kulkarni asked Amit Kulkarni commented

Check if AGV is loaded or empty at a control point

As an extension of this exercise, I want to check if an AGV is loaded or unloaded when it arrives at a control point. I created two tracked variables, AGVLoaded and AGVEmpty which will be incremented depending on the AGV status at the control point where the check happens.

I think it should be possible using a simple conditional decide, but it seems like I keep referencing the AGV at the control point and not its subnodes.

What is wrong here?


Control_Point_Statistics_2.8.2020.fsm

FlexSim 21.0.2
agvstatistics collectorflexsim 21.0.2decision points
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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Amit Kulkarni commented

You should use the source to assign the agv as a label:

and then use token.agv.subnodes.length

At the moment there is no arrival event - try using pre-arrival.


1612805905086.png (11.8 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.

Amit Kulkarni avatar image Amit Kulkarni commented ·

Worked like a charm! Thanks, Jason!

0 Likes 0 ·

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.