自动化立体仓库 - WCS系统
#
LSH
2023-11-21 81a81598095b0b3a8984857893219b24f4baffea
#
1个文件已修改
31 ■■■■ 已修改文件
src/main/java/com/zy/core/thread/SiemensCrnThread.java 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -394,37 +394,36 @@
        } else {
            array[0] = 0;
        }
        array[1] = command.getSourcePosZ();
        array[2] = command.getSourcePosY();
        array[1] = command.getTaskNo();
        array[2] = command.getTaskMode();
        array[3] = command.getDestinationPosZ();
        if (rowOne.contains(command.getSourcePosX())){
            array[3] = (short)1;
            array[4] = (short)1;
        }else if (rowTwo.contains(command.getSourcePosX())){
            array[3] = (short)2;
            array[4] = (short)2;
        }else if (rowThree.contains(command.getSourcePosX())){
            array[3] = (short)3;
            array[4] = (short)3;
        }else if (rowFour.contains(command.getSourcePosX())){
            array[3] = (short)4;
            array[4] = (short)4;
        }else {
            array[3] = command.getSourcePosX();
            array[4] = command.getSourcePosX();
        }
        array[4] = command.getDestinationPosZ();
        array[5] = command.getDestinationPosY();
        array[6] = command.getDestinationPosZ();
        if (rowOne.contains(command.getDestinationPosX())){
            array[6] = (short)1;
            array[7] = (short)1;
        }else if (rowTwo.contains(command.getDestinationPosX())){
            array[6] = (short)2;
            array[7] = (short)2;
        }else if (rowThree.contains(command.getDestinationPosX())){
            array[6] = (short)3;
            array[7] = (short)3;
        }else if (rowFour.contains(command.getDestinationPosX())){
            array[6] = (short)4;
            array[7] = (short)4;
        }else {
            array[6] = command.getDestinationPosX();
            array[7] = command.getDestinationPosX();
        }
        array[7] = command.getSourceStaNo();
        array[8] = command.getDestinationStaNo();
        array[8] = command.getDestinationPosY();
        // 作业信息
        OperateResult result = siemensNet.Write("DB100.0", array);