diff --git a/csharp/Lib/Devices/AMPT/Ampt.csproj b/csharp/Lib/Devices/AMPT/Ampt.csproj index 06dd8bef6..7e29f501e 100644 --- a/csharp/Lib/Devices/AMPT/Ampt.csproj +++ b/csharp/Lib/Devices/AMPT/Ampt.csproj @@ -1,5 +1,5 @@ - + InnovEnergy.Lib.Devices.AMPT @@ -8,11 +8,6 @@ - - - - - diff --git a/csharp/Lib/Devices/AMPT/Program.cs b/csharp/Lib/Devices/AMPT/Program.cs deleted file mode 100644 index 55fb5194d..000000000 --- a/csharp/Lib/Devices/AMPT/Program.cs +++ /dev/null @@ -1,28 +0,0 @@ -using InnovEnergy.Lib.Protocols.Modbus.Channels; -using InnovEnergy.Lib.Protocols.Modbus.Clients; -using InnovEnergy.Lib.Units; -using InnovEnergy.Lib.Utils; - -namespace InnovEnergy.Lib.Devices.AMPT; - -public static class Program -{ - public static Task Main(string[] args) - { - var ch = new TcpChannel("localhost", 5005); - var cl = new ModbusTcpClient(ch, 1); - var d = new AmptDevices(cl); - - while (true) - { - AmptStatus x = d.Read(); - - x.ToCsv().WriteLine(); - - //Console.WriteLine(x); - } - - - //Console.WriteLine(x); - } -} \ No newline at end of file diff --git a/csharp/Lib/Devices/Adam6360D/Program.cs b/csharp/Lib/Devices/Adam6360D/Program.cs deleted file mode 100644 index f0b3681da..000000000 --- a/csharp/Lib/Devices/Adam6360D/Program.cs +++ /dev/null @@ -1,20 +0,0 @@ -using InnovEnergy.Lib.Units; -using InnovEnergy.Lib.Utils; - -namespace InnovEnergy.Lib.Devices.Adam6360D; - -public static class Program -{ - public static Task Main(String[] args) - { - var d = new Adam6360DDevice("localhost", 2, 5006); - - while (true) - { - var x = d.Read(); - x.ToCsv().WriteLine(); - } - - - } -} \ No newline at end of file diff --git a/csharp/Lib/Devices/Battery48TL/Program.cs b/csharp/Lib/Devices/Battery48TL/Program.cs deleted file mode 100644 index c82568a96..000000000 --- a/csharp/Lib/Devices/Battery48TL/Program.cs +++ /dev/null @@ -1,35 +0,0 @@ -using InnovEnergy.Lib.Protocols.Modbus.Channels; -using InnovEnergy.Lib.Units; -using InnovEnergy.Lib.Utils; -using static InnovEnergy.Lib.Devices.Battery48TL.Battery48TlDevice; - -namespace InnovEnergy.Lib.Devices.Battery48TL; - -public static class Program -{ - public static Task Main(string[] args) - { - var host = new SshHost("10.2.3.115", "ie-entwicklung"); - var channel = new RemoteSerialChannel(host, "ttyUSB0", BaudRate, Parity, DataBits, StopBits); - - var nodes = new Byte[] { 2 }; - - var devices = nodes - .Select(n => new Battery48TlDevice(channel, n)) - .ToList(); - - var d = new Battery48TlDevices(devices); - - //var options = new JsonSerializerOptions { WriteIndented = true, Converters = { new JsonStringEnumConverter() }}; - - - while (true) - { - var x = d.Read(); - x.ToCsv().WriteLine(); - - //(x, options).Apply(JsonSerializer.Serialize).WriteLine(); - } - } - -} \ No newline at end of file diff --git a/csharp/Lib/Devices/EmuMeter/Program.cs b/csharp/Lib/Devices/EmuMeter/Program.cs deleted file mode 100644 index 604671b5d..000000000 --- a/csharp/Lib/Devices/EmuMeter/Program.cs +++ /dev/null @@ -1,24 +0,0 @@ -using InnovEnergy.Lib.Protocols.Modbus.Channels; -using InnovEnergy.Lib.Protocols.Modbus.Clients; -using InnovEnergy.Lib.Units; -using InnovEnergy.Lib.Utils; - -namespace InnovEnergy.Lib.Devices.EmuMeter; - -public static class Program -{ - public static Task Main(string[] args) - { - var ch = new TcpChannel("localhost", 5004); - var cl = new ModbusTcpClient(ch, 1); - var d = new EmuMeterDevice(cl); - - while (true) - { - var x = d.Read(); - x.ToCsv().WriteLine(); - } - - - } -} \ No newline at end of file diff --git a/csharp/Lib/Devices/Trumpf/TruConvertAc/Program.cs b/csharp/Lib/Devices/Trumpf/TruConvertAc/Program.cs deleted file mode 100644 index 6af219c56..000000000 --- a/csharp/Lib/Devices/Trumpf/TruConvertAc/Program.cs +++ /dev/null @@ -1,61 +0,0 @@ -// using InnovEnergy.Lib.Devices.Trumpf.SystemControl; -// using InnovEnergy.Lib.Devices.Trumpf.SystemControl.DataTypes; -// using InnovEnergy.Lib.Units; -// using InnovEnergy.Lib.Utils; -// -// namespace InnovEnergy.Lib.Devices.Trumpf.TruConvertAc; -// -// // TODO :remove -// -// public static class Program -// { -// public static void Main(String[] args) -// { -// var sc = new SystemControlDevice("localhost", 5001); -// var acDc1 = sc.AcDcSlave(1); -// var acDc2 = sc.AcDcSlave(2); -// -// -// while (true) -// { -// "================================================".WriteLine(); -// -// var r = sc.Read(); -// -// Console.WriteLine(DateTime.Now); -// r.ToString().Replace(",", "\n").Replace(" {", "\n").WriteLine("\n"); -// -// var c = r with -// { -// UseSlaveIdForAddressing = true, -// ReferenceFrame = ReferenceFrame.Consumer, -// GridType = GridType.GridTied400V50Hz, -// SystemConfig = SystemConfig.AcDcAndDcDc, -// CommunicationTimeout = null, -// SlaveErrorHandling = SlaveErrorHandling.Relaxed, -// SubSlaveErrorHandling = SubSlaveErrorHandling.Off -// }; -// -// sc.Write(c); -// -// var s1 = acDc1.Read(); -// -// s1.ToCsv().Replace(",", "\n").Replace(" {", "\n").WriteLine("\n"); -// -// -// s1.ResetAlarmsAndWarnings = true; -// s1.PowerStageEnable = true; -// -// acDc1.Write(s1); -// -// var s2 = acDc2.Read(); -// -// -// s2.ToString().Replace(",", "\n").Replace(" {", "\n").WriteLine("\n"); -// -// acDc2.Write(s2 with { ResetAlarmsAndWarnings = true, PowerStageEnable = true }); -// } -// -// -// } -// } \ No newline at end of file