Tag模型
This commit is contained in:
31
CapMachine.Model/PLCParsModel/PlcMeterStepCellQuick.cs
Normal file
31
CapMachine.Model/PLCParsModel/PlcMeterStepCellQuick.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 步骤的PLC数据单元
|
||||
/// </summary>
|
||||
public class PlcMeterStepCellQuick
|
||||
{
|
||||
/// <summary>
|
||||
/// 步骤序号
|
||||
/// 从1开始
|
||||
/// </summary>
|
||||
public int Step { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 值
|
||||
/// </summary>
|
||||
public double? Value { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 地址
|
||||
/// </summary>
|
||||
public string? Address { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
53
CapMachine.Model/PLCParsModel/PlcParsDataQuick.cs
Normal file
53
CapMachine.Model/PLCParsModel/PlcParsDataQuick.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Model.PLCParsModel
|
||||
{
|
||||
public class PlcParsDataQuick
|
||||
{
|
||||
public PlcParsDataQuick()
|
||||
{
|
||||
Steps = new List<PlcMeterStepCellQuick>();
|
||||
Unit = "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Model 名称/英文名称
|
||||
/// </summary>
|
||||
public string? EnName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单位
|
||||
/// </summary>
|
||||
public string? Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分辨率
|
||||
/// </summary>
|
||||
public int? Ratio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 步骤集合信息
|
||||
/// </summary>
|
||||
public List<PlcMeterStepCellQuick> Steps { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 值首地址
|
||||
/// </summary>
|
||||
public int ValueStartAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 步长
|
||||
/// </summary>
|
||||
public int Step { get; set; } = 100;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -157,5 +157,48 @@ namespace CapMachine.Model.QuickMeterConfig
|
||||
///// </summary>
|
||||
//[Column(Name = "xxxx")]
|
||||
//public double xxxx { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 输出锁定(0/1)
|
||||
/// 跟随速度步骤的常值数据
|
||||
/// </summary>
|
||||
[Column(Name = "OutLock")]
|
||||
public bool OutLock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///参数编号(1~16)
|
||||
/// 跟随速度步骤的常值数据
|
||||
/// </summary>
|
||||
[Column(Name = "ParNo")]
|
||||
public int ParNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///EV(1~4)
|
||||
/// 跟随速度步骤的常值数据
|
||||
/// </summary>
|
||||
[Column(Name = "Ev")]
|
||||
public int Ev { get; set; }
|
||||
|
||||
// <summary>
|
||||
/// 压缩机使能(0/1)
|
||||
/// 跟随速度步骤的常值数据
|
||||
/// </summary>
|
||||
[Column(Name = "CapEnable")]
|
||||
public bool CapEnable { get; set; }
|
||||
|
||||
// <summary>
|
||||
/// 吸排气阀(0/1)
|
||||
/// 跟随速度步骤的常值数据
|
||||
/// </summary>
|
||||
[Column(Name = "InhExhValve")]
|
||||
public bool InhExhValve { get; set; }
|
||||
|
||||
// <summary>
|
||||
/// 加热器使能(0/1)
|
||||
/// 跟随速度步骤的常值数据
|
||||
/// </summary>
|
||||
[Column(Name = "HeatEnable")]
|
||||
public bool HeatEnable { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user