正在改尺寸测量
This commit is contained in:
@ -76,7 +76,8 @@ namespace DH.Devices.PLC
|
||||
{
|
||||
Connected = false;
|
||||
LogAsync(DateTime.Now, LogLevel.Error, $"PLC初始化失败");
|
||||
throw new Exception($"{IP}:{Port}PLC连接失败!");
|
||||
return false;
|
||||
//throw new Exception($"{IP}:{Port}PLC连接失败!");
|
||||
}
|
||||
|
||||
|
||||
@ -85,7 +86,8 @@ namespace DH.Devices.PLC
|
||||
{
|
||||
Connected = false;
|
||||
LogAsync(DateTime.Now, LogLevel.Error, $"{IP}:{Port}PLC连接失败!失败原因:{ex.ToString()}");
|
||||
throw new Exception($"{IP}:{Port}PLC连接失败!失败原因:{ex.ToString()}");
|
||||
return false;
|
||||
//throw new Exception($"{IP}:{Port}PLC连接失败!失败原因:{ex.ToString()}");
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user