question

mary avatar image
0 Likes"
mary asked mary commented

Control AGV Count

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.

FlexSim 20.0.10
agvdispatcher
· 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 @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 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered mary commented

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


inactiveagvs-fm.fsm (116.2 KiB)
· 4
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
Or close the AGV inputs.
0 Likes 0 ·
mary avatar image mary Jason Lightfoot ♦ commented ·
@Jason Lightfoot can you explain this
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ mary commented ·

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[i].stop(STATE_STOPPED);

to

closeinput(current.outObjects[i]);


0 Likes 0 ·
Show more comments

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.