Thank you VERY much for your examples! I copied them and after some tweaking they work on my installation as designed (Full Charge / Full Discharge / Stop Activities).
What I still do not understand, after many hours of trial and error and checking many different forums, is why those numbers (60933 and 4603)?. All I found out is that they add up to the the value of 65536 which is Hex FFFF+1.
The reason I am asking is twofold:
I want to optimize my consumption from the grid and
I have 2 different inverters connected to a separate EVU. Hence I need to control the charge/discharge seamlessly and based on values from my EVU.
Now I am trying to setup a node-red automation, feeding the GEN24 10 Plus with the required values to keep the grid consumption at +/- 0.
The Fronius register map talks about +/- 1000 for the OutWRte and InWRte, but your values are much different. Am I right assuming (float setting assumed) that one number always need to be 65535 - the other value? Ideally I would want to keep the StorCtl_Mod always at 3?
Do you know where I can find more details on the topic?
Hi @ruffieuxh, I need to be honest and say I don’t remember…I have had this running for so long and I don’t touch it anymore. I think there is some thinking how to calculate these values in the thread above.
I think you can find the answer in the documentation also.
Sorry not to be able to help, I blame my bad memory…
Negative values are used to set a minimum charge/discharge rate, and negatives are set using 65536 - A, where A is the percentage of your battery size (WChaMax) you want to charge/discharge in an hour.
It’s because the 65536 number range is in two halves, the bottom end for positive numbers and the higher end represents negative numbers.
Note, you need to multiply your percentage by 100 because of the scale factor in InOutWRte_SF.
To set minimum charging rate at 100%, OutWRte = 65536-(100x100) = 55536.
To set minimum discharging rate at 100%, IntWRte = 65536-(100x100) = 55536.
Also note, you may not get 100% of battery charged or discharged in the hour if the inverter or battery cannot charge/discharge at that rate.
If the above seems the wrong way around, see full details in my post above 20 March.
Thanks, this input has helped me a lot!
The single scripts work flawlessly.
Just one thing I don’t understand:
In case I run the following sequence, I observe the following:
run “Disable Discharging”, the discharging is prevented.
run “Force Charging” afterwards, the charging starts at high power.
re-run “Disable Discharging”, the power gets significantly reduced.
Why?
Doesn’t the script “Disable Discharging” just set the max output power to zero?
The designated charge state of 99% is unaffected, right?
I assume, it will be related to the set value 55536 in address 40355. From the Fronius Excel, I don’t see how to interpret the number. This number exceeds the value range stated in the Fronius document.
How to include this?
How to interpret the value of that address?
I intend to use those
not to discharge my battery when charging the car
to re-charge the battery in dark times when needed
I would like to have these scripts not affecting each other.
Thanks in advance!
actions is from automations
sequence is from scripts
You cant use both in one.
Also you have multiple modes and icons so try to redo the script or automation but use the UI