|
|
@@ -634,6 +634,10 @@ public class ExecuteTheRecipe { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//默认去炒制位置1去等待 |
|
|
|
BPA_GOODSRECIPE data3 = Get位置("高速", "炒菜位1"); |
|
|
|
ExecuteOperationSteps(data3.processname, data3.processvalue); |
|
|
|
|
|
|
|
//判断是否有烹饪时间 |
|
|
|
int val = 0; |
|
|
|
for (HashMap.Entry<String, String> entry : data.entrySet()) { |
|
|
@@ -1018,6 +1022,10 @@ public class ExecuteTheRecipe { |
|
|
|
WriteMainPLC("炒锅投主料完成", true, null); |
|
|
|
} |
|
|
|
|
|
|
|
//默认去炒制位置1去等待 |
|
|
|
BPA_GOODSRECIPE data3 = Get位置("高速", "炒菜位1"); |
|
|
|
ExecuteOperationSteps(data3.processname, data3.processvalue); |
|
|
|
|
|
|
|
//判断是否有烹饪时间 |
|
|
|
int val = 0; |
|
|
|
for (HashMap.Entry<String, String> entry : data.entrySet()) { |
|
|
@@ -1155,6 +1163,10 @@ public class ExecuteTheRecipe { |
|
|
|
WriteMainPLC("炒锅投主料完成", true, null); |
|
|
|
} |
|
|
|
|
|
|
|
//默认去炒制位置1去等待 |
|
|
|
BPA_GOODSRECIPE data3 = Get位置("高速", "炒菜位1"); |
|
|
|
ExecuteOperationSteps(data3.processname, data3.processvalue); |
|
|
|
|
|
|
|
//判断是否有烹饪时间 |
|
|
|
int val = 0; |
|
|
|
for (HashMap.Entry<String, String> entry : data.entrySet()) { |
|
|
@@ -1224,6 +1236,10 @@ public class ExecuteTheRecipe { |
|
|
|
ExecuteTheRecipe.WritePLC("加热", true, null); |
|
|
|
}//再次释放加热 |
|
|
|
|
|
|
|
//默认去炒制位置1去等待 |
|
|
|
BPA_GOODSRECIPE data3 = Get位置("高速", "炒菜位1"); |
|
|
|
ExecuteOperationSteps(data3.processname, data3.processvalue); |
|
|
|
|
|
|
|
if (val > 0) { |
|
|
|
Thread.sleep(val * 1000); |
|
|
|
} |
|
|
@@ -1846,6 +1862,21 @@ public class ExecuteTheRecipe { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//机器人急停,制作订单 应该暂停 |
|
|
|
|
|
|
|
//强制结束任务 |
|
|
|
Object IsStop = ReadMainPLC("强制结束任务"); |
|
|
|
if (IsStop != null) { |
|
|
|
if ((boolean) IsStop) |
|
|
|
{ |
|
|
|
WriteMainPLC("强制结束任务", false, null);//复位 |
|
|
|
|
|
|
|
ExecuteTheRecipe.IsPause = false; |
|
|
|
ExecuteTheRecipe.WritePLC("暂停开关", false, null); |
|
|
|
ExecuteTheRecipe.SetForcedEnd();//设置强制结束 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Object IsJT = ReadMainPLC("机器人急停"); |
|
|
|
// if (IsJT != null) { |
|
|
|
// if ((boolean) IsJT)//异常情况 |
|
|
|