#
tzsk
2024-03-04 9550fcfc2ac0c9c0e5c4aa0600361c4b4f908689
src/main/java/com/zy/core/MainProcess.java
@@ -74,16 +74,16 @@
                    mainService.recErr();
                    // 入库  ===>> 空栈板初始化入库,叉车入库站放货
                    mainService.storeEmptyPlt();
                    // AGV补货 => 生成入库通知档
                    mainService.robotGenerateAgvTask();
                    // AGV补货(机械臂拣料)
                    mainService.agvRestockByRobot();
                    // AGV补货(通知AGV取货)
                    mainService.agvRestockInto();
                    // AGV补货(悬挂线通知AGV取货)
                    mainService.agvRestockIntoByHangingWire();
                    // AGV信息更新
                    mainService.agvCurrentContainerCodeInfoWire();
//                    // AGV补货 => 生成入库通知档
//                    mainService.robotGenerateAgvTask();
//                    // AGV补货(机械臂拣料)
//                    mainService.agvRestockByRobot();
//                    // AGV补货(通知AGV取货)
//                    mainService.agvRestockInto();
//                    // AGV补货(悬挂线通知AGV取货)
//                    mainService.agvRestockIntoByHangingWire();
//                    // AGV信息更新
//                    mainService.agvCurrentContainerCodeInfoWire();
                    // 300站拣料
                    mainService.pick300();
                    // 出库  ===>> 工作档信息写入led显示器
@@ -107,6 +107,36 @@
        thread.start();
    }
    public void agvStart(){
        thread = new Thread(() -> {
            while (!Thread.currentThread().isInterrupted()) {
                try {
                    // 间隔
                    Thread.sleep(300);
                    // AGV补货 => 生成入库通知档
                    mainService.robotGenerateAgvTask();
                    // AGV补货(机械臂拣料)
                    mainService.agvRestockByRobot();
                    // AGV补货(通知AGV取货)
                    mainService.agvRestockInto();
                    // AGV补货(悬挂线通知AGV取货)
                    mainService.agvRestockIntoByHangingWire();
                    // AGV信息更新
                    mainService.agvCurrentContainerCodeInfoWire();
                    // 间隔
                    Thread.sleep(200);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
        thread.start();
    }
    @PreDestroy
    public void shutDown(){
        if (thread != null) thread.interrupt();