question

Peter W8 avatar image
0 Likes"
Peter W8 asked Jason Lightfoot edited

Issues with charging AGV battery using the Advanced AGV module

AGV_Grundexempel_Bratt_autosave.fsmHi,

I'm trying to learn the advanced AGV module. I've created a simple model with one source connected to a queue. The queue is connected to a sink. I'm using two AGV's to handle the transports between the queue and sink. So far so good. My issues begin when I try to ad a park point that should act as a charging station for the AGV's. When I run a simulation using only one AGV everything works as expected. However, when I add the second AGV and run the simulation, after a while when the battery level of one of the AGV's has reached the "BatteryRechargeThreshold" the AGV enters the park point but does not exit, no matter how long I wait. When I check "Parking" in Process flow I can see that the token corresponding to the AGV is stuck on "Wait for Battery Charge".

What am I missing?

FlexSim 22.1.0
agvbattery charge
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 Jason Lightfoot edited

According to my test the TaskExecuter1_2 resumes when the battery level reaches 15 - which matches the process flow parameter.

agv-grundexempel-bratt-autosave_jl.fsm


· 6
5 |100000

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

Peter W8 avatar image Peter W8 commented ·

Hmm...

That's strange. I doesn't work for me. In my case when "TaskExecuter1" reaches the park point the simulation stops. I've attached an image of when this occurs. However, I noticed that if i press "stop" and then "run" so that the simulation continues "TaskExecuter1" charges the battery and then leaves the park point as it should.


By the way, I noticed that you added the battery level for each AGV. How did you do that?simulation-stops-when-taskexecuter1-goes-to-parkin.png

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Peter W8 commented ·

There is a stop time set to 39604.16 which will stop the model running.


The battery level displays are Text visual tools with the following code:

 AGV agv=AGV(current.centerObjects[1]);
sets(textnode,"Battery level:"+agv.batteryLevel);



0 Likes 0 ·
Peter W8 avatar image Peter W8 Jason Lightfoot ♦ commented ·

Jesus, I feel super stupid right now. Thanks for all your help! I'm sure I'll return with more stupid questions as I continue to learn more about Flexsim.

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.