172.18.4.100 修复Ip 地址

dep
我叫锄头 12 months ago
parent 7c05455c2c
commit 2f1fd1f77c

@ -670,7 +670,6 @@ namespace DataBlockHelper.DBHelpers
/// true 状态是停止 /// true 状态是停止
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public static List<bool> GetWaterStatus() public static List<bool> GetWaterStatus()
{ {
var siemensS7Net = PlcConnect.Instance; var siemensS7Net = PlcConnect.Instance;

@ -27,8 +27,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 = "172.18.4.100"; s7.IpAddress = "172.18.4.100";
s7.IpAddress = "192.168.1.110"; //s7.IpAddress = "192.168.1.110";
s7.Port = 102; s7.Port = 102;
var su = s7.ConnectServer(); var su = s7.ConnectServer();

Loading…
Cancel
Save