Revert "取消写入后回答延时"
This reverts commit be61c90200910a3e48c72596f3bbd459a2a73f25.
| | |
| | | CrnOperatorParam crnOperatorParam = new CrnOperatorParam(); |
| | | crnOperatorParam.setCrnNo(crn.getId()); |
| | | R r = crnController.crnTaskComplete(crnOperatorParam); |
| | | // Thread.sleep(1000); |
| | | Thread.sleep(1000); |
| | | if (!r.get("code").equals(200)) { |
| | | return; |
| | | } |
| | |
| | | while (!Thread.currentThread().isInterrupted()) { |
| | | try { |
| | | // 间隔 |
| | | // Thread.sleep(1000); |
| | | Thread.sleep(1000); |
| | | |
| | | // 系统运行状态判断 |
| | | if (!SystemProperties.WCS_RUNNING_STATUS.get()) { |
| | |
| | | default: |
| | | break; |
| | | } |
| | | // Thread.sleep(500); |
| | | Thread.sleep(500); |
| | | } catch (Exception e) { |
| | | // e.printStackTrace(); |
| | | } |
| | |
| | | default: |
| | | break; |
| | | } |
| | | // Thread.sleep(400); |
| | | Thread.sleep(400); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | slave.getId(), JSON.toJSON(staProtocol), writeCount)); |
| | | log.error("写入输送线命令失败。输送线plc编号={},站点数据={},写入次数={}", slave.getId(), JSON.toJSON(staProtocol), writeCount); |
| | | } |
| | | // Thread.sleep(200); |
| | | Thread.sleep(200); |
| | | } |
| | | |
| | | //写命令尝试了5次还是失败了 |