| | |
| | | package com.billion.main.plcServer; |
| | | |
| | | import com.billion.main.bs.service.IBsBomChildInfoService; |
| | | import com.billion.main.bs.service.IBsLineInfoService; |
| | | import com.billion.main.constant.Constants; |
| | | import com.billion.main.da.service.IDaCollectionParamConfService; |
| | | import com.billion.main.da.service.IDaMaterialCollectionService; |
| | |
| | | public IDaMaterialCollectionService daMaterialCollectionService; |
| | | @Autowired |
| | | public ISysCountService sysCountService; |
| | | |
| | | @Autowired |
| | | public IBsLineInfoService bsLineInfoService; |
| | | |
| | | @Override |
| | | public void run(ApplicationArguments args) throws Exception { |
| | |
| | | Constants.PLC4.add(Constants.OP030); |
| | | Constants.PLC4.add(Constants.OP050); |
| | | Constants.PLC4.add(Constants.OP110); |
| | | Constants.PLC4.add(Constants.OP070_1); |
| | | Constants.PLC4.add(Constants.OP070); |
| | | Constants.PLC4.add(Constants.OP075); |
| | | Constants.PLC4.add(Constants.OP080); |
| | | Constants.PLC4.add(Constants.OP140); |
| | | //上线工位 |
| | | Constants.ONLINE.add(Constants.C005); |
| | | Constants.ONLINE.add(Constants.OP005); |
| | | //下线工位 |
| | | Constants.OFFLINE.add(Constants.C060); |
| | | Constants.OFFLINE.add(Constants.OP300); |
| | | Constants.OFFLINE.add(Constants.OP310); |
| | | |
| | | |
| | | |
| | |
| | | bsBomChildInfoService, |
| | | daCollectionParamConfService, |
| | | daMaterialCollectionService, |
| | | sysCountService); |
| | | sysCountService, |
| | | bsLineInfoService); |
| | | |
| | | List<String> lists = getList(); |
| | | System.out.println("订阅内容:"+lists); |
| | | miloService.subscriptionFromOpcUa(lists,OPCUaSubscription); |
| | | miloService.subscriptionFromOpcUa(lists,50,OPCUaSubscription); |
| | | |
| | | } |
| | | |
| | |
| | | lists.add("PLC4.C040.RecordData"); |
| | | lists.add("PLC4.OP030.RecordData"); |
| | | lists.add("PLC4.OP050.RecordData"); |
| | | lists.add("PLC4.OP070_1.RecordData"); |
| | | lists.add("PLC3.OP110.RecordData"); |
| | | lists.add("PLC3.OP140.RecordData"); |
| | | lists.add("PLC4.OP070.RecordData"); |
| | | lists.add("PLC4.OP075.RecordData"); |
| | | lists.add("PLC4.OP080.RecordData"); |
| | | lists.add("PLC4.OP110.RecordData"); |
| | | lists.add("PLC4.OP140.RecordData"); |
| | | |
| | | // //TEST |
| | | // lists.add("TEST.C005.RecordData"); |
| | | // lists.add("TEST.C005.WorkOrderRequest"); |
| | | // lists.add("TEST.C060.RecordData"); |
| | | // lists.add("TEST.OP005.RecordData"); |
| | | // lists.add("TEST.OP005.WorkOrderRequest"); |
| | | // lists.add("TEST.OP010.RecordData"); |
| | | // lists.add("TEST.OP310.RecordData"); |
| | | // lists.add("TEST.P010.RecordData"); |
| | | // lists.add("TEST.P010.WorkOrderRequest"); |
| | | //TEST |
| | | lists.add("TEST.C005.RecordData"); |
| | | lists.add("TEST.C005.WorkOrderRequest"); |
| | | lists.add("TEST.C060.RecordData"); |
| | | lists.add("TEST.OP005.RecordData"); |
| | | lists.add("TEST.OP005.WorkOrderRequest"); |
| | | lists.add("TEST.OP010.RecordData"); |
| | | lists.add("TEST.OP300.RecordData"); |
| | | lists.add("TEST.P010.RecordData"); |
| | | lists.add("TEST.P010.WorkOrderRequest"); |
| | | |
| | | return lists; |
| | | } |