重新整理Routine和仿真

This commit is contained in:
hanqiangqiang
2026-06-10 15:41:00 +08:00
parent 9588fe0121
commit a11d2b154d
22 changed files with 1227 additions and 1053 deletions
@@ -122,7 +122,7 @@ namespace SicModules.PMs.RecipeExecutions
EV.PostAlarmLog(Module, $"can not run process,K valves is not closed!");
return Result.FAIL;
}
if (!PmDevice.CheckIOValueByGroup(IoGroupName.V72, true))
if (!PmDevice.CheckIOValueByGroup(IoGroupName.VentPump, true))
{
EV.PostAlarmLog(Module, $"can not run process,V72 is not open!");
return Result.FAIL;
@@ -55,6 +55,8 @@ namespace SicModules.PMs.RecipeExecutions
SetTC2Ratio1,
CloseTC2,
WaitRotation1,
SetV103,
SetV105,
TimeDelay1,
TimeDelay2,
@@ -149,6 +151,9 @@ namespace SicModules.PMs.RecipeExecutions
//打开V31,打开V32
SetIoValueByGroup((int)RoutineStep.SetV31, IoGroupName.V31, true, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetV32, IoGroupName.V32, true, _IoValueOpenCloseTimeout);
//打开V103,关闭V105
SetIoValueByGroup((int)RoutineStep.SetV103, IoGroupName.V103, true, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetV105, IoGroupName.V105, false, _IoValueOpenCloseTimeout);
//打开V35,打开V36
SetIoValueByGroup((int)RoutineStep.SetV35V36, IoGroupName.V35V36, true, _IoValueOpenCloseTimeout);
@@ -169,13 +174,14 @@ namespace SicModules.PMs.RecipeExecutions
//SetIoValueByGroup((int)RoutineStep.SetV65, IoGroupName.V65, true, _IoValueOpenCloseTimeout);
//打开V68
SetIoValueByGroup((int)RoutineStep.SetV68, IoGroupName.V68, true, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetV68, IoGroupName.GasIn1, true, _IoValueOpenCloseTimeout);
//M2、M9、M15、M19-M40 MFC 30s ramp 到 default 值
SetMfcToDefaultByGroup((int)RoutineStep.SetM2toM40, MfcGroupName.M2toM45, 5);
SetMfcToDefaultByGroup((int)RoutineStep.SetM2toM40, MfcGroupName.M2toM42, 5);
//M1 - M16 MFC 30s ramp 到 default 值(M2、M9、M15除外)
SetMfcToDefaultByGroup((int)RoutineStep.SetM1to16, MfcGroupName.M1to16, 5);
SetMfcToDefaultByGroup((int)RoutineStep.SetM17M18, MfcGroupName.M17M18, 5);
//所有PC设定为默认值
SetPcToDefault((int)RoutineStep.SetPC, _lstPcList);
@@ -187,7 +193,7 @@ namespace SicModules.PMs.RecipeExecutions
SetIoValueByGroup((int)RoutineStep.SetGroupJOpen, IoGroupName.J, true, _IoValueOpenCloseTimeout);
//打开V72,关闭V25
SetIoValueByGroup((int)RoutineStep.VentPumpClose, IoGroupName.V72, true, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.VentPumpClose, IoGroupName.VentPump, true, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetGroupV25, IoGroupName.V25, false, _IoValueOpenCloseTimeout);
//设置蝶阀Enable
@@ -186,7 +186,7 @@ namespace SicModules.PMs.RecipeExecutions
EV.PostAlarmLog(Module, $"can not run process,K valves is not closed!");
return Result.FAIL;
}
if (!PmDevice.CheckIOValueByGroup(IoGroupName.V72, true))
if (!PmDevice.CheckIOValueByGroup(IoGroupName.VentPump, true))
{
EV.PostAlarmLog(Module, $"can not run process,V72 is not open!");
return Result.FAIL;
@@ -446,8 +446,11 @@ namespace SicModules.PMs.RecipeExecutions
_stepTimer2.Start(int.MaxValue);
Notify(
$"Running step {_currentStepNumber + 1} : {PmDevice.RecipeRunningInfo.RecipeStepList[_currentStepNumber].StepName}");
Notify($"Running step {_currentStepNumber + 1} : {PmDevice.RecipeRunningInfo.RecipeStepList[_currentStepNumber].StepName}");
GemManager.Instance?.TriggerEvent($"{Module}RecipeStepStart", new string[] { $"{Module}.SelectedRecipeName", $"{Module}.RecipeStepNumber",$"{Module}.RecipeStepName" },
new object[] { PmDevice.RecipeRunningInfo.RecipeName, _currentStepNumber + 1,
PmDevice.RecipeRunningInfo.RecipeStepList[_currentStepNumber].StepName });
if (PmDevice.RecipeRunningInfo.RecipeStepList[_currentStepNumber].IsDummyStep)
{
@@ -685,9 +688,12 @@ namespace SicModules.PMs.RecipeExecutions
case RecipeRunningState.StepCompleted:
{
//放在前面,stepnumber后面会被更新
//放在前面,stepnumber后面会被更新
GemManager.Instance?.TriggerEvent($"{Module}RecipeStepComplete",
new string[] { $"{Module}.SelectedRecipeName", $"{Module}.RecipeStepNumber", $"{Module}.RecipeStepName" },
new object[] { PmDevice.RecipeRunningInfo.RecipeName, _currentStepNumber + 1,PmDevice.RecipeRunningInfo.RecipeStepList[_currentStepNumber].StepName });
_stepTimer2.Stop();
_stepTimer2.Stop();
_dbCallback.RecipeStepEnd(PmDevice.RecipeRunningInfo.InnerId.ToString(),
_currentStepNumber, _fdc.DataList);
@@ -142,15 +142,15 @@ namespace SicModules.PMs.RecipeExecutions
recipeStep.GrowthRate = Convert.ToDouble(dic["GrowthRate"]);
recipeStep.EndBy = EnumEndByCondition.ByTime;
if (dic.TryGetValue("Loop", out var loopStr))
{
recipeStep.IsLoopStartStep = System.Text.RegularExpressions.Regex.Match(loopStr, @"Loop\x20\d+\s*$").Success;
recipeStep.IsLoopEndStep = System.Text.RegularExpressions.Regex.Match(loopStr, @"Loop End$").Success;
if (recipeStep.IsLoopStartStep)
recipeStep.LoopCount = Convert.ToInt32(loopStr.Replace("Loop", string.Empty));
else
recipeStep.LoopCount = 0;
}
//if (dic.TryGetValue("Loop", out var loopStr))
//{
// recipeStep.IsLoopStartStep = System.Text.RegularExpressions.Regex.Match(loopStr, @"Loop\x20\d+\s*$").Success;
// recipeStep.IsLoopEndStep = System.Text.RegularExpressions.Regex.Match(loopStr, @"Loop End$").Success;
// if (recipeStep.IsLoopStartStep)
// recipeStep.LoopCount = Convert.ToInt32(loopStr.Replace("Loop", string.Empty));
// else
// recipeStep.LoopCount = 0;
//}
//if (recipeData.Count >= 2)
//{
@@ -165,6 +165,9 @@ namespace SicModules.PMs.RecipeExecutions
// }
//}
foreach (var key in dic.Keys)
recipeStep.RecipeCommands.Add(key, dic[key]);
#region Remove
//dic.Remove("StepNo");
@@ -225,7 +228,7 @@ namespace SicModules.PMs.RecipeExecutions
//{
// dic.Remove("Mfc30.Ramp");
//}
dic.Remove("HCLSourSplitRatio");
dic.Remove("SHTotalFlow");
dic.Remove("SHTotalFlowSplitRatio");
//dic.Remove("SiSourTotalFlow");
@@ -243,6 +246,9 @@ namespace SicModules.PMs.RecipeExecutions
dic.Remove("SHOutterFlow");
//dic.Remove("GRPurgeHCI");
//dic.Remove("TotalVentFlow");
if (dic.ContainsKey("Loop"))
dic.Remove("Loop");
#endregion
foreach (var key in dic.Keys)