Browse Source

修改平移1号位655

tags/old_version_1
fyf 1 year ago
parent
commit
08993760ce
1 changed files with 13 additions and 7 deletions
  1. +13
    -7
      app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java

+ 13
- 7
app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java View File

@@ -800,13 +800,6 @@ public class ExecuteTheRecipe {

//region PLC监听线程
public static void Listening() {
ExecuteTheRecipe.BottomClick("初始化");
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
ExecuteTheRecipe.WritePLC("初始化", false, null);
}
}, 500);

ConfigName.getInstance().PLC_Address.clear();
ArrayList<BPA_PLCADDRESS> address = QueryDB.GetPlcaddressALL();
@@ -816,6 +809,19 @@ public class ExecuteTheRecipe {
}
}

new Thread(new Runnable() {
@Override
public void run() {
try {
WritePLC("初始化",true,null);
Thread.sleep(500);
WritePLC("初始化",false,null);
} catch (InterruptedException e) {
ToastUtils.info("异常信息:" + e.getMessage());
}
}
}).start();


ThreadManager.Get().StartLong("PLC设备数据监听", true, new IThread() {
@Override


Loading…
Cancel
Save