Which AGV is parked on each park point?

Which AGV is parked on each park point?

ana_t2
Not applicable
152 Views
8 Replies
Message 1 of 9

Which AGV is parked on each park point?

ana_t2
Not applicable

[ FlexSim 17.2.1 ]

Hello,

I have several control points in the AGV network and some of them are used as the park points. Does anyone know how I can understand which AGV is parked on each parkpoint?

Thanks

0 Likes
Accepted solutions (1)
153 Views
8 Replies
Replies (8)
Message 2 of 9

SCHamoen
Advisor
Advisor
Accepted solution

@Ana Ta Your AGV has a link to the AGV network node under the navigator node in your variables of your AGV. If you follow that path you end up under the variables of the AGVNetwork in the agvs node where every AGV has its own node with properties and one of these is called: "resetPoint" that is the node where your AGV is parked at the start. If you want to get there in code I would use 2 labels (using process flow, you can do it in one go but this made it better readable):

label1: getvarnode(token.AGV, "navigator").first.value

label2: token.label1.first.value

Label2 will give you the pointer to the reset parking position. Of course when the model is running you have to keep track yourself where everything is going etc.

0 Likes
Message 3 of 9

ana_t2
Not applicable

Thanks for your answer. I am not looking for the reset position. In fact, during the simulation different AGVs can park on different park points. I would like to know at each time, which AGV is parked on a specific park point.

0 Likes
Message 4 of 9

SCHamoen
Advisor
Advisor
@Ana Ta

But if you send your AGV to a parking position you know which parking position that is right? So you can simply put it on a label on the AGV or put the AGV on a label on the controlpoint

0 Likes
Message 5 of 9

ana_t2
Not applicable

Ah ok. Yes you're right. I can do the second option.

Thanks a lot

0 Likes
Message 6 of 9

ana_t2
Not applicable

Hello,
Do you maybe know how I can understand which AGV passed by a specified control point? This control point is not a park point.
I would like to give a new label to a specified control point IF an AGV passed by it.

Thanks

0 Likes
Message 7 of 9

mischa_spelt
Advisor
Advisor

Hi @Ana Ta. You can use the On Arrival trigger of the control point to set the label every time an AGV arrives. For example, use an Event Triggered Source in Process Flow to sample the OnArrival event, assign the AGV that triggers it to a label and then assign it to a control point label.

If you want to have the reverse, i.e. know which control point a specific AGV last passed over, you can use the agvinfo command to get the AGV_CURRENT_CP.

0 Likes
Message 8 of 9

ana_t2
Not applicable

Hello @Mischa Spelt,
Thanks for your answer. I cannot do the first option because In the process flow I have multiple AGVs and when I put Even triggered, it creates one token for all the AGVs while I want to create only one Token for the AGV which passed by the control point.

0 Likes
Message 9 of 9

mischa_spelt
Advisor
Advisor

Sorry, I do not understand. An Event Triggered Source listening to the Control Point's On Arrival will only create a token for every AGV arriving at it (and On Continue for any AGV passing it) every time that happens. Not all AGVs may necessarily have a token created and each AGV may have multiple tokens created.

Or have I misunderstood your question and do you want to know, for a specific AGV, when it passes any control point; instead of any AGV passing a specific Control Point?