// using InnovEnergy.Lib.Devices.Trumpf.SystemControl.DataTypes; // using InnovEnergy.Lib.Utils; // // namespace InnovEnergy.Lib.Devices.Trumpf.SystemControl; // // // TODO: remove // // public static class Program // { // public static void Main(String[] args) // { // var d = new SystemControlDevice("localhost", 5001); // // while (true) // { // var r = d.Read(); // // Console.WriteLine(DateTime.Now); // r.ToString().Replace(",", "\n").Replace(" {", "\n").WriteLine(); // // "Alarms".WriteLine(); // r.Alarms.Count.WriteLine(); // r.Alarms.Select(a => a.ToString()).JoinLines().WriteLine(); // // "Warnings".WriteLine(); // r.NumberOfWarnings.WriteLine(); // r.Warnings.Select(a => a.ToString()).JoinLines().WriteLine(); // // var c = r with // { // UseSlaveIdForAddressing = true, // ReferenceFrame = ReferenceFrame.Consumer, // GridType = GridType.GridTied400V50Hz, // SystemConfig = SystemConfig.AcDcAndDcDc, // CommunicationTimeout = null, // SlaveErrorHandling = SlaveErrorHandling.Relaxed, // SubSlaveErrorHandling = SubSlaveErrorHandling.Off // }; // // // // d.Write(c); // // } // } // }