|
|
@@ -0,0 +1,127 @@ |
|
|
|
using BPA.Helper; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
namespace BPASmartClient.MorkF |
|
|
|
{ |
|
|
|
internal class ML_MorkF |
|
|
|
{ |
|
|
|
#region 菜品库的操作状态 |
|
|
|
/// <summary> |
|
|
|
/// 激光距离 |
|
|
|
/// </summary> |
|
|
|
public int LaserDistance { get; set; } |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 菜品库当前X轴坐标 |
|
|
|
/// </summary> |
|
|
|
public int ArmPositionX { get; set; } |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 菜品库当前Y轴坐标 |
|
|
|
/// </summary> |
|
|
|
public int ArmPositionY { get; set; } |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 菜品库是否在工作中 |
|
|
|
/// </summary> |
|
|
|
public bool MaterailIsWorking { get; set; } |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 初始化是否完成 |
|
|
|
/// </summary> |
|
|
|
public bool InitialComplete { get; set; } |
|
|
|
|
|
|
|
private bool _ArriveComplete = false; |
|
|
|
/// <summary> |
|
|
|
/// 定位到达,上升沿捕获需要特殊处理 |
|
|
|
/// </summary> |
|
|
|
public bool ArriveComplete |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
var ret = _ArriveComplete; |
|
|
|
_ArriveComplete = false; |
|
|
|
if(ret) |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show("到达上升沿为true"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
MessageLog.GetInstance.Show("到达上升沿为false"); |
|
|
|
} |
|
|
|
return ret; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
_ArriveComplete = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 爪子初始化完成 |
|
|
|
/// </summary> |
|
|
|
public bool PawInitialComplete { get; set; } |
|
|
|
|
|
|
|
private bool _PawArrivePortOne = false; |
|
|
|
/// <summary> |
|
|
|
/// 爪子到达一号位,上升沿捕获需要特殊处理 |
|
|
|
/// </summary> |
|
|
|
public bool PawArrivePortOne |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
var ret = _PawArrivePortOne; |
|
|
|
_PawArrivePortOne = false; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
_PawArrivePortOne = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private bool _PawArrivePortTwo = false; |
|
|
|
/// <summary> |
|
|
|
/// 爪子到达二号位,上升沿捕获需要特殊处理 |
|
|
|
/// </summary> |
|
|
|
public bool PawArrivePortTwo |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
var ret = _PawArrivePortTwo; |
|
|
|
_PawArrivePortTwo = false; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
_PawArrivePortTwo = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private bool _PawArrivePortThree = false; |
|
|
|
/// <summary> |
|
|
|
/// 爪子到达三号位 |
|
|
|
/// </summary> |
|
|
|
public bool PawArrivePortThree |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
var ret = _PawArrivePortThree; |
|
|
|
_PawArrivePortThree = false; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
_PawArrivePortThree = value; |
|
|
|
} |
|
|
|
} |
|
|
|
#endregion |
|
|
|
|
|
|
|
#region |
|
|
|
#endregion |
|
|
|
} |
|
|
|
} |