pang.jiabao
1 天以前 2de4173f02cc9525949eb20e60595019b9be9a3f
src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -89,6 +89,7 @@
                        command.setDestinationPosX((short)0);     // 目标库位排
                        command.setDestinationPosY((short)0);     // 目标库位列
                        command.setDestinationPosZ((short)0);     // 目标库位层
                        command.setTaskCount((short) 0);
                        write(command);
                        break;
                    default:
@@ -267,7 +268,7 @@
//        convertRow(command);
        command.setCrnNo(slave.getId());
//        short[] array = new short[10];
        short[] array = new short[10];
        short[] array = new short[12];
        array[0] = command.getAckFinish(); // 任务完成确认位
        array[1] = command.getTaskNo();  // 任务号
        array[2] = command.getTaskMode();  // 模式
@@ -278,6 +279,7 @@
        array[7] = command.getDestinationPosY(); // 目标位置列号
        array[8] = command.getDestinationPosZ(); // 目标位置层号
        array[9] = command.getCommand();
        array[11] = command.getTaskCount(); // 空桶出库,告诉堆垛机取一个货还是两个货
        OperateResult result = siemensNet.Write("DB100.0", array);
        News.info("堆垛机命令下发[id:{}] >>>>> {}", slave.getId(), array);