pengliangyang 1 year ago
parent
commit
085b58935a
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      BPASmartClient.MorkMV1/Control_MorkMV1.cs

+ 7
- 5
BPASmartClient.MorkMV1/Control_MorkMV1.cs View File

@@ -34,6 +34,7 @@ namespace BPASmartClient.MorkMV1
GVL_MorkMV1 mORKM = new GVL_MorkMV1(); GVL_MorkMV1 mORKM = new GVL_MorkMV1();
Alarm alarm = new Alarm(); Alarm alarm = new Alarm();



public override void DoMain() public override void DoMain()
{ {
MonitorViewModel.DeviceId = DeviceId; MonitorViewModel.DeviceId = DeviceId;
@@ -602,7 +603,7 @@ namespace BPASmartClient.MorkMV1
private void TakeNoodleTask() 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) if (mORKM.CurrentLoc == mORKM.CurrentFeedbackLoc)
{ {
@@ -645,7 +646,7 @@ namespace BPASmartClient.MorkMV1
/// </summary> /// </summary>
private void OutNoodleTask() 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++) for (int i = 0; i < mORKM.CookNodelId.Length; i++)
{ {
@@ -674,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); int index = x.MeatDishesLoc.FindIndex(p => p == i + 1);
if (index >= 0) if (index >= 0)
@@ -734,9 +735,10 @@ namespace BPASmartClient.MorkMV1
mORKM.TakeNoodleInterlock = false; mORKM.TakeNoodleInterlock = false;
mORKM.AllowTakeNoodle = false; mORKM.AllowTakeNoodle = false;
mORKM.TurntableInterlock = false; mORKM.TurntableInterlock = false;
//mORKM.NeedOutNoodle = true;
DeviceProcessLogShow("机器人取面完成信号检测"); DeviceProcessLogShow("机器人取面完成信号检测");
} }
//机器人倒面完成信号检测
if (RTrig.GetInstance("RobotInvertedSurfaceCom").Start(mORKM.RobotInvertedSurfaceCom)) if (RTrig.GetInstance("RobotInvertedSurfaceCom").Start(mORKM.RobotInvertedSurfaceCom))
{ {
if (mORKM.SuborderCount.ContainsKey(mORKM.IngredientsCompleteId)) if (mORKM.SuborderCount.ContainsKey(mORKM.IngredientsCompleteId))
@@ -754,10 +756,10 @@ namespace BPASmartClient.MorkMV1
mORKM.IngredientsCompleteId = string.Empty; mORKM.IngredientsCompleteId = string.Empty;
CookComplete(); CookComplete();
DeviceProcessLogShow($"倒面完成"); DeviceProcessLogShow($"倒面完成");

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


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


Loading…
Cancel
Save