AGV battery usage

AGV battery usage

tsuji_ryusuke
Explorer Explorer
41 Views
4 Replies
Message 1 of 5

AGV battery usage

tsuji_ryusuke
Explorer
Explorer

[ FlexSim 22.0.7 ]

Thank you for always answer.

I want to get the battery usage of AGV.


Is there a function to retrieve this? Or should it be calculated from "AGV.amp Hours" or "AGV.battery Level"?


Thank you in advance.

0 Likes
Accepted solutions (1)
42 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
Explorer
Explorer
Accepted solution

Do you mean the current rate (amps) at which the charge is changing?

You can get that value from the respective AGV's node in the network object.

1664436548654.png

Object TE = Model.find("TaskExecuter1");
return getsdtvalue(Model.find("AGVNetwork>variables/agvs").subnodes[TE.name], "curAmps");

1664436571441.png

A negative value means the AGV is currently charging.

Disclaimer: Values in an sdt-node like this may change in the future. So forward-compatibility is not guaranteed.

0 Likes
Message 3 of 5

tsuji_ryusuke
Explorer
Explorer

@Felix Möhlmann ,


This is exactly the information I was looking for.

I also understand that the specifications may change in the future.


Thank you for your answer.

0 Likes
Message 4 of 5

moehlmann_fe
Explorer
Explorer

I just noticed that the path to the node I use in my answer is suboptimal. It would probably be better to use this variant of the second code line instead (especially for large numbers of AGVs)

return getsdtvalue(TE.find(">variables/navigator/1+"), "curAmps");
0 Likes
Message 5 of 5

tsuji_ryusuke
Explorer
Explorer

Thank you for the additional information!

I will use this.

0 Likes