ytfl
2025-08-19 b7951bdbb8925131cbc76be4902fcef0e88d0506
src/main/java/com/zy/core/MainProcess.java
@@ -5,11 +5,9 @@
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.PreDestroy;
import java.util.ArrayList;
/**
 * WCS主流程
@@ -53,6 +51,8 @@
                    Thread.sleep(500);
                    // 拣料、并板、盘点再入库
                    mainService.stnToCrnStnPick(3);
                    // 拣料、并板、盘点再入库-条码
                    mainService.stnToCrnStnPickBarcode(33);
                    // 出库  ===>>  堆垛机出库站到出库站
                    mainService.crnStnToOutStn(4);
                    // 入出库  ===>>  堆垛机入出库作业下发
@@ -63,26 +63,29 @@
                    mainService.storeFinished(6);
                    // 堆垛机异常信息记录
                    mainService.recCrnErr(7);
                    // 入库  ===>> 空栈板初始化入库,叉车入库站放货
                    // 空托盘入库-立库  ===>> 空栈板初始化入库,叉车入库站放货
                    mainService.storeEmptyPlt(8);
                    // 空托盘入库-产线
                    mainService.storeEmptyPltLine(13);
                    // 出库  ===>> 工作档信息写入led显示器
                    mainService.ledExecute(9);
                    // 其他  ===>> LED显示器复位,显示默认信息
                    mainService.ledReset(10);
                    mainService.outOfDevp(11);
                    // RGV  ===>> 执行对RGV操作
                    mainService.rgvExecute(11);
                    // RGV  ===>> 执行对RGV工作档的完成操作
                    mainService.rgvFinished(12);
                    // RGV  ===>> 执行对RGV工作档的完成操作 站到站
                    mainService.rgvFinished2(14);
                    //空托盘自动出库
//                    mainService.autoEmptyOut();
//                    //空托盘自动入库
//                    mainService.autoEmptyIn();
                    // 其他  ===>> 入出库模式切换
//                    i++;
//                    if (i > 1) {
//                        mainService.ioConvert();
//                        i = 0;
//                    }
                    //堆垛机无任务两分钟,回入库口待机
                    mainService.crnMove();
                    //堆垛机有入库任务时,回入库口待机
                    mainService.crnMoveByInTask();
                } catch (Exception e) {
                    e.printStackTrace();