te
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Style="{StaticResource SettingLabel}" Text="最大力采集"/>
|
||||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_MaxForceCollect"/>
|
||||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_MaxForceCollect" IsReadOnly="True"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
@@ -139,7 +139,7 @@
|
||||
<TextBlock Style="{StaticResource GroupTitle}" Text="⚙ 力值与温度校准"/>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Style="{StaticResource SettingLabel}" Text="力显示"/>
|
||||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_ForceDisplay"/>
|
||||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_ForceDisplay" IsReadOnly="True"/>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Style="{StaticResource SettingLabel}" Text="力系数"/>
|
||||
@@ -151,7 +151,7 @@
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Style="{StaticResource SettingLabel}" Text="温度系数"/>
|
||||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_TemperatureCoefficient"/>
|
||||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_TemperatureCoefficient" IsReadOnly="True"/>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Style="{StaticResource SettingLabel}" Text="温度显示"/>
|
||||
|
||||
@@ -75,10 +75,23 @@ namespace 片剂四用仪.Views
|
||||
}
|
||||
}
|
||||
}
|
||||
// 正常循环的Delay,同样处理取消异常
|
||||
try
|
||||
{
|
||||
await Task.Delay(1000, token);
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
// 窗口关闭时的取消异常,正常退出循环
|
||||
break;
|
||||
}
|
||||
catch { }
|
||||
|
||||
await Task.Delay(1000, token);
|
||||
//await Task.Delay(1000, token);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,7 +136,7 @@ namespace 片剂四用仪.Views
|
||||
new PlcParamMapping("txt_HardnessDisplacement", 310, PlcParamType.Float),
|
||||
new PlcParamMapping("txt_HardnessMotorLimit", 298, PlcParamType.Float),
|
||||
new PlcParamMapping("txt_HardnessDamageThreshold", 400, PlcParamType.Float),
|
||||
new PlcParamMapping("txt_MaxForceCollect", 72, PlcParamType.Float),
|
||||
|
||||
|
||||
new PlcParamMapping("txt_BrittlenessTestTime", 410, PlcParamType.Int),
|
||||
new PlcParamMapping("txt_PreBrittlenessMass", 412, PlcParamType.Int),
|
||||
@@ -136,11 +149,15 @@ namespace 片剂四用仪.Views
|
||||
new PlcParamMapping("txt_DissolutionTime", 430, PlcParamType.Int),
|
||||
new PlcParamMapping("txt_DissolutionSamplingInterval", 432, PlcParamType.Int),
|
||||
|
||||
new PlcParamMapping("txt_ForceDisplay", 1314, PlcParamType.Float),
|
||||
|
||||
new PlcParamMapping("txt_ForceCoefficient", 1320, PlcParamType.Float),
|
||||
new PlcParamMapping("txt_ForceProtection", 1322, PlcParamType.Float),
|
||||
new PlcParamMapping("txt_TemperatureCoefficient", 1428, PlcParamType.Float),
|
||||
|
||||
new PlcParamMapping("txt_TemperatureDisplay", 1430, PlcParamType.Float),
|
||||
|
||||
new PlcParamMapping("txt_MaxForceCollect", 72, PlcParamType.Float),//读取
|
||||
new PlcParamMapping("txt_ForceDisplay", 1314, PlcParamType.Float),//读取
|
||||
new PlcParamMapping("txt_TemperatureCoefficient", 1428, PlcParamType.Float),//读取
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user