正在改尺寸测量

This commit is contained in:
2025-04-18 14:04:02 +08:00
parent 6182dc2192
commit ae11376f5a
47 changed files with 6732 additions and 1834 deletions

View File

@ -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()}");
}
}