|
|
|
@ -23,10 +23,10 @@ namespace DataBlockHelper
|
|
|
|
|
s7.SetPersistentConnection();
|
|
|
|
|
|
|
|
|
|
//输送IP
|
|
|
|
|
s7.IpAddress = "192.168.1.110";
|
|
|
|
|
// s7.IpAddress = "192.168.1.110";
|
|
|
|
|
|
|
|
|
|
//配料IP
|
|
|
|
|
//s7.IpAddress = "172.18.4.100";
|
|
|
|
|
s7.IpAddress = "172.18.4.110";
|
|
|
|
|
|
|
|
|
|
s7.Port = 102;
|
|
|
|
|
var su = s7.ConnectServer();
|
|
|
|
|