1
zhang
2025-09-26 3897c8800805f6e99e30d700fe0c11c5ed2df84a
src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -74,7 +74,12 @@
                        break;
                    // 写入数据 1号工位
                    case 2:
                        write((CrnCommand) task.getData());
                        CrnCommand data = (CrnCommand) task.getData();
                        if (data.getPltType() == null || data.getPltType() == 1) {
                            write(data);
                        } else if (data.getPltType() == 2) {
                            write2(data);
                        }
                        break;
                    // 复位 1号工位
                    case 3:
@@ -93,10 +98,6 @@
                        command.setDestinationPosY((short) 0);     // 目标库位列
                        command.setDestinationPosZ((short) 0);     // 目标库位层
                        write(command);
                        break;
                    // 写入数据 2号工位
                    case 4:
                        write2((CrnCommand) task.getData());
                        break;
                    // 复位 2号工位
                    case 6:
@@ -654,7 +655,8 @@
                    null    // 修改人员
            );
            bean.insert(basCrnOpt);
        } catch (Exception ignore) {}
        } catch (Exception ignore) {
        }
        if (result != null && result.IsSuccess) {
            Thread.sleep(200);
@@ -668,6 +670,7 @@
            return false;
        }
    }
    public void requestStop() {
        isRunning = false;
    }