#
zjj
2024-07-19 5d0f7a5aa4ee994782f3f3bcc66e23653a6ac40a
src/main/java/com/zy/core/thread/SiemensRgvThread.java
@@ -497,17 +497,17 @@
        String status = "";
        command.setRgvNo(slave.getId());
        short[] array = new short[2];
        array[0] = command.getSourceStaNo2();
        array[1] = command.getDestinationStaNo2();
        array[0] = command.getDestinationStaNo1();
        array[1] = command.getSourceStaNo1();
        OperateResult result = siemensNet.Write("DB19.0", array);
        if (command.getTaskMode1().equals(RgvTaskModeType.FETCH)){
        if (command.getTaskMode1().equals(RgvTaskModeType.FETCH.id.shortValue())){
            status = "4.1";
        } else if (command.getTaskMode1().equals(RgvTaskModeType.PUT)){
        } else if (command.getTaskMode1().equals(RgvTaskModeType.PUT.id.shortValue())){
            status = "4.2";
        } else if (command.getTaskMode1().equals(RgvTaskModeType.X_MOVE)){
        } else if (command.getTaskMode1().equals(RgvTaskModeType.X_MOVE.id.shortValue())){
            status = "4.0";
        } else if (command.getTaskMode1().equals(RgvTaskModeType.FETCH_PUT)){
        } else if (command.getTaskMode1().equals(RgvTaskModeType.FETCH_PUT.id.shortValue())){
            status = "4.3";
        } else {
            OutputQueue.RGV.offer(MessageFormat.format("【{0}】写入RGV plc数据失败 ===>> [id:{1}] [ip:{2}] [port:{3}] [DB块:{4}]", DateUtils.convert(new Date()), slave.getId(), slave.getIp(), slave.getPort(), "DB19."+status));