diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6b52cebc..6f87f060 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -46,6 +46,7 @@ tools:ignore="Instantiatable" /> 1000 * 100) { + break; + } else { + Object sb = ExecuteTheRecipe.ReadPLC(NA);// ListeningValue.get(name); + if (sb != null) { + IsComplete[0] = (boolean) (sb); + } + } + try { + Thread.sleep(100);//10 *6 + } catch (InterruptedException e) { + + } + } + } //endregion //region 延迟 @@ -746,7 +984,7 @@ public class AutoTestOneFragment extends BaseFragment { /** - * 延迟加热 + * 加热 */ public void MakeJR() { List Dwei = new ArrayList() {{ @@ -765,6 +1003,7 @@ public class AutoTestOneFragment extends BaseFragment { @Override public void run() { jiaredangwei.setText(item + ""); + jiare11.setText( "0"); } }); @@ -809,6 +1048,7 @@ public class AutoTestOneFragment extends BaseFragment { ExecuteTest.ExecuteOperationSteps(ExecuteTest.Get加热(dw1).processname, ExecuteTest.Get加热(dw1).processvalue); ExecuteTest.ThreadDelay(jiarewendingJR);//加热持续多少秒 ExecuteTheRecipe.WritePLC("加热", false, null); + ExecuteTest.ThreadDelay(1);//冷却多少分钟 ExecuteTest.ExecuteOperationSteps(ExecuteTest.Get加热(dw1).processname, ExecuteTest.Get加热(dw1).processvalue); ExecuteTest.ThreadDelay(jiarewendingLQ);//冷却多少分钟 ExecuteTheRecipe.WritePLC("加热", false, null); @@ -934,7 +1174,6 @@ public class AutoTestOneFragment extends BaseFragment { runtime.start(); ExecuteTest.IsStart = true; TimeOut = 0; - RunIndex = adapter.getSelectedPosition(); showbuttomtop.setVisibility(View.VISIBLE); start_goodmake.setImageResource(R.mipmap.zhizuo_js2); } @@ -958,6 +1197,21 @@ public class AutoTestOneFragment extends BaseFragment { showbuttomtop.setVisibility(View.GONE); start_goodmake.setImageResource(R.mipmap.zhizuo_ks2); + + ExecuteTheRecipe.BottomClick1("平移-去1号位"); + ExecuteTheRecipe.WritePLC("搅拌", false, null); + ExecuteTheRecipe.WritePLC("加热", false, null); + ExecuteTheRecipe.BottomClick1("原点位"); + + ConfigName.getInstance().gkcxCount =gkcxCount ; + ConfigName.getInstance().jiaobanCount =jiaobanCount ; + ConfigName.getInstance().qingxiCount =qingxiCount ; + ConfigName.getInstance().touliaoCount =touliaoCount ; + ConfigName.getInstance().yetiliaoCount =yetiliaoCount ; + ConfigName.getInstance().yanchiCount =yanchiCount ; + ConfigName.getInstance().jiareCount =jiareCount ; + ConfigName.getInstance().jiarewendingCount =jiarewendingCount ; + ConfigData.getInstance().SavePZ(); } }); } diff --git a/app/src/main/res/layout/fragment_auto_test_more.xml b/app/src/main/res/layout/fragment_auto_test_more.xml index f66d545b..68b2b8e9 100644 --- a/app/src/main/res/layout/fragment_auto_test_more.xml +++ b/app/src/main/res/layout/fragment_auto_test_more.xml @@ -97,22 +97,36 @@ android:layout_height="wrap_content" android:text="次" android:textSize="25dp"/> + +