| | |
| | | } |
| | | |
| | | public LocTypeDto(StaProtocol staProtocol) { |
| | | System.out.println("----------"+staProtocol.getSiteId()+"库位检测原始数据为:"+staProtocol.isWeight()+"------------"); |
| | | // System.out.println("----------"+staProtocol.getSiteId()+"库位检测原始数据为:"+staProtocol.isWeight()+"------------"); |
| | | // if (staProtocol.isHigh() == staProtocol.isLow() == staProtocol.isMedium() == staProtocol.isMedium_high()) { |
| | | // throw new CoolException("plc高低检测异常"); |
| | | // } |
| | |
| | | } else { |
| | | this.locType1 = 1; |
| | | } |
| | | System.out.println("----------"+staProtocol.getSiteId()+"库位检测处理为数据为:"+this.locType1+"------------"); |
| | | // System.out.println("----------"+staProtocol.getSiteId()+"库位检测处理为数据为:"+this.locType1+"------------"); |
| | | |
| | | } |
| | | |
| | |
| | | } |
| | | // 复位信号 |
| | | if (crnProtocol.getStatusType().equals(CrnStatusType.WAITING) && resetFlag) { |
| | | News.error("-------------------------------------------第一步、[堆垛机号:{}, 工作号:{}, 载货台信号:{}]==>> 状态为10,等待确认!!", |
| | | slave.getId(),crnProtocol.getTaskNo(), crnProtocol.getLoaded()==1 ? "有物" : "无物"); |
| | | // News.error("-------------------------------------------第一步、[堆垛机号:{}, 工作号:{}, 载货台信号:{}]==>> 状态为10,等待确认!!", |
| | | // slave.getId(),crnProtocol.getTaskNo(), crnProtocol.getLoaded()==1 ? "有物" : "无物"); |
| | | CrnCommand crnCommand = new CrnCommand(); |
| | | crnCommand.setAckFinish((short) 1); |
| | | if (write(crnCommand)) { |