修改
This commit is contained in:
@@ -85,6 +85,18 @@ namespace CapMachine.Wpf.Services
|
||||
|
||||
#region 程序驱动CAN
|
||||
|
||||
|
||||
private int _AutoSpeedSv;
|
||||
/// <summary>
|
||||
/// 转速SV
|
||||
/// </summary>
|
||||
public int AutoSpeedSv
|
||||
{
|
||||
get { return _AutoSpeedSv; }
|
||||
set { _AutoSpeedSv = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 转速 指令数据 实例
|
||||
/// </summary>
|
||||
@@ -143,6 +155,8 @@ namespace CapMachine.Wpf.Services
|
||||
{
|
||||
if (SpeedCanCmdData != null)
|
||||
{
|
||||
AutoSpeedSv = (int)SpeedData;
|
||||
|
||||
//首先是否判断是有斜率
|
||||
if (SpeedCanCmdData.LogicRuleDto == null)
|
||||
{
|
||||
@@ -153,7 +167,7 @@ namespace CapMachine.Wpf.Services
|
||||
{
|
||||
//LogicRuleService.ApplyExpressionFast(SpeedData, SpeedCanCmdData.LogicRuleDto);
|
||||
SpeedCanCmdData.SignalCmdValue = LogicRuleService.ApplyExpressionFast(SpeedData, SpeedCanCmdData.LogicRuleDto);
|
||||
Console.WriteLine($"实时转换后转速值:{SpeedCanCmdData.SignalCmdValue}-SV值:{SpeedData}" );
|
||||
Console.WriteLine($"实时转换后转速值:{SpeedCanCmdData.SignalCmdValue}-SV值:{SpeedData}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user