| | |
| | | vo.setXLocation(crnProtocol.getWalkPos() == 1?"是":"否"); // 走行定位 |
| | | vo.setYLocation(crnProtocol.getLiftPosType().equals(CrnLiftPosType.NONE)?"否":"是"); // 升降定位 |
| | | // vo.setStop(crnProtocol.getCrnError1().controlStop||crnProtocol.getCrnError1().mainStop||crnProtocol.getCrnError1().remoteStop?"是":"否"); // 急停 |
| | | if (vo.getCrnNo() == 2) { |
| | | vo.setWarnCode(String.valueOf(crnProtocol.getAlarm1()-1000)); // 异常码 |
| | | } else { |
| | | vo.setWarnCode(String.valueOf(crnProtocol.getAlarm1())); // 异常码 |
| | | } |
| | | |
| | | } |
| | | return R.ok().add(list); |
| | | } |
| | | |
| | |
| | | if (latest == null) { |
| | | if (crnProtocol.getAlarm1() != null && crnProtocol.getAlarm1() > 0) { |
| | | WrkMast wrkMast = wrkMastMapper.selectById(crnProtocol.getTaskNo()); |
| | | if (wrkMast == null) { |
| | | continue; |
| | | } |
| | | BasCrnError crnError = basCrnErrorMapper.selectById(crnProtocol.getAlarm1()); |
| | | BasErrLog basErrLog = new BasErrLog( |
| | | null, // 编号 |
| | |
| | | melsecMcNet.ConnectClose(); |
| | | try { |
| | | Thread.sleep(1000); |
| | | } catch (InterruptedException e) { |
| | | } |
| | | } catch (InterruptedException ignore) {} |
| | | return result; |
| | | } |
| | | |