liulb@mesnac.com 12 months ago
parent 71d96c6291
commit d255aa1f41

@ -22,13 +22,13 @@ namespace Mesnac.Action.ChemicalWeighing
SiemensS7Net s7 = new SiemensS7Net(siemensPLCS); SiemensS7Net s7 = new SiemensS7Net(siemensPLCS);
//配料IP //配料IP
s7.IpAddress = "127.0.0.1";// "192.168.10.130"; s7.IpAddress = "192.168.10.130";
s7.Port = 102; s7.Port = 102;
var su = s7.ConnectServer(); var su = s7.ConnectServer();
if (!su.IsSuccess) if (!su.IsSuccess)
{ {
s7.IpAddress = "127.0.0.1";// "192.168.10.130"; s7.IpAddress = "192.168.10.130";
s7.Port = 102; s7.Port = 102;
var su1 = s7.ConnectServer(); var su1 = s7.ConnectServer();
if (!su1.IsSuccess) if (!su1.IsSuccess)

Loading…
Cancel
Save