#1
dubin
3 天以前 f9ccc882fc1b1296f0c843a888a5962b45df236d
src/main/java/com/zy/core/network/real/ZyCrnRealConnect.java
@@ -108,15 +108,16 @@
                OperateResultExOne<byte[]> commandReadResult = siemensNet.Read("DB100.0", (short) 2);
                if (commandReadResult.IsSuccess) {
                    short commandRead = siemensNet.getByteTransform().TransInt16(commandReadResult.Content, 0);
                    if (commandRead == 1) {
                    if (commandRead == 1 || commandRead == 2) {
                        Thread.sleep(500);
                    }else {
                        commandResult = true;
                    }
                }
            } while (writeAck < 5);
            }while (commandResult);
//            while (writeAck < 5);
            if (!commandResult) {
            if (commandResult) {
                response.setMessage("堆垛机命令下发[id:{}] >>>>> {}" + command.getCrnNo() + "任务状态位异常");
                return response;
            }