*
lsh
昨天 f5c0365702be7d445420a9961b1f2e64b621213b
src/main/java/com/zy/core/MainProcess.java
@@ -29,7 +29,7 @@
    /**
     * =====>>  开始工作
     */
    public void start(){
    public void start() {
        thread = new Thread(this::crnAndDevRun);
        thread.start();
@@ -73,6 +73,7 @@
            }
        }
    }
    private void crnAndDevOtherRun() {
        while (!Thread.currentThread().isInterrupted()) {
            try {
@@ -115,10 +116,14 @@
                if (!SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
                    continue;
                }
                // 入出库  ===>>  堆垛机入出库作业下发
                mainService.crnIoExecuteDemo();
                // 出库  ===>>  堆垛机出库站到出库站
                mainService.crnStnToOutStnDemo();
                // 入出库  ===>>  堆垛机入出库作业下发
                mainService.crnIoExecuteDemo();
                // 入库  ===>> 执行对工作档的完成操作
                mainService.storeFinishedDemo();
                // 任务下发
                mainService.taskStartDemo();
            } catch (Exception e) {
                e.printStackTrace();
            }
@@ -132,35 +137,35 @@
                Thread.sleep(1000);
                // 系统演示模式运行状态变化
                if (SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
                    if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 2){
                    if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 2) {
                        boolean signHpMk = mainService.crnStnDEMOStop2();
                        if (signHpMk){
                        if (signHpMk) {
                            SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 3;
                        }
                    } else if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 3){
                    } else if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 3) {
                        boolean signHpMk = mainService.crnStnDEMOStop3();
                        if (signHpMk){
                        if (signHpMk) {
                            SystemProperties.WCS_RUNNING_STATUS_DEMO.set(false);
                            SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 0;
                        }
                    }
                } else {
                     if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 1){
                    if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 1) {
                        boolean signHpMk = mainService.crnStnDEMOOpen1();
                        if (signHpMk){
                        if (signHpMk) {
                            SystemProperties.WCS_RUNNING_STATUS_DEMO.set(true);
                            SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 2;
                        } else {
                            SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 0;
                        }
                    } else {
                         boolean signHpMk = mainService.crnStnDEMOOpen0();
                         if (signHpMk){
                             SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 1;
                         } else {
                             SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 0;
                         }
                     }
                        boolean signHpMk = mainService.crnStnDEMOOpen0();
                        if (signHpMk) {
                            SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 1;
                        } else {
                            SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE = 0;
                        }
                    }
                }
                // 其他  ===>> LED显示器显示时间
            } catch (Exception e) {
@@ -170,7 +175,7 @@
    }
    @PreDestroy
    public void shutDown(){
    public void shutDown() {
        if (thread != null) thread.interrupt();
        if (thread2 != null) thread2.interrupt();
        if (thread3 != null) thread3.interrupt();