#
TQS
2023-03-17 f028efb16717ceb7623b48847480eead72aeb084
src/main/java/com/zy/core/thread/SteThread.java
@@ -89,7 +89,7 @@
            steProtocol = new SteProtocol();
        }
        steProtocol.setSteNo(slave.getId().shortValue());
        steProtocol.setMode((short) 0);
        steProtocol.setMode((short) -1);
        steProtocol.setStatus(SteStatusType.OFF_LINE);
        steProtocol.setTaskNo((short) 0);
        steProtocol.setExecute(false);
@@ -340,6 +340,12 @@
        } else {
            OutputQueue.STE.offer(MessageFormat.format("【{0}】写入穿梭车plc数据失败 ===>> [id:{1}] [ip:{2}] [port:{3}]", DateUtils.convert(new Date()), slave.getId(), slave.getIp(), slave.getPort()));
            News.error("写入穿梭车plc数据失败 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
            //写入失败后,重新添加commanddao 任务队列中,并立即回读一次设备状态
            MessageQueue.offer(SlaveType.Ste, slave.getId(), new Task(2, command));
            readStatus();
            initSte();
            return false;
        }
    }