change - 区分配料和输送的IP

dep_deliver
wangsr 11 months ago
parent 2b40efb4f9
commit 859f25f1e1

@ -21,8 +21,8 @@ namespace DataBlockHelper
SiemensPLCS siemensPLCS = SiemensPLCS.S1500; SiemensPLCS siemensPLCS = SiemensPLCS.S1500;
SiemensS7Net s7 = new SiemensS7Net(siemensPLCS); SiemensS7Net s7 = new SiemensS7Net(siemensPLCS);
s7.SetPersistentConnection(); s7.SetPersistentConnection();
//s7.IpAddress = "192.168.1.110"; s7.IpAddress = "192.168.1.110";
s7.IpAddress = "127.18.4.100"; //s7.IpAddress = "127.18.4.100";
s7.Port = 102; s7.Port = 102;
var su = s7.ConnectServer(); var su = s7.ConnectServer();

Loading…
Cancel
Save