You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
149 lines
3.4 KiB
149 lines
3.4 KiB
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Web;
|
||
|
|
||
|
namespace OpcServerHost.Common
|
||
|
{
|
||
|
public class OpcEnumGeter
|
||
|
{
|
||
|
|
||
|
public enum COLUMNTYPE
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 加工参数
|
||
|
/// </summary>
|
||
|
PARAMETER = 0,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 完成标记
|
||
|
/// </summary>
|
||
|
COMPLETEFLAG = 1,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 可操作标记
|
||
|
/// </summary>
|
||
|
OPERATEFLAG = 2,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 设备扫描条码存储位,如果设备只扫描一个条码,那么捕获该类型信息,直接就是条码信息
|
||
|
/// </summary>
|
||
|
EQUIPSCANCODE = 3,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 设备扫描完成标记,如果设备要 扫描多个条码,当扫描完所有的条码后
|
||
|
/// 设备将该值设为true,捕获该值后将在获取 BARCODE = 8的条码信息
|
||
|
/// </summary>
|
||
|
EQUIPSCANFLAG = 4,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 一个设备的多个模块公用的一段数据
|
||
|
/// </summary>
|
||
|
PUBLICDATA = 5,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 加工参数读取完成标记写入标记
|
||
|
/// </summary>
|
||
|
PARAMETERREADED = 6,
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// 程序中断标记
|
||
|
/// </summary>
|
||
|
INTERRUPT = 7,
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// 存储条码位
|
||
|
/// </summary>
|
||
|
BARCODE = 8,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 临时完成值
|
||
|
/// </summary>
|
||
|
TEMPVALUE = 9,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 临时完成标记
|
||
|
/// </summary>
|
||
|
TEMPCOMPLETE = 10,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 模架号
|
||
|
/// </summary>
|
||
|
MOULDCARRIER = 11,
|
||
|
/// <summary>
|
||
|
/// 模具号
|
||
|
/// </summary>
|
||
|
MOULDNUMBER=12,
|
||
|
/// <summary>
|
||
|
/// 完成模具号
|
||
|
/// </summary>
|
||
|
COMPLETEMOULD=13,
|
||
|
/// <summary>
|
||
|
/// 操作模具号
|
||
|
/// </summary>
|
||
|
OPERATINGMOULD=14
|
||
|
|
||
|
}
|
||
|
|
||
|
public enum MESSAGETYPE
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 加工参数
|
||
|
/// </summary>
|
||
|
PRODUCTCODE,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 完成标记
|
||
|
/// </summary>
|
||
|
PROCESSFINISH,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 中断信号
|
||
|
/// </summary>
|
||
|
INTERRUPT,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 模架号
|
||
|
/// </summary>
|
||
|
MOULDCARRIER,
|
||
|
/// <summary>
|
||
|
/// 模具号
|
||
|
/// </summary>
|
||
|
MOULDNUMBER,
|
||
|
/// <summary>
|
||
|
/// 其他
|
||
|
/// </summary>
|
||
|
OTHER
|
||
|
}
|
||
|
|
||
|
public enum SENDORDERTYPE
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 操作指令
|
||
|
/// </summary>
|
||
|
OPERATEORDER,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 配置指令
|
||
|
/// </summary>
|
||
|
CONFIGORDER,
|
||
|
|
||
|
/// <summary>
|
||
|
/// 清空指令
|
||
|
/// </summary>
|
||
|
RECOVERYORDER
|
||
|
}
|
||
|
|
||
|
public enum ORDERTYPE
|
||
|
{
|
||
|
//不可操作命令
|
||
|
NOK,
|
||
|
//可操作命令
|
||
|
OK,
|
||
|
//撤回
|
||
|
RECOVER
|
||
|
}
|
||
|
}
|
||
|
}
|