Fix: maxIncrease for solar inverter with PDL #1513
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1512
Description
Use inverter maxPower instead of configuredMaxPower for solar inverters with PDL to calculate the maxIncrease, because the limit will be distributed across MPPTs that can provide power by the inverter and not equally divided.
Example
HMS-1600
2 out of 4 MPPTs connected
max output set to 800 W
current output power 400 W
Old calculation
maxTotalIncrease:
800 W - 400 W = 400 W
max power per MPPT:
800 W / 4 = 200 W
current power per non shaded MPPT:
400 W / 2 = 200 W
max increase per non shaded MPPT:
200 W - 200 W = 0
max increase:
0 W * 2 = 0 W
missed out increase (if PDL or overscaling is available):
400 W
New calculation (inverter with PDL only)
maxTotalIncrease:
800 W - 400 W = 400 W
max power per MPPT:
1600 W / 4 = 400 W
current power per non shaded MPPT:
400 W / 2 = 200 W
max increase per non shaded MPPT:
400 W - 200 W = 200 W
max increase:
200 W * 2 = 400W
Example why we need to limit the maxIncrease to totalMaxIncrease
inverter with PDL only, 3 out 4 MPPTs connected, producing 600 W
maxTotalIncrease:
800 W - 600 W = 200 W
max power per MPPT:
1600 W / 4 = 400 W
current power per non shaded MPPT:
600 W / 3 = 200 W
max increase per non shaded MPPT:
400 W - 200 W = 200 W
max increase:
200 W * 3 =
600 W600 W + 400 W
would exceed the max output of800 W