wang
2024-04-03 b0cd8e56e79637407ff32bd559eab896101d887c
UnLoadGlassModule/src/main/java/com/mes/service/Plchome.java
@@ -8,10 +8,10 @@
@Component
public class Plchome extends Thread {
    private int i = 1;
    private final Supplier<PlcService> plcServiceSupplier;
    private final Supplier<DownGlassLogic> plcServiceSupplier;
    public Plchome() {
        this.plcServiceSupplier = () -> WebSocketServer.applicationContext.getBean(PlcService.class);
        this.plcServiceSupplier = () -> WebSocketServer.applicationContext.getBean(DownGlassLogic.class);
    }
@@ -22,7 +22,7 @@
            try {
                i++;
                Thread.sleep(100);
                PlcService plcService = plcServiceSupplier.get();
                DownGlassLogic plcService = plcServiceSupplier.get();
               // plcService.performPlcActions();
                //plcService.unloadpush();
@@ -32,7 +32,7 @@
                //当机械手任务表中状态为1 更新已经落架数量,并且把下片任务表的那条记录删掉 工位表流程卡绑定了架子
                plcService.down_workstation();
                plcService.downWorkstation();
            } catch (InterruptedException e) {