一些优化:CAN和PLC地址的优化

This commit is contained in:
2025-01-01 13:11:13 +08:00
parent 8b21846424
commit 26569135d3
182 changed files with 87934 additions and 261 deletions

View File

@@ -66,6 +66,16 @@ namespace CapMachine.Wpf.Models.Tag
/// </summary>
string PVAddress { get; set; }
/// <summary>
/// 地址
/// </summary>
string SVAddress { get; set; }
/// <summary>
/// 地址
/// </summary>
string MVAddress { get; set; }
/// <summary>
/// Index
/// </summary>
@@ -85,5 +95,6 @@ namespace CapMachine.Wpf.Models.Tag
/// 是否为仪表参数
/// </summary>
bool IsMeter { get; set; }
string AutoHandSwitchAddress { get; set; }
}
}

View File

@@ -24,7 +24,7 @@ namespace CapMachine.Wpf.Models.Tag
MaxValue = maxValue;
MinValue = minValue;
Precision = precision;
IsMeter = isMeter;
NameNoUnit = nameNoUnit;
@@ -162,6 +162,23 @@ namespace CapMachine.Wpf.Models.Tag
/// </summary>
public bool IsMeter { get; set; }
/// <summary>
/// 手自动切换地址
/// </summary>
public string AutoHandSwitchAddress { get; set; }
private bool _AutoHandState;
/// <summary>
/// 手自动状态
/// </summary>
public bool AutoHandState
{
get { return _AutoHandState; }
set { _AutoHandState = value; RaisePropertyChanged(); }
}
private double _EngValue;
/// <summary>
/// 工程值
@@ -208,6 +225,8 @@ namespace CapMachine.Wpf.Models.Tag
}
}
}
}
}