|
|
@@ -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 |
|
|
|