question

Kyle Y avatar image
0 Likes"
Kyle Y asked Andrew O commented

is there some way to set agv charge speed?

is there some way to set agv charge speed?

for example, I want agv to charge 10% per 10 minute or to charge 20% per 10 minute.

FlexSim 23.0.3
agvbattery charge
· 2
5 |100000

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

CSN avatar image CSN commented ·

You can specify charging speed in AGVNetwork properties.

1677141955901.png

0 Likes 0 ·
1677141955901.png (192.9 KiB)
Andrew O avatar image Andrew O commented ·

Hi @Kyle Y, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Assuming you wish to do this dynamically as the model runs then you can create multiple AGV types with different charging rates and then change the type using the following code before you start recharging.

treenode agvnode=AGV(Model.find("TaskExecuter1"));
setsdtvalue(agvnode,"agvType",1);   // the rank of the AGV type

This is not ideal since the tree structure could change in the future. You could add a suggestion that the agv method startRecharge get's a passed parameter for the charging amps to override the value in the AGVType properties.

If you just want to compare two scenarios then add the recharge rate as a parameter by sampling it from the AGV Netwok Properties. When you do that you'll see that the path is given as :

/AGVNetwork>variables/agvTypes/AGVType2/rechargeAmps

which can also be set directly.

5 |100000

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