question

Francesco S avatar image
0 Likes"
Francesco S asked Benjamin W2 answered

agv charging battery

Automatic warehouse1.1.fsmHi everyone,

I would like to implement in my model charging of task executer: in particular I would like that when it arrives in point called (check battery), it make a decision: if the battery is less than 15 it goes to battery station, it starts charging and when the battery reaches 100 it comes back to start load point.

while if the battery is more than 15 it cointinues his work.

I tryed AGV Network-Way points, in toolbox but to be honest I did not successed.

FlexSim 20.0.0
battery chargecharging agv
immagine.png (135.9 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

Benjamin W2 avatar image
1 Like"
Benjamin W2 answered

I believe the syntax you are looking for is AGV().batteryLevel. You can put some syntax in your decide activity that says if (AGV().batteryLevel < 15) {go do stuff}.

Another way you could do this is to use an event triggered source and listen to the AGV's "OnAGVBatteryLevelChange". If it reaches some level, then you could have the token acquire the AGV, recharge it, then send it on it's way. The Process flow would look something like this:

automatic-warehouse11.fsm


5 |100000

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