using System; using System.Collections.Generic; using System.Text; namespace Model { public class MDevice { string _barcode; /// /// 托盘条形码 /// public string Barcode { set { _barcode = value; } get { return _barcode; } } int _devindex; /// /// 设备唯一索引 /// public int DeviceIndex { get { return _devindex; } set { _devindex = value; } } int _deviceKind; /// /// 设备类型索引 /// public int DeviceKind { get { return _deviceKind; } set { _deviceKind = value; } } int _dbw1address; /// /// DB1区的发送数据的起始地址 /// public int Dbw1Address { get { return _dbw1address; } set { _dbw1address = value; } } int _dbw1SendLength; /// /// DB1区的发送长度 /// public int Dbw1SendLength { get { return _dbw1SendLength; } set { _dbw1SendLength = value; } } int _dbw2address; /// /// DB2区的获取数据的起始地址 /// public int Dbw2Address { get { return _dbw2address; } set { _dbw2address = value; } } decimal _dbw2GetLength; /// /// DB2区的获取数据的长度 /// public decimal Dbw2Getlength { get { return _dbw2GetLength; } set { _dbw2GetLength = value; } } string _devname; /// /// 设备名称 /// public string DeviceName { get { return _devname; } set { _devname = value; } } int _runstate; /// /// 0空闲;1运行;2故障;3离线;4被停用;5动作完成 /// public int RunState { get { return _runstate; } set { _runstate = value; } } bool _havegoods; /// /// 是否载货 /// public bool HaveGoods { get { return _havegoods; } set { _havegoods = value; } } int _controlmode; /// /// 1自动,2半自动,3手动 /// public int ControlMode { get { return _controlmode; } set { _controlmode = value; } } int _xcoor; /// /// X坐标(列) /// public int XCoor { get { return _xcoor; } set { _xcoor = value; } } int _ycoor; /// /// Y坐标(层) /// public int YCoor { get { return _ycoor; } set { _ycoor = value; } } int _zcoor; /// /// Z坐标(1,2)排 /// public int ZCoor { get { return _zcoor; } set { _zcoor = value; } } int _taskno; /// /// 设备指令索引 /// public int TaskNo { get { return _taskno; } set { _taskno = value; } } char _ifKeyDevice; /// /// 是否为关键设备 /// public char IfKeyDevice { get { return _ifKeyDevice; } set { _ifKeyDevice = value; } } int _errorCode = 0;//20130226richard.liu /// /// 设备故障代码 /// public int ErrorCode { get { return _errorCode; } set { _errorCode = value; } } string _arrowLocation; /// /// 设备运行的目标位置(设备索引) /// public string ArrowLocation { get { return _arrowLocation; } set { _arrowLocation = value; } } string _CommType; /// /// 通讯类型库标识 /// public string CommType { get { return _CommType; } set { _CommType = value; } } string _BeDetected; /// /// 被提前检测的光电组:运行标志,故障点等;负数表示检测有探物 /// public string BeDetected { get { return _BeDetected; } set { _BeDetected = value; } } string _BindingDevice; /// /// 设备(入口处)探物检测开关的设备索引 /// public string BindingDevice { get { return _BindingDevice; } set { _BindingDevice = value; } } string _BindingDeviceOut; /// /// 设备出口处检测开关的设备索引 /// public string BindingDeviceOut { get { return _BindingDeviceOut; } set { _BindingDeviceOut = value; } } int _DeviceVisual; public int DeviceVisual { get { return _DeviceVisual; } set { _DeviceVisual = value; } } string _ControlName; public string ControlName { get { return _ControlName; } set { _ControlName = value; } } int _AppendBarcode; public int AppendBarcode { get { return _AppendBarcode; } set { _AppendBarcode = value; } } int _MaxSendCount; public int MaxSendCount { get { return _MaxSendCount; } set { _MaxSendCount = value; } } int _SendInterval; public int SendInterval { get { return _SendInterval; } set { _SendInterval = value; } } char _NeedOptimize; public char NeedOptimize { get { return _NeedOptimize; } set { _NeedOptimize = value; } } string _LocalIP; public string LocalIP { get { return _LocalIP; } set { _LocalIP = value; } } int _LocalPort; public int LocalPort { get { return _LocalPort; } set { _LocalPort = value; } } string _RemoteIP; public string RemoteIP { get { return _RemoteIP; } set { _RemoteIP = value; } } int _RemotePort; public int RemotePort { get { return _RemotePort; } set { _RemotePort = value; } } string _OPCProgID; public string OPCProgID { get { return _OPCProgID; } set { _OPCProgID = value; } } int _ErrorTaskNo; /// /// 发生错误的设备指令索引 /// public int ErrorTaskNo { get { return _ErrorTaskNo; } set { _ErrorTaskNo = value; } } string _SendOutDetect; /// /// 输送机送出时需要检测的光电信号设备索引 /// public string SendOutDetect { get { return _SendOutDetect; } set { _SendOutDetect = value; } } int[] _returnMessage; /// /// 通讯返回的信息 /// public int[] ReturnMessage { get { return _returnMessage; } set { _returnMessage = value; } } int[] _sendMessage; /// /// 通讯发送的信息 /// public int[] SendMessage { get { return _sendMessage; } set { _sendMessage = value; } } string _OnlyDetectIO; /// /// 判断一个设备是否只检测IO信号:1只检测IO信号 /// public string OnlyDetectIO { get { return _OnlyDetectIO; } set { _OnlyDetectIO = value; } } string _UseCommonDB; /// /// 判断一个设备是否使用通用DB区发送指令(长输送机链的中间输送机) /// public string UseCommonDB { get { return _UseCommonDB; } set { _UseCommonDB = value; } } string _IfCorrelDoubleFork; /// /// 是否为堆垛机多叉关联控制 /// public string IfCorrelDoubleFork { get { return _IfCorrelDoubleFork; } set { _IfCorrelDoubleFork = value; } } string _DoubleFork; /// /// 设备双叉属性:0,不确定;1近货叉;2远货叉 /// public string DoubleFork { get { return _DoubleFork; } set { _DoubleFork = value; } } //20100609 int _SerialPort; /// /// 串口序号 /// public int SerialPort { get { return _SerialPort; } set { _SerialPort = value; } } //20100609 string _CommSettings; /// /// 串口设置 /// public string CommSettings { get { return _CommSettings; } set { _CommSettings = value; } } //20100714 string _S7Connection; /// /// OPC连接ID,默认值:S7:[S7 connection_1] /// public string S7Connection { get { return _S7Connection; } set { _S7Connection = value; } } int _SplitByte; /// /// 20101118设备光电开关占用的字节 /// public int SplitByte { get { return _SplitByte; } set { _SplitByte = value; } } int _SplitByte_0; public int SplitByte_0 { get { return _SplitByte_0; } set { _SplitByte_0 = value; } } int _SplitByte_1; public int SplitByte_1 { get { return _SplitByte_1; } set { _SplitByte_1 = value; } } int _SplitByte_2; public int SplitByte_2 { get { return _SplitByte_2; } set { _SplitByte_2 = value; } } int _SplitByte_3; public int SplitByte_3 { get { return _SplitByte_3; } set { _SplitByte_3 = value; } } int _SplitByte_4; public int SplitByte_4 { get { return _SplitByte_4; } set { _SplitByte_4 = value; } } int _SplitByte_5; public int SplitByte_5 { get { return _SplitByte_5; } set { _SplitByte_5 = value; } } int _SplitByte_6; public int SplitByte_6 { get { return _SplitByte_6; } set { _SplitByte_6 = value; } } int _SplitByte_7; public int SplitByte_7 { get { return _SplitByte_7; } set { _SplitByte_7 = value; } } int _ManTaskReserve; /// /// 调度任务逻辑预约锁 /// public int ManTaskReserve { get { return _ManTaskReserve; } set { _ManTaskReserve = value; } } bool _logicHaveGoods; /// /// 是否逻辑有物:数据库对应字段F_HaveGoods值为1时表示逻辑有物 /// public bool LogicHaveGoods { get { return _logicHaveGoods; } set { _logicHaveGoods = value; } } string _ReadSubscription; /// /// 读订阅开始的设备索引 /// public string ReadSubscription { get { return _ReadSubscription; } set { _ReadSubscription = value; } } private string _UnControl; public string UnControl { get { return _UnControl; } set { _UnControl = value; } } //20120820 private int _forkamount; /// /// 堆垛机货叉数量:1,2,3。。。 /// public int ForkAmount { get { return _forkamount; } set { _forkamount = value; } } private int _stackReach; /// /// 堆垛机货叉进深:1代表单进伸;2代表双进伸 /// public int StackReach { get { return _stackReach; } set { _stackReach = value; } } private int _mutexStack; /// /// 互斥堆垛机 /// public int MutexStack { get { return _mutexStack; } set { _mutexStack = value; } } private int _virtualStack; /// /// 多个垛机同轨时的虚拟堆垛机 /// public int VirtualStack { get { return _virtualStack; } set { _virtualStack = value; } } private int _stackAbendOut; /// /// 堆垛机放货重时的异常口 /// public int StackAbendOut { get { return _stackAbendOut; } set { _stackAbendOut = value; } } private string _stackZeroColLayer; /// /// 堆垛机的零点列和层坐标“3,1”代表零点是3列1层 /// public string StackZeroColLayer { get { return _stackZeroColLayer; } set { _stackZeroColLayer = value; } } private string _specialZXArea; /// /// 互斥垛机无法到达的区域"排,起始列-终止列;排,起始列-终止列" /// public string SpecialZXArea { get { return _specialZXArea; } set { _specialZXArea = value; } } private string _PRIZXArea; /// /// 两个垛机均可到达,本垛机优先考虑的区域"排,起始列-终止列;排,起始列-终止列" /// public string PRIZXArea { get { return _PRIZXArea; } set { _PRIZXArea = value; } } private string _ifClearDB1; /// /// 设备报告运行时,是否清除DB1数据 /// public string IfClearDB1 { get { return _ifClearDB1; } set { _ifClearDB1 = value; } } //20120820 private int _scheduledDailyTaskCount; /// /// 20160501设备每天计划完成管理任务数量 /// public int ScheduledDailyTaskCount { get { return _scheduledDailyTaskCount; } set { _scheduledDailyTaskCount = value; } } } }