#
luxiaotao1123
2022-09-08 fb7b8f97b0617d8f186a4ac9fd0e9eb532e2febd
#
2个文件已修改
16 ■■■■ 已修改文件
src/main/java/com/zy/core/enums/CrnLiftPosType.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/thread/SiemensCrnThread.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/enums/CrnLiftPosType.java
@@ -3,9 +3,11 @@
public enum CrnLiftPosType {
    ERROR(-1, "未知"),   // 不在定位
    DOWN(0, "下定位"),  //
    UP(1, "上定位"),   //
    NONE(2, "不在定位"),   // 不在定位
    ORIGIN(0, "货叉原位"),   // 不在定位
    _DOWN(1, "双伸位低位"),
    DOWN(2, "单伸位低位"),  // 下定位
    UP(3, "单伸位高位"),   // 上定位
    _UP(4, "双伸位高位"),
    ;
    public Integer id;
src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -224,7 +224,7 @@
        }
//        convertRow(command);
        command.setCrnNo(slave.getId());
        short[] array = new short[12];
        short[] array = new short[10];
        array[0] = command.getAckFinish();
        array[1] = command.getTaskNo();
        array[2] = command.getTaskMode();
@@ -234,15 +234,13 @@
        array[6] = command.getDestinationPosX();
        array[7] = command.getDestinationPosY();
        array[8] = command.getDestinationPosZ();
        array[9] = command.getSourceStaNo();
        array[10] = command.getDestinationStaNo();
        array[11] = command.getCommand();
        array[9] = command.getCommand();
        OperateResult result = siemensNet.Write("DB100.0", array);
        if (command.getAckFinish() == 0) {
            short commandFinish = 1;
            Thread.sleep(100);
            result = siemensNet.Write("DB100.22", commandFinish);
            result = siemensNet.Write("DB100.18", commandFinish);
        }
        try {