This commit is contained in:
gongxh
2022-05-10 15:21:13 +08:00
parent 8f9e5a8ee2
commit f9f8e587d1
22 changed files with 1216 additions and 831 deletions

View File

@@ -18,7 +18,7 @@ namespace CleanMachine.Model.BAS
private string plcItemCode;
private string plcItemName;
private int plcItemType;
private int plcItemDataType;
private PlcItemTypeDesc plcItemDataType;
private int plcItemDataLength;
private string plcItemPriAddress;
private string plcItemModbusAddress;
@@ -76,7 +76,7 @@ namespace CleanMachine.Model.BAS
/// <summary>
///
/// </summary>
public int PlcItemDataType
public PlcItemTypeDesc PlcItemDataType
{
get { return this.plcItemDataType; }
set { this.plcItemDataType=value;}

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model.BAS
{
public enum PlcItemTypeDesc
{
/// <summary>
/// M 类型布尔变量
/// </summary>
M,
/// <summary>
/// D 类型整数变量
/// </summary>
D,
/// <summary>
/// X 类型布尔变量
/// </summary>
X,
/// <summary>
/// Y 类型布尔变量
/// </summary>
Y
}
}

View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model.CM
{
public class ShiftCount
{
private DateTime dateTime;
private int count;
/// <summary>
///
/// </summary>
public DateTime DateTime
{
get { return this.dateTime; }
set { this.dateTime = value; }
}
/// <summary>
///
/// </summary>
public int Count
{
get { return this.count; }
set { this.count = value; }
}
}
}