From d255aa1f4135d276474cac6a90536312efa7e2b6 Mon Sep 17 00:00:00 2001 From: "liulb@mesnac.com" Date: Fri, 2 Feb 2024 11:02:42 +0800 Subject: [PATCH] new --- .../Mesnac.Action.ChemicalWeighing/DBHelper/PlcConnect.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/DBHelper/PlcConnect.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/DBHelper/PlcConnect.cs index 3796b22..2a4ebde 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/DBHelper/PlcConnect.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/DBHelper/PlcConnect.cs @@ -22,13 +22,13 @@ namespace Mesnac.Action.ChemicalWeighing SiemensS7Net s7 = new SiemensS7Net(siemensPLCS); //配料IP - s7.IpAddress = "127.0.0.1";// "192.168.10.130"; + s7.IpAddress = "192.168.10.130"; s7.Port = 102; var su = s7.ConnectServer(); if (!su.IsSuccess) { - s7.IpAddress = "127.0.0.1";// "192.168.10.130"; + s7.IpAddress = "192.168.10.130"; s7.Port = 102; var su1 = s7.ConnectServer(); if (!su1.IsSuccess)