*
L
2026-01-24 05149e21b3af6534c2d8c3a35c3ee3672ed09af2
src/main/java/com/zy/core/MainProcess.java
@@ -23,9 +23,9 @@
    // 所属线程
    private Thread thread;
    private Thread thread2;
    private Thread thread3;
    private Thread thread4;
    private Thread thread5;
//    private Thread thread3;
//    private Thread thread4;
//    private Thread thread5;
    /**
     * =====>>  开始工作
@@ -37,29 +37,29 @@
        thread2 = new Thread(this::crnAndDevOtherRun);
        thread2.start();
        thread5 = new Thread(this::demoRun5);
        thread5.start();
        thread3 = new Thread(this::demoRun);
        thread3.start();
        thread4 = new Thread(this::demoOpenRun);
        thread4.start();
//        thread5 = new Thread(this::demoRun5);
//        thread5.start();
//
//        thread3 = new Thread(this::demoRun);
//        thread3.start();
//
//        thread4 = new Thread(this::demoOpenRun);
//        thread4.start();
    }
    private void crnAndDevRun() {
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(1000);
                Thread.sleep(700);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
                }
                // 系统演示模式运行状态判断
                if (SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
                    continue;
                }
//                // 系统演示模式运行状态判断
//                if (SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
//                    continue;
//                }
                // 入库  ===>> 入库站到堆垛机站,根据条码扫描生成入库工作档
                mainService.generateStoreWrkFile(); // 组托
//                    mainService.generateStoreWrkFileIsEmptyMk(); // 组托  空托
@@ -82,19 +82,19 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(400);
                Thread.sleep(200);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
                }
                // 系统演示模式运行状态判断
                if (SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
                    continue;
                }
                // 出库  ===>>  堆垛机出库站到出库站
                mainService.crnStnToOutStn();
//                // 系统演示模式运行状态判断
//                if (SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
//                    continue;
//                }
                // 堆垛机异常信息记录
                mainService.recCrnErr();
                // 出库  ===>>  堆垛机出库站到出库站
                mainService.crnStnToOutStn();
                // 输送线异常信息记录
//                    mainService.recDevErr();
                // 出库  ===>> 工作档信息写入led显示器
@@ -111,7 +111,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(1000);
                Thread.sleep(210);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
@@ -136,7 +136,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(200);
                Thread.sleep(100);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
@@ -161,7 +161,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(1000);
                Thread.sleep(50);
                // 系统演示模式运行状态变化
                if (SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
                    if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 2) {
@@ -213,9 +213,9 @@
    public void shutDown() {
        if (thread != null) thread.interrupt();
        if (thread2 != null) thread2.interrupt();
        if (thread3 != null) thread3.interrupt();
        if (thread4 != null) thread4.interrupt();
        if (thread5 != null) thread5.interrupt();
//        if (thread3 != null) thread3.interrupt();
//        if (thread4 != null) thread4.interrupt();
//        if (thread5 != null) thread5.interrupt();
    }
}