Fix typecodes

This commit is contained in:
Felix Weiß
2023-07-21 18:23:20 +02:00
parent 9bcffad77b
commit a399e0fa16
38 changed files with 1058 additions and 619 deletions

View File

@@ -13,8 +13,7 @@ internal class Program {
static async Task AsyncMain () {
//the library provides a logging tool, comment this out if needed
Logger.LogLevel = LogLevel.Verbose;
Logger.OnNewLogMessage((d, l, m) => Console.WriteLine($"{d}: {m}"));
Logger.LogLevel = LogLevel.Critical;
//create a new interface to the plc using ethernet / tcp ip
//the using keyword is optional, if you want to use your PLC instance
@@ -58,6 +57,11 @@ internal class Program {
plc.ConfigureConnection("192.168.115.212", 9094);
await plc.ConnectAsync();
plc.Disconnect();
plc.ConfigureConnection("192.168.115.214", 9094);
await plc.ConnectAsync();
}
//you can also find any applicable source endpoints by using: