You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
using System.ComponentModel;
|
|
|
|
namespace CompressorXN_Model.ViewModel.Plc
|
|
{
|
|
/// <summary>
|
|
/// 变量
|
|
/// </summary>
|
|
public class Variable
|
|
{
|
|
/// <summary>
|
|
/// 所属通信组
|
|
/// </summary>
|
|
[DisplayName("所属通信组")]
|
|
public string GroupName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 变量名称
|
|
/// </summary>
|
|
[DisplayName("变量名称")]
|
|
public string VariableName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 开始地址
|
|
/// </summary>
|
|
[DisplayName("开始地址")]
|
|
public int StartAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数据类型
|
|
/// </summary>
|
|
[DisplayName("数据类型")]
|
|
public string DataType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 偏移量
|
|
/// </summary>
|
|
[DisplayName("偏移量")]
|
|
public int Offset { get; set; }
|
|
|
|
/// <summary>
|
|
/// 读取值
|
|
/// </summary>
|
|
public object ReadVal { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[DisplayName("备注")]
|
|
public string Remark { get; set; }
|
|
}
|
|
}
|