Control AGV Count

Control AGV Count

priyankasgoudar33
Enthusiast Enthusiast
427 Views
6 Replies
Message 1 of 7

Control AGV Count

priyankasgoudar33
Enthusiast
Enthusiast

[ FlexSim 20.0.10 ]

Hi, I want to control number of agv through dispatcher and not through process flow. Whenever I want only two agv running out of 5 I need to control it without disconnecting agv to dispatcher. How can I do it.

0 Likes
Accepted solutions (1)
428 Views
6 Replies
Replies (6)
Message 2 of 7

moehlmann_fe
Collaborator
Collaborator
Accepted solution

I believe the simplest method would be to simply 'stop' the AGVs that are not supposed to be active. In the attached example I do so in the OnReset trigger of the dispatcher, based on the "numActive" label on it.

InactiveAGVs_fm.fsm

0 Likes
Message 3 of 7

jason_lightfoot_adsk
Autodesk
Autodesk
Or close the AGV inputs.
0 Likes
Message 4 of 7

priyankasgoudar33
Enthusiast
Enthusiast
@Jason Lightfoot can you explain this
0 Likes
Message 5 of 7

jason_lightfoot_adsk
Autodesk
Autodesk

The dispatcher passes jobs through its output ports to the AGVs' input ports. So you can have a similar effect by just closing those that exceed the number of AGVs by changing this line:

current.outObjects.stop(STATE_STOPPED);

to

closeinput(current.outObjects);


0 Likes
Message 6 of 7

Jeanette_Fullmer
Community Manager
Community Manager

Hi @mary, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes
Message 7 of 7

priyankasgoudar33
Enthusiast
Enthusiast
@Jason Lightfoot great it works.
0 Likes