Files
CapMachine/CapMachine.Model/MeterConfig/MeterSpeed.cs
Tyrone CT 06ac590208 压缩机PTC 功能
参数控制,由跟随速度到单个大参数控制
2025-08-14 17:28:15 +08:00

171 lines
4.6 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model
{
/// <summary>
/// 速度表设置
/// </summary>
[Table(Name = "MeterSpeed")]
public class MeterSpeed
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 程序步骤序号
/// </summary>
[Column(Name = "StepNo")]
public int StepNo { get; set; }
/// <summary>
/// 开始值
/// </summary>
[Column(Name = "StartValue")]
public double StartValue { get; set; }
/// <summary>
/// 结束值
/// </summary>
[Column(Name = "EndValue")]
public double EndValue { get; set; }
/// <summary>
/// 维持时间
/// </summary>
[Column(Name = "KeepTime")]
public int KeepTime { get; set; }
/// <summary>
/// 配置值类型
/// </summary>
[Column(MapType = typeof(int))]
public ConfigValueType ValueType { get; set; }
/// <summary>
/// 常值
/// 在ValueType为常值时会使用
/// </summary>
[Column(Name = "Constant")]
public double Constant { get; set; }
/// <summary>
/// ///////////////////////////////////////////跟随速度小步骤的常量数据///////////////////////////////////////////////////////
/// </summary>
/// <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
///对应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/1PTC使能
/// 跟随速度步骤的常值数据
/// </summary>
[Column(Name = "PTCEnable")]
public bool PTCEnable { get; set; }
///// <summary>
///// 加热器 PTC功率1
///// 跟随速度步骤的常值数据
///// </summary>
//[Column(Name = "PTCPw1")]
//public double PTCPw1 { get; set; }
///// <summary>
///// 加热器 PTC功率2
///// 跟随速度步骤的常值数据
///// </summary>
//[Column(Name = "PTCPw2")]
//public double PTCPw2 { get; set; }
///// <summary>
///// 加热器 PTC水流量
///// 跟随速度步骤的常值数据
///// </summary>
//[Column(Name = "PTCWaterFlow")]
//public double PTCWaterFlow { get; set; }
///// <summary>
///// 加热器 PTC水温
///// 跟随速度步骤的常值数据
///// </summary>
//[Column(Name = "PTCWaterTemp")]
//public double PTCWaterTemp { get; set; }
///// <summary>
///// PID No
///// 跟随速度步骤的常值数据
///// </summary>
//[Column(Name = "PIDNo")]
//public int PIDNo { get; set; }
///// <summary>
///// 限幅 No
///// 跟随速度步骤的常值数据
///// </summary>
//[Column(Name = "LimitNo")]
//public int LimitNo { get; set; }
///// <summary>
///// 报警 No
///// 跟随速度步骤的常值数据
///// </summary>
//[Column(Name = "AlarmNo")]
//public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long ProStepId { get; set; }
public ProStep? ProStep { get; set; }
}
}