|
|
@@ -767,6 +767,7 @@ namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
if (!ml_morkf.InitialComplete) |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show("电磁阀启停出错,菜品库未初始化"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
@@ -781,6 +782,7 @@ namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
if (!ml_morkf.InitialComplete) |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show("爪子去到1号位出错,菜品库未初始化"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
@@ -806,6 +808,7 @@ namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
if (!ml_morkf.InitialComplete) |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show("爪子去到2号位出错,菜品库未初始化"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
@@ -831,6 +834,7 @@ namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
if (!ml_morkf.InitialComplete) |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show("爪子去到3号位出错,菜品库未初始化"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
@@ -856,6 +860,7 @@ namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
if (!ml_morkf.InitialComplete) |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show("1号测距出错,菜品库未初始化"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
@@ -870,6 +875,7 @@ namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
if (!ml_morkf.InitialComplete) |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show("2号测距出错,菜品库未初始化"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
@@ -884,6 +890,7 @@ namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
if (!ml_morkf.InitialComplete) |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show("3号测距出错,菜品库未初始化"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
@@ -959,6 +966,7 @@ namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
if (!ml_morkf.InitialComplete) |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show($"机械臂移动出错,菜品库未初始化"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
@@ -1231,10 +1239,11 @@ namespace BPASmartClient.MorkF |
|
|
|
//判断是否初始化 |
|
|
|
if(!ml_morkf.InitialComplete) |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show("更新菜品库存量出错,菜品库未初始化"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
foreach(var item in MaterialCoordinate.dicNoMaterialCoordinate) |
|
|
|
foreach(var item in MaterialCoordinate.GetInstance().dicNoMaterialCoordinate) |
|
|
|
{ |
|
|
|
//设置到抓菜处 |
|
|
|
if (!SetArmPosition(item.Value.X, item.Value.Y)) |
|
|
@@ -1418,6 +1427,7 @@ namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
//指定位置菜品减一 |
|
|
|
MaterialSurplusOperation.GetInstance().ReduceSurplus(materialOperation.materialInfo.Loc); |
|
|
|
SaveMaterialData(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -2234,8 +2244,6 @@ namespace BPASmartClient.MorkF |
|
|
|
StirArmGoOrigin(i); |
|
|
|
|
|
|
|
MessageLog.GetInstance.Show($"菜品{res.GoodName}完成"); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
@@ -2265,9 +2273,9 @@ namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
if(materialOperationQuenes.Count > 0) |
|
|
|
{ |
|
|
|
//判断是否初始化与是否在工作中 |
|
|
|
if (ml_morkf.InitialComplete && !ml_morkf.MaterailIsWorking) |
|
|
|
{ |
|
|
|
////判断是否初始化与是否在工作中 |
|
|
|
//if (ml_morkf.InitialComplete && !ml_morkf.MaterailIsWorking) |
|
|
|
//{ |
|
|
|
//待菜品库操作列出队列 |
|
|
|
if (materialOperationQuenes.TryDequeue(out var res)) |
|
|
|
{ |
|
|
@@ -2279,7 +2287,7 @@ namespace BPASmartClient.MorkF |
|
|
|
//}),"菜品库操作"); |
|
|
|
GetMaterailTest(res); |
|
|
|
} |
|
|
|
} |
|
|
|
//} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -2351,9 +2359,9 @@ namespace BPASmartClient.MorkF |
|
|
|
|
|
|
|
try |
|
|
|
{ |
|
|
|
if(MaterialCoordinate.dicNoMaterialCoordinate.ContainsKey(no)) |
|
|
|
if(MaterialCoordinate.GetInstance().dicNoMaterialCoordinate.ContainsKey(no)) |
|
|
|
{ |
|
|
|
coordinate = MaterialCoordinate.dicNoMaterialCoordinate[no]; |
|
|
|
coordinate = MaterialCoordinate.GetInstance().dicNoMaterialCoordinate[no]; |
|
|
|
return true; |
|
|
|
} |
|
|
|
else |
|
|
|