This commit is contained in:
@@ -870,7 +870,7 @@
|
||||
//
|
||||
uiLabel12.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
||||
uiLabel12.ForeColor = Color.FromArgb(64, 158, 255);
|
||||
uiLabel12.Location = new Point(488, 218);
|
||||
uiLabel12.Location = new Point(488, 214);
|
||||
uiLabel12.Name = "uiLabel12";
|
||||
uiLabel12.Size = new Size(80, 34);
|
||||
uiLabel12.Style = Sunny.UI.UIStyle.Custom;
|
||||
|
||||
@@ -314,6 +314,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
Debug.WriteLine($"读取状态失败: {ex.Message}");
|
||||
}
|
||||
}
|
||||
@@ -355,7 +356,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 190, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 300, 4);
|
||||
@@ -385,7 +386,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 190, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 308, 4);
|
||||
@@ -413,7 +414,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 190, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
@@ -443,7 +444,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = 0;
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 190, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
@@ -483,7 +484,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 192, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
@@ -513,7 +514,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 192, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
@@ -543,7 +544,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 192, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
@@ -572,7 +573,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I1x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = 0;
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 192, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//yy = 0;
|
||||
@@ -609,7 +610,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I4x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 194, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 300, 4);
|
||||
@@ -636,7 +637,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I3x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 194, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 308, 4);
|
||||
@@ -664,7 +665,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I2x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 194, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 304, 4);
|
||||
@@ -691,7 +692,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I1x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = 0;
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 194, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
@@ -728,7 +729,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I4x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 196, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 300, 4);
|
||||
@@ -755,7 +756,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I3x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 196, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 308, 4);
|
||||
@@ -782,7 +783,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I2x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 196, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 304, 4);
|
||||
@@ -809,7 +810,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I1x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = 0;
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 196, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//yy = 0;
|
||||
@@ -845,7 +846,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I4x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 198, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 300, 4);
|
||||
@@ -872,7 +873,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I3x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 198, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 308, 4);
|
||||
@@ -899,7 +900,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
classify = "I2x";//分类
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = float.Parse(uiLabel8.Text);
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 198, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
//ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 304, 4);
|
||||
@@ -927,7 +928,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
||||
|
||||
firetime = float.Parse(uiLabel7.Text);
|
||||
yy = 0;
|
||||
yh = float.Parse(uiLabel2.Text);
|
||||
yh = float.Parse(uiLabel12.Text);
|
||||
|
||||
//ushort[] fire = _modbusMaster?.ReadHoldingRegisters(1, 198, 2);
|
||||
//firetime = c.UshortToFloat(fire[1], fire[0]);//点火时间
|
||||
|
||||
Reference in New Issue
Block a user