using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model
{
///
/// PLC 解析信息数据
///
public class PlcParsData
{
public PlcParsData()
{
//实例化
Steps=new List ();
Unit = "";
}
///
/// 名称
///
public string? Name { get; set; }
///
/// Model 名称/英文名称
///
public string? EnName { get; set; }
///
/// 单位
///
public string? Unit { get; set; }
///
/// 分辨率
///
public int? Ratio { get; set; }
///
/// 步骤集合信息
///
public List Steps { get; set; }
///
/// 值首地址
///
public int? ValueStartAddress { get; set; }
///
/// 分钟首地址
///
public int? MinStartAddress { get; set; }
///
/// 秒首地址
///
public int? SecStartAddress { get; set; }
///
/// 循环首地址
///
public int? CycleStartAddress { get; set; }
///
/// 步长
///
public int Step { get; set; } = 100;
///
/// 设置类型
///
public AddressInfo? SetAddressInfo { get; set; }
}
///
/// 地址信息
///
public enum AddressInfo
{
///
/// 无时间和次数,整个程序段都是恒值
///
NoTimeAndCycle=1,
///
/// 无次数,也就是代表了没有多个参数列表了,也就没有斜坡的
///
NoCycle = 2,
///
/// OK
///
OK =3,
}
}