|
|
@@ -485,7 +485,13 @@ namespace BPASmartClient.MorkSUpgradedVer |
|
|
|
mORKS.DiningComplete = bools[1]; |
|
|
|
} |
|
|
|
})); |
|
|
|
|
|
|
|
GetStatus("M16.6", new Action<object>((obj) => |
|
|
|
{ |
|
|
|
if (obj is bool[] bools && bools.Length > 0 && bools.Length <= 1) |
|
|
|
{ |
|
|
|
mORKS.outFinish = bools[0]; |
|
|
|
} |
|
|
|
})); |
|
|
|
GetStatus("M10.4", new Action<object>((obj) => |
|
|
|
{ |
|
|
|
if (obj is bool[] bools && bools.Length > 0 && bools.Length <= 1) |
|
|
@@ -1088,6 +1094,7 @@ namespace BPASmartClient.MorkSUpgradedVer |
|
|
|
{ |
|
|
|
if (mORKS.AllowInvertedFace && mORKS.RobotTaskInterlock && !mORKS.RobotOutDinnigLock && !mORKS.TakeNoodleInterlock && mORKS.RobotStatus) |
|
|
|
{ |
|
|
|
|
|
|
|
#region 修改之前的代码 |
|
|
|
|
|
|
|
//int loc = Array.FindIndex(mORKS.CookNodelId, p => p == mORKS.IngredientsCompleteId && p.Length > 0); |
|
|
@@ -1114,7 +1121,7 @@ namespace BPASmartClient.MorkSUpgradedVer |
|
|
|
if (FoodMenuViewModel.orderStatusLists.Count>0) |
|
|
|
{ |
|
|
|
int loc = mORKS.CookNodelId.ToList().FindIndex(o => o == FoodMenuViewModel.orderStatusLists.Last().OrderPush.SuborderId); |
|
|
|
if (loc>=0&&mORKS.CookNoodleCom[loc] && !mORKS.RobotOutDinnigLock) |
|
|
|
if (loc>=0&&mORKS.CookNoodleCom[loc]) |
|
|
|
{ |
|
|
|
var res = FoodMenuViewModel.orderStatusLists.FirstOrDefault(o => o.OrderPush.SuborderId == mORKS.CookNodelId[loc]); |
|
|
|
if (res != null) |
|
|
@@ -1132,7 +1139,8 @@ namespace BPASmartClient.MorkSUpgradedVer |
|
|
|
mORKS.IngredientsCompleteId = string.Empty; |
|
|
|
mORKS.CookNodelId[loc] = string.Empty; |
|
|
|
DeviceProcessLogShow($"{loc + 1} 号位置出餐控制,订单ID:{mORKS.OutMealId}"); |
|
|
|
mORKS.CookNoodleCom[loc] = false; |
|
|
|
mORKS.outNum = loc; |
|
|
|
|
|
|
|
mORKS.RobotOutDinnigLock = true; |
|
|
|
} |
|
|
|
else |
|
|
@@ -1194,7 +1202,15 @@ namespace BPASmartClient.MorkSUpgradedVer |
|
|
|
mORKS.TakeBowlInterlock = false; |
|
|
|
mORKS.RobotOutDinnigLock = false; |
|
|
|
} |
|
|
|
|
|
|
|
if (RTrig.GetInstance("OutFinish").Start(mORKS.outFinish)) |
|
|
|
{ |
|
|
|
DeviceProcessLogShow("到面完成启动"); |
|
|
|
if (mORKS.outNum >= 0) |
|
|
|
{ |
|
|
|
mORKS.CookNoodleCom[mORKS.outNum] = false; |
|
|
|
mORKS.outNum = -1; |
|
|
|
} |
|
|
|
} |
|
|
|
//取餐完成逻辑处理 |
|
|
|
if (RTrig.GetInstance("CompleteChange1").Start(mORKS.DiningComplete) && mORKS.CookCompleteFlatBit == true) |
|
|
|
{ |
|
|
@@ -1222,6 +1238,7 @@ namespace BPASmartClient.MorkSUpgradedVer |
|
|
|
mORKS.OutMealId = string.Empty; |
|
|
|
mORKS.OutMealName = string.Empty; |
|
|
|
mORKS.OutMealSortNum = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//机器人取面完成信号检测 |
|
|
|