自动化立体仓库 - WCS系统
#
zjj
2024-10-31 a0f38b9be88954cfeb9b9c2fc1e8f37940ecb79f
src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -247,7 +247,7 @@
        do {
            OperateResult resultAck = siemensNet.Write("DB100.0", (short) 0);
            if (resultAck.IsSuccess){
                Thread.sleep(100);
                Thread.sleep(200);
                OperateResultExOne<byte[]> resultRead = siemensNet.Read("DB100.0", (short) 2);
                short ack = siemensNet.getByteTransform().TransInt16(resultRead.Content, 0);
                if (ack != 0) {
@@ -306,12 +306,13 @@
                    one.setDestinationPosX(siemensNet.getByteTransform().TransInt16(resultRead.Content, 12));
                    one.setDestinationPosY(siemensNet.getByteTransform().TransInt16(resultRead.Content, 14));
                    one.setDestinationPosZ(siemensNet.getByteTransform().TransInt16(resultRead.Content, 16));
                    one.setCommand(siemensNet.getByteTransform().TransInt16(resultRead.Content, 18));
                    one.setTraySize(siemensNet.getByteTransform().TransInt16(resultRead.Content, 20));
                    if (!command.getTaskNo().equals(one.getTaskNo()) || !command.getTaskMode().equals(one.getTaskMode())
                            || !command.getSourcePosX().equals(one.getSourcePosX()) || !command.getSourcePosY().equals(one.getSourcePosY())
                            || !command.getSourcePosZ().equals(one.getSourcePosZ()) || !command.getDestinationPosX().equals(one.getDestinationPosX())
                            || !command.getDestinationPosY().equals(one.getDestinationPosY()) || !command.getDestinationPosZ().equals(one.getDestinationPosZ())
                            || !command.getTraySize().equals(one.getTraySize())
                            || !command.getTraySize().equals(one.getTraySize()) || !command.getCommand().equals(one.getCommand())
                            || !command.getAckFinish().equals(one.getAckFinish())
                    ){
                        try{