New functions

This commit is contained in:
Felix Weiß
2023-07-23 15:29:29 +02:00
parent eec1479406
commit bf78156a9d
17 changed files with 701 additions and 175 deletions

View File

@@ -26,6 +26,7 @@ internal class Program {
//connect async to the plc
await plc.ConnectAsync();
await plc.SendCommandAsync($"%EE#RP0000000004");
//check if the connection was established
if (!plc.IsConnected) {
@@ -62,6 +63,14 @@ internal class Program {
plc.ConfigureConnection("192.168.115.214", 9094);
await plc.ConnectAsync();
plc.Disconnect();
plc.ConfigureConnection("192.168.178.55", 9094);
await plc.ConnectAsync();
//await plc.SendCommandAsync($"%EE#RR0000100");
//await plc.SendCommandAsync($"%EE#RCCR09030903");
await plc.SendCommandAsync($"%EE#RP0000000067");
}
//you can also find any applicable source endpoints by using: