From 15ef53903fea9d957ec89e5b15fc3cdcc62e0c7e Mon Sep 17 00:00:00 2001 From: atef Date: Fri, 13 Feb 2026 10:01:17 +0100 Subject: [PATCH] Update version number --- csharp/App/SaliMax/src/Program.cs | 35 +++++-------------------------- 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/csharp/App/SaliMax/src/Program.cs b/csharp/App/SaliMax/src/Program.cs index 57862ec71..22ab4c22e 100644 --- a/csharp/App/SaliMax/src/Program.cs +++ b/csharp/App/SaliMax/src/Program.cs @@ -54,6 +54,7 @@ internal static class Program private static readonly Channel RelaysTsChannel; private static readonly Channel BatteriesChannel; + private static readonly String SwVersionNumber = " V1.00." + DateTime.Today; private static Boolean _curtailFlag = false; private const String VpnServerIp = "10.2.0.11"; private static Boolean _subscribedToQueue = false; @@ -247,34 +248,6 @@ internal static class Program Watchdog.NotifyAlive(); var record = ReadStatus(); - /* - if (record.Relays != null) - { - record.Relays.Do0StartPulse = true; - - record.Relays.PulseOut0HighTime = 20000; - record.Relays.PulseOut0LowTime = 20000; - record.Relays.DigitalOutput0Mode = 2; - - record.Relays.LedGreen = false; - - record.Relays.Do0StartPulse.WriteLine(" = start pulse 0"); - - record.Relays.PulseOut0HighTime.WriteLine(" = PulseOut0HighTime"); - - record.Relays.PulseOut0LowTime.WriteLine(" = PulseOut0LowTime"); - - record.Relays.DigitalOutput0Mode.WriteLine(" = DigitalOutput0Mode"); - - record.Relays.LedGreen.WriteLine(" = LedGreen"); - - record.Relays.LedRed.WriteLine(" = LedRed"); - - } - else - { - " Relays are null".WriteLine(); - }*/ SendSalimaxStateAlarm(GetSalimaxStateAlarm(record), record); // to improve @@ -518,12 +491,15 @@ internal static class Program private static void ControlConstants(this StatusRecord r) { + r.DcDc.ResetAlarms();// move this first to be sure it's executed + r.AcDc.ResetAlarms();// move this first to be sure it's executed var inverters = r.AcDc.Devices; var dcDevices = r.DcDc.Devices; var configFile = r.Config; var maxBatteryDischargingCurrentLive = 0.0; var devicesConfig = r.AcDc.Devices.All(d => d.Control.Ac.GridType == GridType.GridTied400V50Hz) ? configFile.GridTie : configFile.IslandMode; // TODO if any of the grid tie mode + // This adapting the max discharging current to the current Active Strings if (r.Battery != null) { @@ -572,8 +548,7 @@ internal static class Program dcDevices.ForEach(d => d.Control.VoltageLimits.MinBatteryVoltage = devicesConfig.DcDc.MinDischargeBatteryVoltage); dcDevices.ForEach(d => d.Control.ControlMode = DcControlMode.VoltageDroop); - r.DcDc.ResetAlarms(); - r.AcDc.ResetAlarms(); + } // This will be used for provider throttling, this example is only for either 100% or 0 %