| | |
| | | // 显示器 |
| | | private StringBuffer stringBuffer = new StringBuffer(); |
| | | private List<LedCommand> commandList; |
| | | |
| | | private boolean ledMk = false; |
| | | private StringBuffer errorMsg = new StringBuffer(); |
| | | |
| | | public LedThread(Slave slave) { |
| | |
| | | |
| | | private void write(List<LedCommand> list) { |
| | | commandList = list; |
| | | |
| | | this.ledMk = false; |
| | | StringBuilder sb = new StringBuilder(); |
| | | for (LedCommand command : list) { |
| | | sb.append(command.getTitle()).append("(").append(command.getWorkNo()).append(")").append("\n"); |
| | |
| | | sb.append("目标站:").append(command.getStaNo()).append("\n"); |
| | | if (!command.isEmptyMk()) { |
| | | for (MatDto matDto : command.getMatDtos()) { |
| | | sb.append(matDto.getSpecs()).append("-").append(matDto.getBatch()).append("\n"); |
| | | sb.append("物料编码:").append(matDto.getMatnr()).append("\n"); |
| | | sb.append("数量:").append(matDto.getAnfme()).append("\n"); |
| | | sb.append("规格:").append(matDto.getSpecs()).append("\n"); |
| | | } |
| | | } |
| | | sb.append("\n"); |
| | |
| | | private void error(String msg) { |
| | | errorMsg.delete(0, errorMsg.length()); |
| | | errorMsg.append(msg); |
| | | this.ledMk = false; |
| | | } |
| | | |
| | | public void errorReset() { |