Tag模型

This commit is contained in:
2024-09-27 17:48:18 +08:00
parent 6bf0d5d7ba
commit 684973e6b7
19 changed files with 7723 additions and 145 deletions

View 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; }
}
}

View 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;
}
}

View File

@@ -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>
///参数编号116
/// 跟随速度步骤的常值数据
/// </summary>
[Column(Name = "ParNo")]
public int ParNo { get; set; }
/// <summary>
///EV14
/// 跟随速度步骤的常值数据
/// </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; }
}
}