question

Pinakin K avatar image
0 Likes"
Pinakin K asked Aaron C commented

Set different charging rate for AGV.

Hello,How can i set different charging rate for different parking locations?

FlexSim 19.1.1
agvbattery charge
· 1
5 |100000

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

Jeff Nordgren avatar image Jeff Nordgren commented ·

@Pinakin K,

Can you send us your model or a sample model of the problem? That would be much easier to "see" what is going on in your model and the best way to solve your problem(s).

Thanks.

0 Likes 0 ·

1 Answer

·
Aaron C avatar image
1 Like"
Aaron C answered Aaron C commented

Without seeing your model, it's hard to know the limitations. If there's only one AGV in your model, when the AGV arrives at its destination, you can use either of these lines of code to set the recharge rate:
getvarnode(Model.find("AGVNetwork"), "agvTypes").as(Table)[1][7] = newRechargeRate
OR
Model.find("AGVNetwork>variables/agvTypes/DefaultAGV/rechargeAmps").value = newRechargeRate

If you have more than one AGV, however, this becomes a bit trickier because the recharge rate is for the entire network based on AGV type. What you could do, though, is basically the same thing, but conditionalize the rate based on the AGV type and ensure you're setting the recharge rate for that specific type.

Hopefully this helps!

· 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.

Pinakin K avatar image Pinakin K commented ·

Yes. This helps, I do have multiple AGVs, and have different types for each one. So basically i just give those AGVs a different type which has that charge rate.

So in order to start the recharge I just use this command?

AGV.startRecharge();
0 Likes 0 ·
Aaron C avatar image Aaron C Pinakin K commented ·

That's correct!

0 Likes 0 ·

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.