Browse Source

修改同时出餐问题

炒锅机器人_一拖多
liup 2 months ago
parent
commit
c932334410
2 changed files with 3 additions and 1 deletions
  1. +1
    -0
      app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java
  2. +2
    -1
      app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe2.java

+ 1
- 0
app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java View File

@@ -90,6 +90,7 @@ public class ExecuteTheRecipe {
boolean isError = false;
long startTime = System.currentTimeMillis(); //起始时间
showlog("开始烹饪菜谱【" + orderDetail.goodsName + "】");
RobotIsWorking = false;
WokModbusTcpServer.get().WriteBool("M52.0", (boolean) true, null);
try {
//获取工艺


+ 2
- 1
app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe2.java View File

@@ -88,6 +88,7 @@ public class ExecuteTheRecipe2 {
if (MakeStatus && orderDetail != null) {
boolean isError = false;
long startTime = System.currentTimeMillis(); //起始时间
RobotIsWorking = false;
showlog("开始烹饪菜谱【" + orderDetail.goodsName + "】");
Wok2ModbusTcpServer.get().WriteBool("M52.0", (boolean) true, null);
try {
@@ -353,7 +354,7 @@ public class ExecuteTheRecipe2 {
case "主料":
case "辅料":
case "出菜":
while (!IsForcedEnd && !ExecuteTheRecipe2.RobotIsWorking) {
while (!IsForcedEnd && !ExecuteTheRecipe.RobotIsWorking) {
try {
Thread.sleep(200);
} catch (InterruptedException e) {


Loading…
Cancel
Save