| | |
| | | import cn.stylefeng.guns.modular.dq.materialTraceability.service.MaterialTraceabilityService; |
| | | import cn.stylefeng.guns.modular.em.equipmentAlarm.service.EquipmentAlarmService; |
| | | import cn.stylefeng.guns.modular.em.equipmentStatus.service.EquipmentStatusService; |
| | | import cn.stylefeng.guns.modular.gm.greaseManage.service.GreaseManageService; |
| | | import cn.stylefeng.guns.modular.om.productionOrdeInfo.service.ProductionOrdeInfoService; |
| | | import cn.stylefeng.guns.modular.sc.repairManageInfo.service.RepairManageInfoService; |
| | | import cn.stylefeng.guns.modular.sc.serialNumbersConf.service.SerialNumbersConfService; |
| | |
| | | |
| | | @Autowired |
| | | public LocationInfoService locationInfoService; |
| | | @Autowired |
| | | public GreaseManageService greaseManageService; |
| | | |
| | | //OP010 |
| | | private Item OP010_F_HEART_BEAT;//心跳 |
| | |
| | | |
| | | private Item OP050_S_PRODUCT_STATE_CODE;//产品状态编码 |
| | | |
| | | |
| | | private Item OP050_OIL_STATE;//油脂状态 |
| | | //OP070 |
| | | private Item OP070_F_HEART_BEAT;//心跳 |
| | | private Item OP070_J_PLC_START;//PLC开始 |
| | |
| | | |
| | | private Item BOP030_S_PRODUCT_STATE_CODE;//产品状态编码 |
| | | |
| | | private Item BOP030_OIL_STATE;//油脂状态 |
| | | //BOP030B |
| | | private Item BOP030B_F_HEART_BEAT;//心跳 |
| | | private Item BOP030B_J_PLC_START;//PLC开始 |
| | |
| | | |
| | | private Item DOP020_S_PRODUCT_STATE_CODE;//产品状态编码 |
| | | |
| | | private Item DOP020_OIL_STATE;//油脂状态 |
| | | |
| | | /** |
| | | * 单例模式 |
| | |
| | | MaterialTraceabilityService materialTraceabilityService, |
| | | EquipmentInfoService equipmentInfoService, |
| | | RepairManageInfoService repairManageInfoService, |
| | | LocationInfoService locationInfoService |
| | | LocationInfoService locationInfoService, |
| | | GreaseManageService greaseManageService |
| | | ) throws Exception { |
| | | this.productionOrdeInfoService = productionOrdeInfoService; |
| | | this.passingStationCollectionService = passingStationCollectionService; |
| | |
| | | this.equipmentInfoService = equipmentInfoService; |
| | | this.repairManageInfoService = repairManageInfoService; |
| | | this.locationInfoService = locationInfoService; |
| | | this.greaseManageService = greaseManageService; |
| | | |
| | | // 加载配置文件 |
| | | final ConnectionInformation ci = getCLSIDConnectionInfomation(); |
| | |
| | | access.addItem(OPCElement.OP140_F_HEART_BEAT, new DataCallBack_OP140_F_HEART_BEAT());//心跳 |
| | | |
| | | //OP150回调 |
| | | /* |
| | | access.addItem(OPCElement.OP150_F_HEART_BEAT, new DataCallBack_OP150_F_HEART_BEAT());//心跳 |
| | | */ |
| | | |
| | | //OP160回调 |
| | | access.addItem(OPCElement.OP160_F_HEART_BEAT, new DataCallBack_OP160_F_HEART_BEAT());//心跳 |
| | |
| | | access.addItem(OPCElement.DOP010_F_HEART_BEAT, new DataCallBack_DOP010_F_HEART_BEAT());//心跳 |
| | | |
| | | //DOP020回调 |
| | | access.addItem(OPCElement.DOP020_F_HEART_BEAT, new DataCallBack_DOP020_F_HEART_BEAT());//心跳 |
| | | /* access.addItem(OPCElement.DOP020_F_HEART_BEAT, new DataCallBack_DOP020_F_HEART_BEAT());//心跳*/ |
| | | |
| | | //EOP010回调 |
| | | access.addItem(OPCElement.EOP010_F_HEART_BEAT, new DataCallBack_EOP010_F_HEART_BEAT());//心跳 |
| | |
| | | |
| | | OP050_S_PRODUCT_STATE_CODE = OP050_GROUP.addItem((OPCElement.OP050_S_PRODUCT_STATE_CODE));//产品状态编码 |
| | | |
| | | |
| | | OP050_OIL_STATE = OP050_GROUP.addItem((OPCElement.OP050_OIL_STATE));//油脂状态 |
| | | |
| | | //OP070组 |
| | | final Group OP070_GROUP = server.addGroup("OP070"); |
| | |
| | | OP140_S_PRODUCT_STATE_CODE = OP140_GROUP.addItem((OPCElement.OP140_S_PRODUCT_STATE_CODE));//产品状态编码 |
| | | |
| | | //OP150组 |
| | | final Group OP150_GROUP = server.addGroup("OP150"); |
| | | /* final Group OP150_GROUP = server.addGroup("OP150"); |
| | | OP150_F_HEART_BEAT = OP150_GROUP.addItem((OPCElement.OP150_F_HEART_BEAT));//心跳 |
| | | OP150_J_PLC_START = OP150_GROUP.addItem((OPCElement.OP150_J_PLC_START));//PLC开始 |
| | | OP150_J_PC_WRITE_ORDER = OP150_GROUP.addItem((OPCElement.OP150_J_PC_WRITE_ORDER));//PC下发工单 |
| | |
| | | OP150_S_PRODUCT_CODE = OP150_GROUP.addItem((OPCElement.OP150_S_PRODUCT_CODE));//产品编号 |
| | | OP150_S_SFC_CODE = OP150_GROUP.addItem((OPCElement.OP150_S_SFC_CODE));//总成编码 |
| | | |
| | | OP150_S_PRODUCT_STATE_CODE = OP150_GROUP.addItem((OPCElement.OP150_S_PRODUCT_STATE_CODE));//产品状态编码 |
| | | OP150_S_PRODUCT_STATE_CODE = OP150_GROUP.addItem((OPCElement.OP150_S_PRODUCT_STATE_CODE));//产品状态编码*/ |
| | | |
| | | //OP160组 |
| | | final Group OP160_GROUP = server.addGroup("OP160"); |
| | |
| | | BOP030_S_SFC_CODE = BOP030_GROUP.addItem((OPCElement.BOP030_S_SFC_CODE));//总成编码 |
| | | |
| | | BOP030_S_PRODUCT_STATE_CODE = BOP030_GROUP.addItem((OPCElement.BOP030_S_PRODUCT_STATE_CODE));//产品状态编码 |
| | | |
| | | BOP030_OIL_STATE = BOP030_GROUP.addItem((OPCElement.BOP030_OIL_STATE));//油脂状态 |
| | | |
| | | |
| | | |
| | | //BOP030B组 |
| | | final Group BOP030B_GROUP = server.addGroup("BOP030B"); |
| | |
| | | DOP010_P_REPAIR_LOCATION = DOP010_GROUP.addItem((OPCElement.DOP010_P_REPAIR_LOCATION));//返修工位 |
| | | |
| | | //DOP020组 |
| | | final Group DOP020_GROUP = server.addGroup("DOP020"); |
| | | /*final Group DOP020_GROUP = server.addGroup("DOP020"); |
| | | DOP020_F_HEART_BEAT = DOP020_GROUP.addItem((OPCElement.DOP020_F_HEART_BEAT));//心跳 |
| | | DOP020_J_PLC_START = DOP020_GROUP.addItem((OPCElement.DOP020_J_PLC_START));//PLC开始 |
| | | DOP020_J_PC_WRITE_ORDER = DOP020_GROUP.addItem((OPCElement.DOP020_J_PC_WRITE_ORDER));//PC下发工单 |
| | |
| | | DOP020_S_SFC_CODE = DOP020_GROUP.addItem((OPCElement.DOP020_S_SFC_CODE));//总成编码 |
| | | |
| | | DOP020_S_PRODUCT_STATE_CODE = DOP020_GROUP.addItem((OPCElement.DOP020_S_PRODUCT_STATE_CODE));//产品状态编码 |
| | | |
| | | DOP020_OIL_STATE = DOP020_GROUP.addItem((OPCElement.DOP020_OIL_STATE));//油脂状态*/ |
| | | |
| | | |
| | | // start reading |
| | | access.bind(); |
| | | } catch (final JIException e) { |
| | |
| | | public Item getDOP010_P_REPAIR_LOCATION() { |
| | | return DOP010_P_REPAIR_LOCATION; |
| | | } |
| | | |
| | | public GreaseManageService getGreaseManageService() { |
| | | return greaseManageService; |
| | | } |
| | | |
| | | public Item getOP050_OIL_STATE() { |
| | | return OP050_OIL_STATE; |
| | | } |
| | | |
| | | public Item getBOP030_OIL_STATE() { |
| | | return BOP030_OIL_STATE; |
| | | } |
| | | |
| | | public Item getDOP020_OIL_STATE() { |
| | | return DOP020_OIL_STATE; |
| | | } |
| | | } |