zhangchao
2024-08-29 204d4f97eb72d58b2145873c12eefd1c4fa8b448
src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -244,19 +244,27 @@
        }
//        convertRow(command);
        command.setCrnNo(slave.getId());
        short[] array = new short[10];
        array[0] = command.getAckFinish();
        array[1] = command.getTaskNo();
        array[2] = command.getTaskMode();
        array[3] = command.getSourcePosX();
        array[4] = command.getSourcePosY();
        array[5] = command.getSourcePosZ();
        array[6] = command.getDestinationPosX();
        array[7] = command.getDestinationPosY();
        array[8] = command.getDestinationPosZ();
        short[] array = new short[17];
        array[0] = command.getTaskNo();
        array[1] = command.getTaskMode();
        array[2] = command.getSourcePosX();
        array[3] = command.getSourcePosY();
        array[4] = command.getSourcePosZ();
        array[5] = command.getDestinationPosX();
        array[6] = command.getDestinationPosY();
        array[7] = command.getDestinationPosZ();
        array[8] = command.getSourcePosXTwo();
        array[9] = command.getSourcePosYTwo();
        array[10] = command.getSourcePosZTwo();
        array[11] = command.getDestinationPosXTwo();
        array[12] = command.getDestinationPosYTwo();
        array[13] = command.getDestinationPosZTwo();
        array[14] = command.getCommand();
        array[15] = command.getAckFinish();
//        array[9] = command.getSourceStaNo();
//        array[10] = command.getDestinationStaNo();
        array[9] = command.getCommand();
        //array[9] = command.getCommand();
        OperateResult result = siemensNet.Write("DB100.0", array);
        if (command.getAckFinish() == 0) {