Bläddra i källkod

手动投料怎么蜂鸣器

master
fyf 11 månader sedan
förälder
incheckning
7db64c0c4b
3 ändrade filer med 6 tillägg och 0 borttagningar
  1. +2
    -0
      app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java
  2. +2
    -0
      app/src/main/java/com/bonait/bnframework/modules/home/activity/BottomNavigationNewActivity.java
  3. +2
    -0
      app/src/main/java/com/bonait/bnframework/modules/home/fragment/Home1Fragment.java

+ 2
- 0
app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java Visa fil

@@ -536,6 +536,7 @@ public class ExecuteTheRecipe {
if (ConfigName.getInstance().WhetherManualFeedingSuspended.contains("是")) {
ExecuteTheRecipe.WritePLC("暂停开关", true, null);
}
ModbusTcpServer.get().WriteBool("M52.1", (boolean) true, null);

final boolean[] IsComplete = {false};
Activity activity = findActivity(context);
@@ -567,6 +568,7 @@ public class ExecuteTheRecipe {
if (ConfigName.getInstance().WhetherManualFeedingSuspended.contains("是")) {
ExecuteTheRecipe.WritePLC("暂停开关", false, null);
}
ModbusTcpServer.get().WriteBool("M52.1", (boolean) false, null);

ExecuteTheRecipe.showlog("手动已确认投入主料:" + name + "-继续流程");
} else {


+ 2
- 0
app/src/main/java/com/bonait/bnframework/modules/home/activity/BottomNavigationNewActivity.java Visa fil

@@ -367,6 +367,7 @@ public class BottomNavigationNewActivity extends BaseActivity {
ExecuteTheRecipe.showlog("--------------------------------------");

ExecuteTheRecipe.showlog("开始烹饪菜谱【"+goods.name+"】");
ModbusTcpServer.get().WriteBool("M52.0", (boolean) true, null);

try {
//获取工艺
@@ -432,6 +433,7 @@ public class BottomNavigationNewActivity extends BaseActivity {
}
});
ExecuteTheRecipe.showlog("--------------------------------------");
ModbusTcpServer.get().WriteBool("M52.0", (boolean) false, null);

}
}


+ 2
- 0
app/src/main/java/com/bonait/bnframework/modules/home/fragment/Home1Fragment.java Visa fil

@@ -574,6 +574,7 @@ public class Home1Fragment extends BaseFragment {
long startTime = System.currentTimeMillis(); //起始时间
ExecuteTheRecipe.showlog("--------------------------------------");
ExecuteTheRecipe.showlog("开始烹饪菜谱【"+good.name+"】");
ModbusTcpServer.get().WriteBool("M52.0", (boolean) true, null);

try {
//获取工艺
@@ -633,6 +634,7 @@ public class Home1Fragment extends BaseFragment {
});
}
ExecuteTheRecipe.showlog("--------------------------------------");
ModbusTcpServer.get().WriteBool("M52.0", (boolean) false, null);

}
}


Laddar…
Avbryt
Spara