| | |
| | | * 获取其他信息 |
| | | */ |
| | | @GetMapping("/other") |
| | | public R monitorOther(@RequestParam("crnId") Integer crnId) { |
| | | public R monitorOther(@RequestParam("crnId") Integer crnId, @RequestParam("ledId") Integer ledId) { |
| | | Double xSpeed = 0.0D; |
| | | Double ySpeed = 0.0D; |
| | | Double zSpeed = 0.0D; |
| | |
| | | } |
| | | |
| | | // 获取输送线plc线程 |
| | | LedThread ledThread = (LedThread) SlaveConnection.get(SlaveType.Led, crnId); |
| | | LedThread ledThread = (LedThread) SlaveConnection.get(SlaveType.Led, ledId); |
| | | String ledContent = ledThread.getStringBuffer().toString(); |
| | | // ledContent = "ask的模块萨满大算了萨满大了\n 是窘境到埃及嗲家嗲\n 萨达姆打开萨满大凯撒麦当劳萨满大老师"; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | @RequestMapping("/monitor/{cnrId}") |
| | | @RequestMapping("/monitor/{cnrId}/{ledId}") |
| | | public void monitor(@PathVariable("cnrId") Integer cnrId, |
| | | @PathVariable("ledId") Integer ledId, |
| | | HttpServletResponse response) { |
| | | try{ |
| | | String append = cnrId==null?"":("?crnId="+cnrId); |
| | | response.sendRedirect(contextPath+"/views/monitor/monitor.html"+append); |
| | | |
| | | response.sendRedirect(contextPath+"/views/monitor/monitor.html"+ "?" + "crnId=" + cnrId + "&" + "ledId=" + ledId); |
| | | } catch (Exception ex){ |
| | | ex.printStackTrace(); |
| | | } |
| | |
| | | /** |
| | | * X行走线速度m/min |
| | | */ |
| | | private Float xSpeed; |
| | | private Float xSpeed = 0F; |
| | | |
| | | /** |
| | | * Y行走线速度m/min |
| | | */ |
| | | private Float ySpeed; |
| | | private Float ySpeed = 0F; |
| | | |
| | | /** |
| | | * Z行走线速度m/min |
| | | */ |
| | | private Float zSpeed; |
| | | private Float zSpeed = 0F; |
| | | |
| | | /** |
| | | * 堆垛机累计走行距离km |
| | | */ |
| | | public Float xDistance; |
| | | public Float xDistance = 0F; |
| | | |
| | | /** |
| | | * 堆垛机累计升降距离km |
| | | */ |
| | | public Float yDistance; |
| | | public Float yDistance = 0F; |
| | | |
| | | /** |
| | | * 堆垛机累计走行时长h |
| | | */ |
| | | public Float xDuration; |
| | | public Float xDuration = 0F; |
| | | |
| | | /** |
| | | /**w |
| | | * 堆垛机累计升降时长h |
| | | */ |
| | | public Float yDuration; |
| | | public Float yDuration = 0F; |
| | | |
| | | public void setMode(Short mode) { |
| | | this.mode = mode; |
| | |
| | | port: 5005 |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staArr: 109,113,103,200,203 # todo:luxiaotao |
| | | # LED2 |
| | | led[1]: |
| | | id: 2 |
| | | ip: 192.168.10.61 |
| | | port: 5005 |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staArr: 109,113,103,200,203 # todo:luxiaotao |
| | | # LED3 |
| | | led[2]: |
| | | id: 2 |
| | | ip: 192.168.10.61 |
| | | port: 5005 |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staArr: 109,113,103,200,203 # todo:luxiaotao |
| | | # 磅称 |
| | | # scale[0]: |
| | | # id: 1 |
| | |
| | | * 获取其他数据 |
| | | */ |
| | | function getOther() { |
| | | http.get(baseUrl+"/monitor/other", {crnId: getUrlVal("crnId")}, function (res) { |
| | | http.get(baseUrl+"/monitor/other", {crnId: getUrlVal("crnId"), ledId: getUrlVal("ledId")}, function (res) { |
| | | if (res.code === 200){ |
| | | |
| | | // 左 |