Пример #1
0
        public ECAMSTransPort(ECAMSDataAccess.DeviceModel devModel, IPlcRW plcRW, DeviceBll devBll, ControlInterfaceBll ctlInterfaceBll, ControlTaskBll ctlTaskBll, LogBll logBll)
            : base(devModel, plcRW, devBll, ctlInterfaceBll, ctlTaskBll, logBll)
        {
            switch (devModel.DeviceID)
            {
            case "2002":
            {
                devName = "A1库入库口";
                break;
            }

            case "2003":
            {
                devName = "A1库分容出口";
                break;
            }

            case "2004":
            {
                devName = "A1库分容入口";
                break;
            }

            case "2005":
            {
                devName = "A1库出口";
                break;
            }

            case "2006":
            {
                devName = "B1库入口";
                break;
            }

            case "2007":
            {
                devName = "B1库二次检测出口";
                break;
            }

            case "2008":
            {
                devName = "B1库的空筐入口";
                break;
            }

            case "2009":
            {
                devName = "B1库的出口";
                break;
            }

            default:
                break;
            }
        }
Пример #2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="devModel"></param>
        /// <param name="plcRW"></param>
        /// <param name="ctlInterfaceBll"></param>
        /// <param name="ctlTaskBll"></param>
        public DevBase(ECAMSDataAccess.DeviceModel devModel, IPlcRW plcRW, DeviceBll devBll)
        {
            this.devModel = devModel;
            this.plcRW    = plcRW;
            this.devBll   = devBll;


            plcDataDb1     = new byte[devModel.BytesLenDB1];
            plcDataDb2     = new byte[devModel.BytesLenDB2];
            plcDataDb1Last = new byte[devModel.BytesLenDB1];
            plcDataDb2Last = new byte[devModel.BytesLenDB2];
            DebugSimModel  = true; //模拟调试用
        }
Пример #3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="devModel"></param>
 /// <param name="plcRW"></param>
 /// <param name="ctlInterfaceBll"></param>
 /// <param name="ctlTaskBll"></param>
 public ECAMSDevBase(ECAMSDataAccess.DeviceModel devModel, IPlcRW plcRW, DeviceBll devBll, ControlInterfaceBll ctlInterfaceBll, ControlTaskBll ctlTaskBll, LogBll logBll)
 {
     this.devModel        = devModel;
     this.plcRW           = plcRW;
     this.devBll          = devBll;
     this.ctlInterfaceBll = ctlInterfaceBll;
     this.ctlTaskBll      = ctlTaskBll;
     this.logBll          = logBll;
     this.rfidRecordBll   = new RfidRdRecordBll();
     this.palletTraceBll  = new PalletHistoryRecordBll();
     //plcDataDb1 = new byte[devModel.BytesLenDB1];
     //plcDataDb2 = new byte[devModel.BytesLenDB2];
     //plcDataDb1Last = new byte[devModel.BytesLenDB1];
     //plcDataDb2Last = new byte[devModel.BytesLenDB2];
     this.dicCommuDataDB1 = new Dictionary <int, DevCommDatatype>();
     this.dicCommuDataDB2 = new Dictionary <int, DevCommDatatype>();
     dicDataDB1Last       = new Dictionary <int, object>();
     dicDataDB2Last       = new Dictionary <int, object>();
     dicDB1Read           = new Dictionary <int, object>();
     //DebugMode = true; //模拟调试用
 }
Пример #4
0
 public XYZGriper(ECAMSDataAccess.DeviceModel devModel, IPlcRW plcRW, DeviceBll devBll)
     : base(devModel, plcRW, devBll)
 {
 }
Пример #5
0
 public TransPort(ECAMSDataAccess.DeviceModel devModel, IPlcRW plcRW, DeviceBll devBll)
     : base(devModel, plcRW, devBll)
 {
 }
Пример #6
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(ECAMSDataAccess.DeviceModel model)
 {
     return(dal.Update(model));
 }
Пример #7
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(ECAMSDataAccess.DeviceModel model)
 {
     return(dal.Add(model));
 }