PMroutine修改

This commit is contained in:
SIC1016\caipeilun
2026-08-04 18:19:29 +08:00
parent d44543a758
commit 1a9f180e2b
10 changed files with 354 additions and 457 deletions
@@ -1,8 +1,11 @@
using Aitex.Core.RT.Event;
using Aitex.Core.RT.Device;
using Aitex.Core.RT.Device.Devices;
using Aitex.Core.RT.Event;
using Aitex.Core.RT.Routine;
using Aitex.Core.RT.SCCore;
using MECF.Framework.Common.Equipment;
using MECF.Framework.Common.SubstrateTrackings;
using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.MFCs;
using SicModules.PMs.Routines.Base;
namespace SicModules.PMs.Routines
@@ -46,11 +49,37 @@ namespace SicModules.PMs.Routines
TimeDelay12,
TimeDelay13,
TimeDelay14,
TimeDelay15
TimeDelay15,
SetV31,
SetV32,
SetV35V36,
SetGroupB,
SetGroupC,
SetGroupE,
SetGroupF,
SetGroupH,
SetGroupK,
SetGroupD,
SetGroupG,
SetM1toM17,
SetPC,
SetM18toM40,
SetEPV2,
SetGroupJ,
SetV72,
SetV25,
SetPressureDown,
SetTVto300
}
bool hasWafer;
private IoThrottleValve2 _IoThrottle;
private double _throttleFinalPressure = 300;//蝶阀最终调整对的压力
private double _pmPressureMaxDiff; //蝶阀与目标压力的差值范围(认为调整到位了)
private int _throttleTimeout; //蝶阀调整到指定压力的超时时间
//private int _timeout;
private int _rotationSpeed = 60;
@@ -68,6 +97,7 @@ namespace SicModules.PMs.Routines
private float _scrL2Ratio = 0;
private float _scrL3Ratio = 0;
private int _IoValueOpenCloseTimeout = 10; //开关超时时间
private double _targetPressure;
private PMServoToPressure _pmServoToPressure;
@@ -99,11 +129,14 @@ namespace SicModules.PMs.Routines
public override Result Start(params object[] objs)
{
//servo = DEVICE.GetDevice<NAISServo>($"{Module}.NAISServo");
//_timeout = SC.GetValue<int>($"NAISServo.UpTimeout");
_IoThrottle = DEVICE.GetDevice<IoThrottleValve2>($"{Module}.TV");
_rotationSpeed = SC.GetValue<int>($"PM.{Module}.ProcessIdle.RotationSpeed");
_pmPressureMaxDiff = SC.GetValue<double>($"PM.{Module}.ThrottlePressureMaxDiff");
_throttleFinalPressure = SC.GetValue<double>($"PM.{Module}.ProcessIdle.FinalPressure");
_throttleTimeout = SC.GetValue<int>($"PM.{Module}.ThrottlePressureTimeout");
_psuHeatEnable = SC.GetValue<bool>($"PM.{Module}.ProcessIdle.PSUHeaterEnable");
_psuHeatMode = SC.GetValue<int>($"PM.{Module}.ProcessIdle.PSUHeaterMode");
//_psuPowerRef = (float)SC.GetValue<double>($"PM.{Module}.ProcessIdle.PSUPowerRef");
@@ -135,19 +168,41 @@ namespace SicModules.PMs.Routines
public override Result Monitor()
{
try
try
{
//1、 打开 V31(H2.Supply)、 V32(Ar.Supply)。
SetIoValueByGroup((int)RoutineStep.SetV31, IoGroupName.V31, true, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetV32, IoGroupName.V32, true, _IoValueOpenCloseTimeout);
//2、 打开 V35(H2N2.Line1)、 V36(H2N2.Line2),关闭 B/ C / E / F / H / KValves,打开 D/ G Valves。
SetIoValueByGroup((int)RoutineStep.SetV35V36, IoGroupName.V35V36, true, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetGroupB, IoGroupName.B, false, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetGroupC, IoGroupName.C, false, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetGroupE, IoGroupName.E, false, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetGroupF, IoGroupName.F, false, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetGroupH, IoGroupName.H, false, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetGroupK, IoGroupName.K, false, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetGroupD, IoGroupName.D, true, _IoValueOpenCloseTimeout);
SetIoValueByGroup((int)RoutineStep.SetGroupG, IoGroupName.G, true, _IoValueOpenCloseTimeout);
//3、 M1 - M17 设定为 default 值,所有 PC 设定为 default 值(PC1 - PC9)。
SetMfcToDefaultByGroup((int)RoutineStep.SetM1toM17, MfcGroupName.M1toM17, 0);
SetPcToDefault((int)RoutineStep.SetPC, _lstPcList);
//4、 M18 - M40(除 M30\M34\M39)) MFC 3s ramp 到 default 值。
SetMfcToDefaultByGroup((int)RoutineStep.SetM18toM40, MfcGroupName.M18toM40No303439, 3);
//5、 打开 EPV2。
SetIoValueByGroup((int)RoutineStep.SetEPV2, IoGroupName.EPV2, true, _IoValueOpenCloseTimeout);
//6、打开 J Valves
SetIoValueByGroup((int)RoutineStep.SetGroupJ, IoGroupName.J, true, _IoValueOpenCloseTimeout);
//7、打开 V72(GasBox.Vent.Pump) 关闭 V25(GasBox.Vent.Bypass), 反应腔压力伺服到300mbar(可配置)
SetIoValueByGroup((int)RoutineStep.SetV72, IoGroupName.VentPump, true, _IoValueOpenCloseTimeout);
TimeDelay((int)RoutineStep.TimeDelay5, 1);
SetIoValueByGroup((int)RoutineStep.SetV25, IoGroupName.V25, false, _IoValueOpenCloseTimeout);
SetThrottleToTargetAndNoWait((int)RoutineStep.SetPressureDown, _IoThrottle, _throttleFinalPressure);
WaitThrottleToPressureAndSetMfcSpecial((int)RoutineStep.SetTVto300, _IoThrottle, _throttleFinalPressure, _pmPressureMaxDiff, _throttleTimeout);
//8、设定转速(可配置)
EnableRotation((int)RoutineStep.EnableRotation, 5);
SetRotationValveAndNoWait((int)RoutineStep.SetRotation1, _rotationSpeed);
TimeDelay((int)RoutineStep.TimeDelay1, _servoUpDelay);
SetConfinementRingUpAndWait((int)RoutineStep.SetServoUp, 30);
ExecuteRoutine((int)RoutineStep.SetChamberPressure, _pmServoToPressure);
TimeDelay((int)RoutineStep.TimeDelay8, 1);
//9、加热使能(PSU 和 SCR)(可配置)
if (_psuHeatEnable && _needEnableHeat)
{
SetPSUEnable((int)RoutineStep.EnableTC1, true, 5);
@@ -168,6 +223,7 @@ namespace SicModules.PMs.Routines
SetSCRHeatRatio((int)RoutineStep.SetTC2Ratio, _scrL1Ratio, _scrL2Ratio, _scrL3Ratio);
}
TimeDelay((int)RoutineStep.TimeDelay8, 1);
WaitRotationValve((int)RoutineStep.WaitRotation1, _rotationSpeed, true, _rotationSpeed / 2);
}
catch (RoutineBreakException)