2022-05-05 20:18:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//模板信息:{"Template":{"Language":"C#"}}
|
|
|
|
|
//输出信息:{"Extension":".cs","FileName":"Model\\BAS\\PlcItem"}
|
|
|
|
|
using System;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
namespace CleanMachine.Model.BAS
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class PlcItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
private int plcItemId;
|
|
|
|
|
private string plcItemCode;
|
|
|
|
|
private string plcItemName;
|
|
|
|
|
private int plcItemType;
|
2022-05-10 15:21:13 +08:00
|
|
|
private PlcItemTypeDesc plcItemDataType;
|
2022-05-05 20:18:34 +08:00
|
|
|
private int plcItemDataLength;
|
|
|
|
|
private string plcItemPriAddress;
|
|
|
|
|
private string plcItemModbusAddress;
|
|
|
|
|
private string plcItemDeviationAddress;
|
|
|
|
|
private string plcItemValue;
|
|
|
|
|
private int usedFlag;
|
|
|
|
|
private int delFlag;
|
|
|
|
|
private int createBy;
|
|
|
|
|
private DateTime createTime;
|
|
|
|
|
private int updateBy;
|
|
|
|
|
private DateTime updateTime;
|
|
|
|
|
private int dataVersion;
|
|
|
|
|
private string remarks1;
|
|
|
|
|
private string remarks2;
|
|
|
|
|
private string remarks3;
|
|
|
|
|
private string remarks4;
|
|
|
|
|
private string remarks5;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int PlcItemId
|
|
|
|
|
{
|
|
|
|
|
get { return this.plcItemId; }
|
|
|
|
|
set { this.plcItemId=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PlcItemCode
|
|
|
|
|
{
|
|
|
|
|
get { return this.plcItemCode; }
|
|
|
|
|
set { this.plcItemCode=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PlcItemName
|
|
|
|
|
{
|
|
|
|
|
get { return this.plcItemName; }
|
|
|
|
|
set { this.plcItemName=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int PlcItemType
|
|
|
|
|
{
|
|
|
|
|
get { return this.plcItemType; }
|
|
|
|
|
set { this.plcItemType=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2022-05-10 15:21:13 +08:00
|
|
|
public PlcItemTypeDesc PlcItemDataType
|
2022-05-05 20:18:34 +08:00
|
|
|
{
|
|
|
|
|
get { return this.plcItemDataType; }
|
|
|
|
|
set { this.plcItemDataType=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int PlcItemDataLength
|
|
|
|
|
{
|
|
|
|
|
get { return this.plcItemDataLength; }
|
|
|
|
|
set { this.plcItemDataLength=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PlcItemPriAddress
|
|
|
|
|
{
|
|
|
|
|
get { return this.plcItemPriAddress; }
|
|
|
|
|
set { this.plcItemPriAddress=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PlcItemModbusAddress
|
|
|
|
|
{
|
|
|
|
|
get { return this.plcItemModbusAddress; }
|
|
|
|
|
set { this.plcItemModbusAddress=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PlcItemDeviationAddress
|
|
|
|
|
{
|
|
|
|
|
get { return this.plcItemDeviationAddress; }
|
|
|
|
|
set { this.plcItemDeviationAddress=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PlcItemValue
|
|
|
|
|
{
|
|
|
|
|
get { return this.plcItemValue; }
|
|
|
|
|
set { this.plcItemValue=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int UsedFlag
|
|
|
|
|
{
|
|
|
|
|
get { return this.usedFlag; }
|
|
|
|
|
set { this.usedFlag=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int DelFlag
|
|
|
|
|
{
|
|
|
|
|
get { return this.delFlag; }
|
|
|
|
|
set { this.delFlag=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int CreateBy
|
|
|
|
|
{
|
|
|
|
|
get { return this.createBy; }
|
|
|
|
|
set { this.createBy=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime CreateTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.createTime; }
|
|
|
|
|
set { this.createTime=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int UpdateBy
|
|
|
|
|
{
|
|
|
|
|
get { return this.updateBy; }
|
|
|
|
|
set { this.updateBy=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime UpdateTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.updateTime; }
|
|
|
|
|
set { this.updateTime=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int DataVersion
|
|
|
|
|
{
|
|
|
|
|
get { return this.dataVersion; }
|
|
|
|
|
set { this.dataVersion=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Remarks1
|
|
|
|
|
{
|
|
|
|
|
get { return this.remarks1; }
|
|
|
|
|
set { this.remarks1=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Remarks2
|
|
|
|
|
{
|
|
|
|
|
get { return this.remarks2; }
|
|
|
|
|
set { this.remarks2=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Remarks3
|
|
|
|
|
{
|
|
|
|
|
get { return this.remarks3; }
|
|
|
|
|
set { this.remarks3=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Remarks4
|
|
|
|
|
{
|
|
|
|
|
get { return this.remarks4; }
|
|
|
|
|
set { this.remarks4=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Remarks5
|
|
|
|
|
{
|
|
|
|
|
get { return this.remarks5; }
|
|
|
|
|
set { this.remarks5=value;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|