快速工况的LV电压
CANLIN数据小数点处理
This commit is contained in:
@@ -80,6 +80,11 @@ namespace CapMachine.Wpf.Models.Tag.Cell
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 临时数据
|
||||||
|
/// </summary>
|
||||||
|
private double _EngValueTemp = -1;
|
||||||
|
|
||||||
private double _EngValue;
|
private double _EngValue;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 工程值 SV
|
/// 工程值 SV
|
||||||
@@ -89,9 +94,12 @@ namespace CapMachine.Wpf.Models.Tag.Cell
|
|||||||
get { return _EngValue; }
|
get { return _EngValue; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value != _EngValue)
|
if (value != _EngValueTemp)
|
||||||
{
|
{
|
||||||
_EngValue = value;
|
_EngValueTemp = value;
|
||||||
|
//有些从CANLIN读取的数据有很长的小数点需要处理
|
||||||
|
_EngValue = Math.Round(value, DecimalPoint);
|
||||||
|
//_EngValue = value;
|
||||||
RaisePropertyChanged();
|
RaisePropertyChanged();
|
||||||
//工程值转换成字符串,可以灵活显示
|
//工程值转换成字符串,可以灵活显示
|
||||||
EngValueStr = Math.Round(value, DecimalPoint).ToString();
|
EngValueStr = Math.Round(value, DecimalPoint).ToString();
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace CapMachine.Wpf.ProPars
|
|||||||
|
|
||||||
new PlcParsDataQuick(){ Name="SUBCOOL出口温度",EnName="LubePress",Step=100,Steps=new List<PlcMeterStepCellQuick>(),Ratio=10,Unit="" ,ValueStartAddress=1016, },
|
new PlcParsDataQuick(){ Name="SUBCOOL出口温度",EnName="LubePress",Step=100,Steps=new List<PlcMeterStepCellQuick>(),Ratio=10,Unit="" ,ValueStartAddress=1016, },
|
||||||
|
|
||||||
new PlcParsDataQuick(){ Name="LV电压",EnName="LVVol",Step=100,Steps=new List<PlcMeterStepCellQuick>(),Ratio=10,Unit="" ,ValueStartAddress=1024, },
|
new PlcParsDataQuick(){ Name="LV电压",EnName="LVVol",Step=100,Steps=new List<PlcMeterStepCellQuick>(),Ratio=1,Unit="" ,ValueStartAddress=1024, },
|
||||||
|
|
||||||
new PlcParsDataQuick(){ Name="OCR",EnName="OCR",Step=100,Steps=new List<PlcMeterStepCellQuick>(),Ratio=10,Unit="" ,ValueStartAddress=1020, },
|
new PlcParsDataQuick(){ Name="OCR",EnName="OCR",Step=100,Steps=new List<PlcMeterStepCellQuick>(),Ratio=10,Unit="" ,ValueStartAddress=1020, },
|
||||||
|
|
||||||
|
|||||||
@@ -1418,7 +1418,7 @@ namespace CapMachine.Wpf.Services
|
|||||||
|
|
||||||
while (ThreadEnable)
|
while (ThreadEnable)
|
||||||
{
|
{
|
||||||
await Task.Delay(100);
|
await Task.Delay(300);
|
||||||
//await Task.CompletedTask;
|
//await Task.CompletedTask;
|
||||||
|
|
||||||
DiagnosticsTime.Reset();
|
DiagnosticsTime.Reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user