mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
Fix typecodes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user