From bcaab09190e95776107d70e035d6892c8b1f954a Mon Sep 17 00:00:00 2001 From: atef Date: Thu, 7 Sep 2023 17:24:56 +0200 Subject: [PATCH] Correct the name of the reference Dc Link Voltage --- csharp/App/SaliMax/src/Ess/Controller.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/App/SaliMax/src/Ess/Controller.cs b/csharp/App/SaliMax/src/Ess/Controller.cs index 5b24b0fb0..4f991d58e 100644 --- a/csharp/App/SaliMax/src/Ess/Controller.cs +++ b/csharp/App/SaliMax/src/Ess/Controller.cs @@ -83,7 +83,7 @@ public static class Controller // find out if we reach the lower or upper Dc limit by comparing the current Dc voltage to the reference voltage - return s.AcDc.Dc.Voltage > s.Config.ReferenceDcLinkVoltageFromAcDc + return s.AcDc.Dc.Voltage > s.Config.GridTie.AcDc.ReferenceDcLinkVoltage ? control with { PowerCorrection = clampedPowerDelta.ClampMax(-correction), LimitedBy = EssLimit.ChargeLimitedByMaxDcBusVoltage } : control with { PowerCorrection = clampedPowerDelta.ClampMin(correction), LimitedBy = EssLimit.DischargeLimitedByMinDcBusVoltage }; }