|
|
@@ -427,7 +427,7 @@ public class ExecuteTheRecipe { |
|
|
|
ExecuteCurrentOperation.Run("位置" + "|" + value); |
|
|
|
} |
|
|
|
//原点位,等待机器移动倒响应位置 |
|
|
|
BottomClick(value); |
|
|
|
BottomClick1(value); |
|
|
|
//一直等待机器移动到该位置,否则就一直等待 6s超时 |
|
|
|
String name = value + "反馈"; |
|
|
|
final boolean[] IsComplete = {false}; |
|
|
@@ -490,7 +490,7 @@ public class ExecuteTheRecipe { |
|
|
|
|
|
|
|
if (ishand) { |
|
|
|
if (ConfigName.getInstance().versionSelectionEnum.equals("大炒自动投料版本") || ConfigName.getInstance().versionSelectionEnum.equals("小炒版本")) { |
|
|
|
ExecuteTheRecipe.BottomClick("平移-去1号位"); |
|
|
|
ExecuteTheRecipe.BottomClick1("平移-去1号位"); |
|
|
|
} |
|
|
|
String name = ""; |
|
|
|
String zl = ""; |
|
|
@@ -559,7 +559,9 @@ public class ExecuteTheRecipe { |
|
|
|
|
|
|
|
|
|
|
|
//1.去某一个位置 |
|
|
|
BottomClick("平移-去" + writeValue); |
|
|
|
BottomClick1("平移-去" + writeValue); |
|
|
|
|
|
|
|
|
|
|
|
Log.d("平移", "平移-去" + writeValue); |
|
|
|
//一直等待机器移动到该位置,否则就一直等待 6s超时 |
|
|
|
String name = "平移轴在" + writeValue; |
|
|
@@ -579,7 +581,7 @@ public class ExecuteTheRecipe { |
|
|
|
Log.d("平移", name + "已经就位"); |
|
|
|
|
|
|
|
//2.给倒菜启动 |
|
|
|
BottomClick("主料"); |
|
|
|
BottomClick1("主料"); |
|
|
|
name = "倒菜完成"; |
|
|
|
IsComplete[0] = false; |
|
|
|
a = System.currentTimeMillis(); |
|
|
@@ -602,7 +604,7 @@ public class ExecuteTheRecipe { |
|
|
|
|
|
|
|
if (IsMoveYiHaoWei()) { |
|
|
|
if (ConfigName.getInstance().versionSelectionEnum.equals("大炒自动投料版本") || ConfigName.getInstance().versionSelectionEnum.equals("小炒版本")) { |
|
|
|
ExecuteTheRecipe.BottomClick("平移-去1号位"); |
|
|
|
ExecuteTheRecipe.BottomClick1("平移-去1号位"); |
|
|
|
Log.d("移动去", "1号位"); |
|
|
|
} |
|
|
|
} |
|
|
@@ -649,6 +651,23 @@ public class ExecuteTheRecipe { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 组断执行 |
|
|
|
* @param name |
|
|
|
*/ |
|
|
|
public static void BottomClick1(String name) { |
|
|
|
try { |
|
|
|
Log.e("按钮按下", name); |
|
|
|
WritePLC(name, true, null); |
|
|
|
Thread.sleep(200); |
|
|
|
WritePLC(name, false, null); |
|
|
|
Log.e("按钮复位", name); |
|
|
|
} catch (Exception ex) { |
|
|
|
Log.e("按钮异常", name + ex.getMessage()); |
|
|
|
WritePLC(name, false, null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private static Activity findActivity(@NonNull Context context) { |
|
|
|
if (context instanceof Activity) { |
|
|
|
return (Activity) context; |
|
|
@@ -783,7 +802,7 @@ public class ExecuteTheRecipe { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
BottomClick("出菜"); |
|
|
|
BottomClick1("出菜"); |
|
|
|
|
|
|
|
//一直等待机器移动到该位置,否则就一直等待 6s超时 |
|
|
|
String name = "出餐启动反馈"; |
|
|
@@ -826,7 +845,7 @@ public class ExecuteTheRecipe { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
BottomClick("炒锅清洗"); |
|
|
|
BottomClick1("炒锅清洗"); |
|
|
|
|
|
|
|
//一直等待机器移动到该位置,否则就一直等待 6s超时 |
|
|
|
String name = "炒锅清洗反馈"; |
|
|
|