This commit is contained in:
xyy
2026-01-07 15:07:11 +08:00
parent 3aeb8cdf3b
commit 6398b86008

View File

@@ -810,8 +810,8 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
private void PenetrationForm_Load(object sender, EventArgs e)
{
string plcIp = "192.168.1.10";
//string plcIp = "127.0.0.1";
//string plcIp = "192.168.1.10";
string plcIp = "127.0.0.1";
bool initSuccess = Data.ModbusResourceManager.Instance.Init(plcIp, 502);
if (!initSuccess)
{
@@ -1154,7 +1154,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
}
else
{
uiLabel23.Text = $"{powerValue:F3} W";
uiLabel23.Text = $"{powerValue:F3} ";
}
_waitingResponse = false;
@@ -1168,7 +1168,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
{
if (ShouldFilterPowerValue(power))
{
WriteToLog($"过滤噪声值: {power:F3} W");
WriteToLog($"过滤噪声值: {power:F3} ");
uiLabel23.Text = "0.000";
}
else