自动化立体仓库 - WCS系统
#
zjj
2024-01-18 890d6a4531a85375571885f7f4e9399bbcab99c6
src/main/java/com/zy/core/thread/RgvThread.java
@@ -91,13 +91,8 @@
                        command.setTaskMode1(RgvTaskModeType.NONE); // 任务模式
                        command.setSourceStaNo1((short)0);     // 源站
                        command.setDestinationStaNo1((short)0);     // 目标站
//                        command.setTaskNo2((short) 0); // 工作号
//                        command.setAckFinish2((short) 1);  // 任务完成确认位
//                        command.setTaskMode2(RgvTaskModeType.NONE); // 任务模式
//                        command.setSourceStaNo2((short)0);     // 源站
//                        command.setDestinationStaNo2((short)0);     // 目标站
                        command.setCommand((short)0);
                        write(command);
                        write1(command);
                        break;
                    // 回原点  避让
                    case 9:
@@ -349,7 +344,7 @@
        if (command.getAckFinish1() == 0) {
            short commandFinish = 1;  //工位1任务写入
            Thread.sleep(100L);
            Thread.sleep(200);
            result = siemensNet.Write("DB100.10", commandFinish);
        }
@@ -371,7 +366,9 @@
                    null
            );
            bean.insert(basRgvOpt);
        } catch (Exception ignore) {}
        } catch (Exception ignore) {
            log.error(ignore.getMessage());
        }
        if (result != null && result.IsSuccess) {
            Thread.sleep(200);