question

Keter avatar image
0 Likes"
Keter asked Paula LG answered

AGV not go to charge station instantly when reach set bettery level

I wrote a AGV charge PF. Ideally, when the AGV battery is lower than 95%, the PF will acquire to AGV to charge station. However, when the battery is lower than 95%, the AGV still keep working. It go to charge station when the battery is about 90%.

I saw some post suggested to upload the flexsim version, is there any other way to solve the issue? Thanks!

My flexsim Version is 22.1.2

AGV.fsm

Other
agvstationbattery
agv.fsm (57.0 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.

1 Answer

Paula LG avatar image
0 Likes"
Paula LG answered

Hi Keter,

This is happening because there's a lot of tokens already trying to acquire the agv on the other acquire activies when the charge token tries to do it. Since there's no queue order specified, the agv is going to be acquired in strict arrival order; the first token that tried to acquire the agv is going to acquire it when released, and so on.

One solution could be, for example, assigning a "priority" label to the token and tell the resource to order the acquirement queue based on that.

1718805303280.png

I attach your model with this solution implemented for clarification: agv.fsm

I hope it helps!


1718805303280.png (19.2 KiB)
agv.fsm (57.5 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.