更改了报警地址

复位地址
数据记录进行了校验
This commit is contained in:
2025-06-17 18:14:38 +08:00
parent 4cbb3955a4
commit 3fde19855d
15 changed files with 1377 additions and 418 deletions

View File

@@ -28,6 +28,10 @@ namespace CapMachine.Wpf.Dtos
/// </summary>
public string? StateAddress { get; set; }
/// <summary>
/// 状态地址类型
/// </summary>
public HandSwitchStateType StateAddressType { get; set; }
private bool _State;
/// <summary>
@@ -40,8 +44,30 @@ namespace CapMachine.Wpf.Dtos
}
/// <summary>
/// 数据结果
/// 状态数据结果-布尔
/// </summary>
public OperateResult<bool>? StateOperateResult { get; set; }
public OperateResult<bool>? StateBoolOperateResult { get; set; }
/// <summary>
/// 状态数据结果-字
/// </summary>
public OperateResult<short>? StateShortOperateResult { get; set; }
}
/// <summary>
/// 手自动切换状态类型枚举
/// </summary>
public enum HandSwitchStateType
{
/// <summary>
/// 布尔类型
/// </summary>
Bool = 1,
/// <summary>
/// 字类型
/// </summary>
Word = 2,
}
}