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.
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.
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.
Object TE = Model.find("TaskExecuter1"); return getsdtvalue(Model.find("AGVNetwork>variables/agvs").subnodes[TE.name], "curAmps");
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.
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.
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");
16 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved