You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Mesnac.Compressor.Entity
{
public enum ComType
{
/// <summary>
/// 条码扫描
/// </summary>
BarcodeScan,
/// <summary>
/// 刻字机发送串口
/// </summary>
Engraving,
/// <summary>
/// 刻字机扫描串口
/// </summary>
EngravingScan,
/// <summary>
/// 重投串口
/// </summary>
IsRestart
}
public enum StationState
{
Namorl,
Stop,
Fault
}
public enum BarCodeType
{
//系统主条码
M,
//部件条码
A,
B,
C
}
public class CDataStruct
{
public string Para1 { get; set; }
public string Para2 { get; set; }
public string Para3 { get; set; }
public string Para4 { get; set; }
public string Para5 { get; set; }
public string Para6 { get; set; }
public string Para7 { get; set; }
public string Para8 { get; set; }
public string EPC { get; set; }
public string[] data = new string[6];
}
public enum RfidWorkType
{
//设置工作模式
setWorkMode = 0xAA,
//设置工作模式应答
setWorkModeRetrun = 0xAB,
//设置过滤EPC
setFlatEpc = 0xAC,
//设置过滤EPC应答
setFlatEpcReturn = 0xAD,
//自动模式上报数据
setAutoUp = 0xBB,
ReadOneReturn=0xAF,
//更换机种
ChangeMachine = 0xCA,
//从服务器获取当前
DownLoadPicture=0xDE
}
}