diff --git a/DataBlockHelper/PlcConnect.cs b/DataBlockHelper/PlcConnect.cs index 04f91a1..518e12a 100644 --- a/DataBlockHelper/PlcConnect.cs +++ b/DataBlockHelper/PlcConnect.cs @@ -21,8 +21,13 @@ namespace DataBlockHelper SiemensPLCS siemensPLCS = SiemensPLCS.S1500; SiemensS7Net s7 = new SiemensS7Net(siemensPLCS); s7.SetPersistentConnection(); + + //输送IP s7.IpAddress = "192.168.1.110"; + + //配料IP //s7.IpAddress = "127.18.4.100"; + s7.Port = 102; var su = s7.ConnectServer();