namespace RGD.Model { public class MDevice { private string _barcode; /// /// 托盘条形码 /// public string Barcode { set { _barcode = value; } get { return _barcode; } } private int _devindex; /// /// 设备唯一索引 /// public int DeviceIndex { get { return _devindex; } set { _devindex = value; } } private int _deviceKind; /// /// 设备类型索引 1垛机;2输送线 /// public int DeviceKind { get { return _deviceKind; } set { _deviceKind = value; } } private int _dbw1address; /// /// DB1区的发送数据的起始地址 /// public int Dbw1Address { get { return _dbw1address; } set { _dbw1address = value; } } private int _dbw1SendLength; /// /// DB1区的发送长度 /// public int Dbw1SendLength { get { return _dbw1SendLength; } set { _dbw1SendLength = value; } } private int _dbw2address; /// /// DB2区的获取数据的起始地址 /// public int Dbw2Address { get { return _dbw2address; } set { _dbw2address = value; } } private decimal _dbw2GetLength; /// /// DB2区的获取数据的长度 /// public decimal Dbw2Getlength { get { return _dbw2GetLength; } set { _dbw2GetLength = value; } } private string _devname; /// /// 设备名称 /// public string DeviceName { get { return _devname; } set { _devname = value; } } private int _runstate; /// /// 0空闲;1运行;2故障;3离线;4被停用;5动作完成 /// public int RunState { get { return _runstate; } set { _runstate = value; } } private int _lastrunstate;//20110411 /// /// 上一次的运行状态 /// public int LastRunState { get { return _lastrunstate; } set { _lastrunstate = value; } } private bool _havegoods; /// /// 是否载货 /// public bool HaveGoods { get { return _havegoods; } set { _havegoods = value; } } private int _controlmode; /// /// 1自动,2半自动,3手动 /// public int ControlMode { get { return _controlmode; } set { _controlmode = value; } } private int _xcoor; /// /// X坐标(列) /// public int XCoor { get { return _xcoor; } set { _xcoor = value; } } private int _ycoor; /// /// Y坐标(层) /// public int YCoor { get { return _ycoor; } set { _ycoor = value; } } private int _zcoor; /// /// Z坐标(1,2)排 /// public int ZCoor { get { return _zcoor; } set { _zcoor = value; } } private int _taskno; /// /// 设备指令索引 /// public int TaskNo { get { return _taskno; } set { _taskno = value; } } private char _ifKeyDevice; /// /// 是否为关键设备 /// public char IfKeyDevice { get { return _ifKeyDevice; } set { _ifKeyDevice = value; } } private int _errorCode = -1; /// /// 设备故障代码 /// public int ErrorCode { get { return _errorCode; } set { _errorCode = value; } } private int _currentlocation = -1; /// /// 贴标机当前位置 /// public int CurrentLocation { get { return _currentlocation; } set { _currentlocation = value; } } private int _plcaskno = -1; /// /// 贴标机当前位置 /// public int PLCAskNo { get { return _plcaskno; } set { _plcaskno = value; } } private string _arrowLocation; /// /// 设备运行的目标位置(设备索引) /// public string ArrowLocation { get { return _arrowLocation; } set { _arrowLocation = value; } } private string _CommType; /// /// 通讯类型库标识 /// public string CommType { get { return _CommType; } set { _CommType = value; } } private string _BeDetected; /// /// 被提前检测的光电组:运行标志,故障点等;负数表示检测有探物 /// public string BeDetected { get { return _BeDetected; } set { _BeDetected = value; } } private string _BindingDevice; /// /// 设备(入口处)探物检测开关的设备索引 /// public string BindingDevice { get { return _BindingDevice; } set { _BindingDevice = value; } } private string _BindingDeviceOut; /// /// 设备出口处检测开关的设备索引 /// public string BindingDeviceOut { get { return _BindingDeviceOut; } set { _BindingDeviceOut = value; } } private int _DeviceVisual; public int DeviceVisual { get { return _DeviceVisual; } set { _DeviceVisual = value; } } private string _ControlName; public string ControlName { get { return _ControlName; } set { _ControlName = value; } } private int _AppendBarcode; public int AppendBarcode { get { return _AppendBarcode; } set { _AppendBarcode = value; } } private int _MaxSendCount; public int MaxSendCount { get { return _MaxSendCount; } set { _MaxSendCount = value; } } private int _SendInterval; public int SendInterval { get { return _SendInterval; } set { _SendInterval = value; } } private char _NeedOptimize; public char NeedOptimize { get { return _NeedOptimize; } set { _NeedOptimize = value; } } private string _LocalIP; public string LocalIP { get { return _LocalIP; } set { _LocalIP = value; } } private int _LocalPort; public int LocalPort { get { return _LocalPort; } set { _LocalPort = value; } } private string _RemoteIP; public string RemoteIP { get { return _RemoteIP; } set { _RemoteIP = value; } } private int _RemotePort; public int RemotePort { get { return _RemotePort; } set { _RemotePort = value; } } private string _OPCProgID; public string OPCProgID { get { return _OPCProgID; } set { _OPCProgID = value; } } private int _ErrorTaskNo; /// /// 发生错误的设备指令索引 /// public int ErrorTaskNo { get { return _ErrorTaskNo; } set { _ErrorTaskNo = value; } } private string _SendOutDetect; /// /// 输送机送出时需要检测的光电信号设备索引 /// public string SendOutDetect { get { return _SendOutDetect; } set { _SendOutDetect = value; } } private int[] _returnMessage; /// /// 通讯返回的信息 /// public int[] ReturnMessage { get { return _returnMessage; } set { _returnMessage = value; } } private string _OnlyDetectIO; /// /// 判断一个设备是否只检测IO信号:1只检测IO信号 /// public string OnlyDetectIO { get { return _OnlyDetectIO; } set { _OnlyDetectIO = value; } } private string _UseCommonDB; /// /// 判断一个设备是否使用通用DB区发送指令(长输送机链的中间输送机) /// public string UseCommonDB { get { return _UseCommonDB; } set { _UseCommonDB = value; } } private string _IfCorrelDoubleFork; /// /// 是否为堆垛机双叉关联控制 /// public string IfCorrelDoubleFork { get { return _IfCorrelDoubleFork; } set { _IfCorrelDoubleFork = value; } } private string _DoubleForkDetect; /// /// 双叉堆垛机在一个输送机取两个盘需要额外检测的探物开关 /// public string DoubleForkDetect { get { return _DoubleForkDetect; } set { _DoubleForkDetect = value; } } private string _DoubleFork; /// /// 设备双叉属性:0,不确定;1近货叉;2远货叉 /// public string DoubleFork { get { return _DoubleFork; } set { _DoubleFork = value; } } //20100609 private int _SerialPort; /// /// 串口序号 /// public int SerialPort { get { return _SerialPort; } set { _SerialPort = value; } } //20100609 private string _CommSettings; /// /// 串口设置 /// public string CommSettings { get { return _CommSettings; } set { _CommSettings = value; } } //20100714 private string _S7Connection; /// /// OPC连接ID,默认值:S7:[S7 connection_1] /// public string S7Connection { get { return _S7Connection; } set { _S7Connection = value; } } private int _SplitByte; /// /// 设备光电开关占用的字节 /// public int SplitByte { get { return _SplitByte; } set { _SplitByte = value; } } private int _SplitByte_0; /// /// 20101118设备光电开关占用的字节bit0,入口探物 /// public int SplitByte_0 { get { return _SplitByte_0; } set { _SplitByte_0 = value; } } private int _SplitByte_1; /// /// 20101118设备光电开关占用的字节bit1,出口探物 /// public int SplitByte_1 { get { return _SplitByte_1; } set { _SplitByte_1 = value; } } private int _SplitByte_2; /// /// 20101118设备光电开关占用的字节bit2,顶升高位 /// public int SplitByte_2 { get { return _SplitByte_2; } set { _SplitByte_2 = value; } } private int _SplitByte_3; /// /// 20101118设备光电开关占用的字节bit3,顶升低位 /// public int SplitByte_3 { get { return _SplitByte_3; } set { _SplitByte_3 = value; } } private int _SplitByte_4; /// /// 20101118设备光电开关占用的字节bit4,顶升低位 /// public int SplitByte_4 { get { return _SplitByte_4; } set { _SplitByte_4 = value; } } private int _SplitByte_5; /// /// 20101118设备光电开关占用的字节bit5,顶升低位 /// public int SplitByte_5 { get { return _SplitByte_5; } set { _SplitByte_5 = value; } } private int _SplitByte_6; /// /// 20101118设备光电开关占用的字节bit6,顶升低位 /// public int SplitByte_6 { get { return _SplitByte_6; } set { _SplitByte_6 = value; } } private int _SplitByte_7; /// /// 20101118设备光电开关占用的字节bit7,顶升低位 /// public int SplitByte_7 { get { return _SplitByte_7; } set { _SplitByte_7 = value; } } } }