AHTC/RGD/RGD.Model/MDevice.cs
2025-05-19 09:22:33 +08:00

591 lines
14 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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