Browse Source

morkBF

样式分支
NXX 2 years ago
parent
commit
9e0947f1b3
2 changed files with 289 additions and 3 deletions
  1. +0
    -1
      BPASmartClient.MorkBF/Control_MorkBF.cs
  2. +289
    -2
      BPASmartClient.MorkBF/GVL_MorkBF.cs

+ 0
- 1
BPASmartClient.MorkBF/Control_MorkBF.cs View File

@@ -1149,7 +1149,6 @@ namespace BPASmartClient.MorkBF

private List<ProcessModel> SetFirePotPorcess(int potState)
{
if (potState > 0)
{
if(potState <=3)


+ 289
- 2
BPASmartClient.MorkBF/GVL_MorkBF.cs View File

@@ -367,9 +367,10 @@ namespace BPASmartClient.MorkBF

public Dictionary<int, bool> FirePot2_CompleteSingle { get; set; }

public GVL_MorkBF()
public GVL_MorkBF(string FireName)
{
FirePot1_CompleteSingle = new Dictionary<int, bool>
{
{1,Robot_FirePot1OutMeal },
@@ -383,9 +384,295 @@ namespace BPASmartClient.MorkBF
{3,Robot_FirePot2OutVegetables2 },
};

//炒锅1通道完成信号
Fire1_PasswayCompleteSingle = new Dictionary<int, bool>
{
{1,Fire1_OutMaterial1 },
{2,Fire1_OutMaterial2 },
{3,Fire1_OutMaterial3 },
{4,Fire1_OutMaterial4 },
{5,Fire1_OutMaterial5 },
{6,Fire1_OutMaterial6 },
{7,Fire1_OutMaterial7 },
{8,Fire1_OutMaterial8 },
};
Fire2_PasswayCompleteSingle = new Dictionary<int, bool>
{
{1,Fire2_OutMaterial1 },
{2,Fire2_OutMaterial2 },
{3,Fire2_OutMaterial3 },
{4,Fire2_OutMaterial4 },
{5,Fire2_OutMaterial5 },
{6,Fire2_OutMaterial6 },
{7,Fire2_OutMaterial7 },
{8,Fire2_OutMaterial8 },
};



}

public DateTime FirePan1_Date;
public DateTime FirePan2_Date;

#region 新大炒

/// <summary>
/// 炒锅1通道完成信号
/// </summary>
public Dictionary<int, bool> Fire1_PasswayCompleteSingle { get; set; }

/// <summary>
/// 炒锅2通道完成信号
/// </summary>
public Dictionary<int, bool> Fire2_PasswayCompleteSingle { get; set; }

/// <summary>
/// 炒锅通道出料写入点位
/// </summary>
public Dictionary<int, string> Fire_PasswayWrite { get; set; } = new Dictionary<int, string>
{
{1,"M11.3"},
{2,"M11.4"},
{3,"M11.5"},
{4,"M11.6"},
{5,"M11.7"},
{6,"M12.0"},
{7,"M12.1"},
{8,"M12.2"},
};


#region 炒锅1
/// <summary>
/// 炒锅1初始化完成
/// </summary>
[VariableMonitor("炒锅1初始化完成", "M40.0", "640")]
public bool Fire1_InitComplete { get; set; }
/// <summary>
/// 炒锅1自动模式切换
/// </summary>
[VariableMonitor("炒锅1自动模式切换", "M40.1", "641")]
public bool Fire1_AutoMode { get; set; }
/// <summary>
/// 炒锅1急停
/// </summary>
[VariableMonitor("炒锅1急停", "M40.2", "642")]
public bool Fire1_EmergencyStop { get; set; }
/// <summary>
/// 炒锅1炒制位置1反馈
/// </summary>
[VariableMonitor("炒锅1炒制位置1反馈", "M40.3", "643")]
public bool Fire1_IsPosition1 { get; set; }
/// <summary>
/// 炒锅1炒制位置2反馈
/// </summary>
[VariableMonitor("炒锅1炒制位置2反馈", "M40.4", "644")]
public bool Fire1_IsPosition2 { get; set; }
/// <summary>
/// 炒锅1炒制位置3反馈
/// </summary>
[VariableMonitor("炒锅1炒制位置3反馈", "M40.5", "645")]
public bool Fire1_IsPosition3 { get; set; }
/// <summary>
/// 炒锅1炒制位置4反馈
/// </summary>
[VariableMonitor("炒锅1炒制位置4反馈", "M40.6", "646")]
public bool Fire1_IsPosition4 { get; set; }
/// <summary>
/// 炒锅1在出餐倒料位置
/// </summary>
[VariableMonitor("炒锅1在出餐倒料位置", "M40.7", "647")]
public bool Fire1_InOutFoodPosition { get; set; }
/// <summary>
/// 炒锅1在投料位置
/// </summary>
[VariableMonitor("炒锅1在投料位置", "M41.0", "648")]
public bool Fire1_InFoodPosition { get; set; }
/// <summary>
/// 炒锅1在洗锅位置
/// </summary>
[VariableMonitor("炒锅1在洗锅位置", "M41.1", "649")]
public bool Fire1_InWashPosition { get; set; }

/// <summary>
/// 炒锅1通道1出料完成
/// </summary>
[VariableMonitor("炒锅1通道1出料完成", "M41.2", "650")]
public bool Fire1_OutMaterial1 { get; set; }
/// <summary>
/// 炒锅1通道2出料完成
/// </summary>
[VariableMonitor("炒锅1通道2出料完成", "M41.3", "651")]
public bool Fire1_OutMaterial2 { get; set; }
/// <summary>
/// 炒锅1通道3出料完成
/// </summary>
[VariableMonitor("炒锅1通道3出料完成", "M41.4", "652")]
public bool Fire1_OutMaterial3 { get; set; }
/// <summary>
/// 炒锅1通道4出料完成
/// </summary>
[VariableMonitor("炒锅1通道4出料完成", "M41.5", "653")]
public bool Fire1_OutMaterial4 { get; set; }
/// <summary>
/// 炒锅1通道5出料完成
/// </summary>
[VariableMonitor("炒锅1通道5出料完成", "M41.6", "654")]
public bool Fire1_OutMaterial5 { get; set; }
/// <summary>
/// 炒锅1通道6出料完成
/// </summary>
[VariableMonitor("炒锅1通道6出料完成", "M41.7", "655")]
public bool Fire1_OutMaterial6 { get; set; }
/// <summary>
/// 炒锅1通道7出料完成
/// </summary>
[VariableMonitor("炒锅1通道7出料完成", "M42.0", "656")]
public bool Fire1_OutMaterial7{ get; set; }
/// <summary>
/// 炒锅1通道8出料完成
/// </summary>
[VariableMonitor("炒锅1通道8出料完成", "M42.1", "657")]
public bool Fire1_OutMaterial8 { get; set; }

/// <summary>
/// 炒锅1当前锅底温度
/// </summary>
[VariableMonitor("炒锅1当前锅底温度", "VW200", "200")]
public int Fire1_PotTemperature { get; set; }
/// <summary>
/// 炒锅1搅拌速度
/// </summary>
[VariableMonitor("炒锅1搅拌速度", "VW202", "201")]
public int Fire1_StirSpeed { get; set; }
/// <summary>
/// 炒锅1炒制角度
/// </summary>
[VariableMonitor("炒锅1炒制角度", "VW204", "202")]
public int Fire1_FireAngle { get; set; }
/// <summary>
/// 炒锅1当前加热挡位
/// </summary>
[VariableMonitor("炒锅1当前加热挡位", "VW205", "203")]
public int Fire1_CurrentFire { get; set; }
#endregion

#region 炒锅2
/// <summary>
/// 炒锅2初始化完成
/// </summary>
[VariableMonitor("炒锅2初始化完成", "M40.0", "640")]
public bool Fire2_InitComplete { get; set; }
/// <summary>
/// 炒锅2自动模式切换
/// </summary>
[VariableMonitor("炒锅2自动模式切换", "M40.1", "641")]
public bool Fire2_AutoMode { get; set; }
/// <summary>
/// 炒锅2急停
/// </summary>
[VariableMonitor("炒锅2急停", "M40.2", "642")]
public bool Fire2_EmergencyStop { get; set; }
/// <summary>
/// 炒锅2炒制位置1反馈
/// </summary>
[VariableMonitor("炒锅2炒制位置1反馈", "M40.3", "643")]
public bool Fire2_IsPosition1 { get; set; }
/// <summary>
/// 炒锅2炒制位置2反馈
/// </summary>
[VariableMonitor("炒锅2炒制位置2反馈", "M40.4", "644")]
public bool Fire2_IsPosition2 { get; set; }
/// <summary>
/// 炒锅2炒制位置3反馈
/// </summary>
[VariableMonitor("炒锅2炒制位置3反馈", "M40.5", "645")]
public bool Fire2_IsPosition3 { get; set; }
/// <summary>
/// 炒锅2炒制位置4反馈
/// </summary>
[VariableMonitor("炒锅2炒制位置4反馈", "M40.6", "646")]
public bool Fire2_IsPosition4 { get; set; }
/// <summary>
/// 炒锅2在出餐倒料位置
/// </summary>
[VariableMonitor("炒锅2在出餐倒料位置", "M40.7", "647")]
public bool Fire2_InOutFoodPosition { get; set; }
/// <summary>
/// 炒锅2在投料位置
/// </summary>
[VariableMonitor("炒锅2在投料位置", "M41.0", "648")]
public bool Fire2_InFoodPosition { get; set; }
/// <summary>
/// 炒锅2在洗锅位置
/// </summary>
[VariableMonitor("炒锅2在洗锅位置", "M41.1", "649")]
public bool Fire2_InWashPosition { get; set; }

/// <summary>
/// 炒锅2通道1出料完成
/// </summary>
[VariableMonitor("炒锅2通道1出料完成", "M41.2", "650")]
public bool Fire2_OutMaterial1 { get; set; }
/// <summary>
/// 炒锅2通道2出料完成
/// </summary>
[VariableMonitor("炒锅2通道2出料完成", "M41.3", "651")]
public bool Fire2_OutMaterial2 { get; set; }
/// <summary>
/// 炒锅2通道3出料完成
/// </summary>
[VariableMonitor("炒锅2通道3出料完成", "M41.4", "652")]
public bool Fire2_OutMaterial3 { get; set; }
/// <summary>
/// 炒锅2通道4出料完成
/// </summary>
[VariableMonitor("炒锅2通道4出料完成", "M41.5", "653")]
public bool Fire2_OutMaterial4 { get; set; }
/// <summary>
/// 炒锅2通道5出料完成
/// </summary>
[VariableMonitor("炒锅2通道5出料完成", "M41.6", "654")]
public bool Fire2_OutMaterial5 { get; set; }
/// <summary>
/// 炒锅2通道6出料完成
/// </summary>
[VariableMonitor("炒锅2通道6出料完成", "M41.7", "655")]
public bool Fire2_OutMaterial6 { get; set; }
/// <summary>
/// 炒锅2通道7出料完成
/// </summary>
[VariableMonitor("炒锅2通道7出料完成", "M42.0", "656")]
public bool Fire2_OutMaterial7 { get; set; }
/// <summary>
/// 炒锅2通道8出料完成
/// </summary>
[VariableMonitor("炒锅2通道8出料完成", "M42.1", "657")]
public bool Fire2_OutMaterial8 { get; set; }

/// <summary>
/// 炒锅2当前锅底温度
/// </summary>
[VariableMonitor("炒锅2当前锅底温度", "VW200", "200")]
public int Fire2_PotTemperature { get; set; }
/// <summary>
/// 炒锅2搅拌速度
/// </summary>
[VariableMonitor("炒锅2搅拌速度", "VW202", "201")]
public int Fire2_StirSpeed { get; set; }
/// <summary>
/// 炒锅2炒制角度
/// </summary>
[VariableMonitor("炒锅2炒制角度", "VW204", "202")]
public int Fire2_FireAngle { get; set; }
/// <summary>
/// 炒锅2当前加热挡位
/// </summary>
[VariableMonitor("炒锅2当前加热挡位", "VW205", "203")]
public int Fire2_CurrentFire { get; set; }
#endregion
#endregion
}
}

Loading…
Cancel
Save