Ver código fonte

修改出餐和取菜逻辑互锁。

master
Nah 1 ano atrás
pai
commit
d38054383f
2 arquivos alterados com 5 adições e 11 exclusões
  1. +5
    -6
      BPASmartClient.MorkMV1/Control_MorkMV1.cs
  2. +0
    -5
      BPASmartClient.MorkMV1/GVL_MorkMV1.cs

+ 5
- 6
BPASmartClient.MorkMV1/Control_MorkMV1.cs Ver arquivo

@@ -603,7 +603,7 @@ namespace BPASmartClient.MorkMV1
private void TakeNoodleTask()
{
//取面控制
if (mORKM.AllowRun && mORKM.RobotStatus && !mORKM.Feeding && !mORKM.RobotTaskInterlock && mORKM.AllowTakeNoodle && mORKM.SiloInPlace && !mORKM.TakeNoodleInterlock && mORKM.RBTakeNoodleTask.Count > 0)
if (mORKM.AllowRun && mORKM.RobotStatus && !mORKM.RobotOutDinnigLock&&!mORKM.Feeding && !mORKM.RobotTaskInterlock && mORKM.AllowTakeNoodle && mORKM.SiloInPlace && !mORKM.TakeNoodleInterlock && mORKM.RBTakeNoodleTask.Count > 0)
{
if (mORKM.CurrentLoc == mORKM.CurrentFeedbackLoc)
{
@@ -646,7 +646,7 @@ namespace BPASmartClient.MorkMV1
/// </summary>
private void OutNoodleTask()
{
if (mORKM.AllowInvertedFace && !mORKM.RobotOutDinnigLock && mORKM.RobotTaskInterlock && !mORKM.TakeNoodleInterlock && mORKM.RobotStatus)
if (mORKM.AllowInvertedFace && !mORKM.RobotOutDinnigLock && mORKM.RobotTaskInterlock && !mORKM.TakeNoodleInterlock && mORKM.RobotStatus)
{
for (int i = 0; i < mORKM.CookNodelId.Length; i++)
{
@@ -675,7 +675,7 @@ namespace BPASmartClient.MorkMV1
}

//执行取荤菜
if (x.AcVegetableCount == x.CuVegetableCount && x.AcMeatDishesCount != x.CuMeatDishesCount)
if (!mORKM.RobotOutDinnigLock && x.AcVegetableCount == x.CuVegetableCount && x.AcMeatDishesCount != x.CuMeatDishesCount)
{
int index = x.MeatDishesLoc.FindIndex(p => p == i + 1);
if (index >= 0)
@@ -735,7 +735,7 @@ namespace BPASmartClient.MorkMV1
mORKM.TakeNoodleInterlock = false;
mORKM.AllowTakeNoodle = false;
mORKM.TurntableInterlock = false;
mORKM.IsTakeNoodleOver = true;
//mORKM.NeedOutNoodle = true;
DeviceProcessLogShow("机器人取面完成信号检测");
}
//机器人倒面完成信号检测
@@ -755,12 +755,11 @@ namespace BPASmartClient.MorkMV1
mORKM.OutMealSortNum = mORKM.IngredientsCompleteSortNum;
mORKM.IngredientsCompleteId = string.Empty;
CookComplete();
mORKM.IsTakeNoodleOver = false;
DeviceProcessLogShow($"倒面完成");

}
}
mORKM.RobotOutDinnigLock = false;
//mORKM.NeedOutNoodle = false;
}

int OutMealRequstCount = mORKM.CookNoodleCom.Where(p => p == true).ToList().Count;


+ 0
- 5
BPASmartClient.MorkMV1/GVL_MorkMV1.cs Ver arquivo

@@ -96,11 +96,6 @@ namespace BPASmartClient.MorkMV1
/// </summary>
[VariableMonitor("取面任务数量")]
public int RBTakeNoodleTaskCount { get; set; }
/// <summary>
/// 取面是否完成,为false时为倒面完成
/// </summary>
[VariableMonitor("取面是否完成")]
public bool IsTakeNoodleOver { get; set; }
#endregion

#region 列表数据


Carregando…
Cancelar
Salvar