Update version number
This commit is contained in:
parent
f696424a71
commit
15ef53903f
|
|
@ -54,6 +54,7 @@ internal static class Program
|
||||||
private static readonly Channel RelaysTsChannel;
|
private static readonly Channel RelaysTsChannel;
|
||||||
private static readonly Channel BatteriesChannel;
|
private static readonly Channel BatteriesChannel;
|
||||||
|
|
||||||
|
private static readonly String SwVersionNumber = " V1.00." + DateTime.Today;
|
||||||
private static Boolean _curtailFlag = false;
|
private static Boolean _curtailFlag = false;
|
||||||
private const String VpnServerIp = "10.2.0.11";
|
private const String VpnServerIp = "10.2.0.11";
|
||||||
private static Boolean _subscribedToQueue = false;
|
private static Boolean _subscribedToQueue = false;
|
||||||
|
|
@ -247,34 +248,6 @@ internal static class Program
|
||||||
Watchdog.NotifyAlive();
|
Watchdog.NotifyAlive();
|
||||||
|
|
||||||
var record = ReadStatus();
|
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
|
SendSalimaxStateAlarm(GetSalimaxStateAlarm(record), record); // to improve
|
||||||
|
|
||||||
|
|
@ -518,12 +491,15 @@ internal static class Program
|
||||||
|
|
||||||
private static void ControlConstants(this StatusRecord r)
|
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 inverters = r.AcDc.Devices;
|
||||||
var dcDevices = r.DcDc.Devices;
|
var dcDevices = r.DcDc.Devices;
|
||||||
var configFile = r.Config;
|
var configFile = r.Config;
|
||||||
var maxBatteryDischargingCurrentLive = 0.0;
|
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
|
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
|
// This adapting the max discharging current to the current Active Strings
|
||||||
if (r.Battery != null)
|
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.VoltageLimits.MinBatteryVoltage = devicesConfig.DcDc.MinDischargeBatteryVoltage);
|
||||||
dcDevices.ForEach(d => d.Control.ControlMode = DcControlMode.VoltageDroop);
|
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 %
|
// This will be used for provider throttling, this example is only for either 100% or 0 %
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue