| | |
| | | public LedThread(Slave slave) { |
| | | this.slave = slave; |
| | | try { |
| | | Bx5GEnv.initial(3000); |
| | | screen = new Bx5GScreenClient("my"); |
| | | // Bx5GEnv.initial(3000); |
| | | // screen = new Bx5GScreenClient("my"); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.info("led连接构造器错误 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort()); |
| | |
| | | @Override |
| | | @SuppressWarnings({"InfiniteLoopStatement", "unchecked"}) |
| | | public void run() { |
| | | connect(); |
| | | // connect(); |
| | | close(); |
| | | while (true) { |
| | | try { |
| | |
| | | for (MatDto matDto : command.getMatDtos()) { |
| | | sb.append("物料编码:").append(matDto.getMatNo()).append("\n"); |
| | | sb.append("数量:").append(matDto.getCount()).append("\n"); |
| | | sb.append("箱号:").append(matDto.getBatch()).append("\n"); |
| | | sb.append("卷号:").append(matDto.getSpecs()).append("\n"); |
| | | sb.append("订单号:").append(matDto.getOrderNo()).append("\n"); |
| | | sb.append("客户:").append(matDto.getCstmrName()).append("\n"); |
| | | sb.append("备注:").append(matDto.getMemo()).append("\n"); |
| | | sb.append("总作业中数量:").append(matDto.getCount1()).append("\n"); |
| | | sb.append("码垛后未取货数量:").append(matDto.getCount3()).append("\n"); |
| | | sb.append("订单作业中数量:").append(matDto.getCount2()).append("\n"); |
| | | } |
| | | } |
| | | sb.append("\n"); |
| | |
| | | |
| | | @Override |
| | | public void close() { |
| | | screen.disconnect(); |
| | | // screen.disconnect(); |
| | | } |
| | | |
| | | |