PMroutine修改
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Aitex.Core.RT.Device;
|
||||
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.DBCore;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.MFCs;
|
||||
using SicModules.PMs.Routines.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace SicModules.PMs.Routines
|
||||
{
|
||||
@@ -34,7 +35,7 @@ namespace SicModules.PMs.Routines
|
||||
SetMFCMode,
|
||||
SetPCMode,
|
||||
|
||||
SetM1to16,
|
||||
SetM1toM17,
|
||||
SetPC,
|
||||
SetGroupJ,
|
||||
SetM291519to38,
|
||||
@@ -52,7 +53,7 @@ namespace SicModules.PMs.Routines
|
||||
|
||||
SetGasIn2,
|
||||
SetGroupJOpen,
|
||||
SetM291519to26,
|
||||
SetM18toM40,
|
||||
SetM17M18,
|
||||
|
||||
OpenFinal2,
|
||||
@@ -66,7 +67,7 @@ namespace SicModules.PMs.Routines
|
||||
SetTVPressMode,
|
||||
SetTv1,
|
||||
WaitTv1,
|
||||
SetM2toM40,
|
||||
Set0M18toM40,
|
||||
SetM18,
|
||||
SetTVPositionMode,
|
||||
SetTVPositionMode_1,
|
||||
@@ -97,7 +98,7 @@ namespace SicModules.PMs.Routines
|
||||
|
||||
SetMfc28to31,
|
||||
SetReactorPress,
|
||||
CloseFinanl1,
|
||||
CloseFinal1,
|
||||
CloseFinanl2,
|
||||
CloseEPV2,
|
||||
SetTVCloseMode2,
|
||||
@@ -145,6 +146,7 @@ namespace SicModules.PMs.Routines
|
||||
SetV31,
|
||||
SetV32,
|
||||
SetV35V36,
|
||||
CloseV68,
|
||||
|
||||
SetV92V93V95,
|
||||
SetV94,
|
||||
@@ -184,6 +186,13 @@ namespace SicModules.PMs.Routines
|
||||
TimeDelay15,
|
||||
TimeDelay16,
|
||||
TimeDelay17,
|
||||
|
||||
LoopSetTVPressMode1,
|
||||
LoopSetM18toM40,
|
||||
LoopSetTv1,
|
||||
LoopSet0M18toM40,
|
||||
LoopSetM18Default,
|
||||
LoopWaitTv1
|
||||
}
|
||||
|
||||
enum LeakCheckType
|
||||
@@ -308,137 +317,73 @@ namespace SicModules.PMs.Routines
|
||||
SetHeatEnable((int)RoutineStep.HeatEnable, false, _heatTimeOut);
|
||||
SetRotationValve((int)RoutineStep.RotationEnable, _rotationCheckSpeed, false, _rotationCloseTimeout);
|
||||
|
||||
//关闭V72,打开V25
|
||||
//3、 关闭 V72(GasBox.Vent.Pump) 。
|
||||
SetIoValueByGroup((int)RoutineStep.VentPumpClose, IoGroupName.VentPump, false, _IoValueOpenCloseTimeout);
|
||||
SetIoValueByGroup((int)RoutineStep.SetGroupV25, IoGroupName.V25, true, _IoValueOpenCloseTimeout);
|
||||
//打开V103,关闭V105
|
||||
SetIoValueByGroup((int)RoutineStep.SetV103, IoGroupName.V103, true, _IoValueOpenCloseTimeout);
|
||||
SetIoValueByGroup((int)RoutineStep.SetV105, IoGroupName.V105, false, _IoValueOpenCloseTimeout);
|
||||
|
||||
//打开V31,打开V32
|
||||
//4、 打开 V31(H2.Supply)、 V32(N2Supply)。
|
||||
SetIoValueByGroup((int)RoutineStep.SetV31, IoGroupName.V31, true, _IoValueOpenCloseTimeout);
|
||||
SetIoValueByGroup((int)RoutineStep.SetV32, IoGroupName.V32, true, _IoValueOpenCloseTimeout);
|
||||
|
||||
//打开V35,打开V36
|
||||
//5、 打开 V35(H2N2.Line1)、 V36(H2N2.Line2),关闭 B/C/E/F/H/KValves,打开 D/G Valves; 打开 J valve。
|
||||
SetIoValueByGroup((int)RoutineStep.SetV35V36, IoGroupName.V35V36, true, _IoValueOpenCloseTimeout);
|
||||
|
||||
//关闭B/C/E/F/H/K 阀门
|
||||
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);
|
||||
|
||||
//打开D/G 阀门
|
||||
SetIoValueByGroup((int)RoutineStep.SetGroupD, IoGroupName.D, true, _IoValueOpenCloseTimeout);
|
||||
SetIoValueByGroup((int)RoutineStep.SetGroupG, IoGroupName.G, true, _IoValueOpenCloseTimeout);
|
||||
|
||||
//设置MFC和PC的模式
|
||||
SetMfcModeToNormalByGroup((int)RoutineStep.SetMFCMode, MfcGroupName.All);
|
||||
SetPcModeToNormal((int)RoutineStep.SetPCMode, _lstPcList);
|
||||
|
||||
//M1-M16设定为default值(M2、M9、M15除外)
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM1to16, MfcGroupName.M1to16, 0);
|
||||
|
||||
//设置所有PC到默认值
|
||||
SetPcToDefault((int)RoutineStep.SetPC, _lstPcList);
|
||||
|
||||
//设置M2,M9,M15,M19-M26 3s ramp 到default 值
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM291519to26, MfcGroupName.M2toM42, 3);//组改变,.M2toM26改变为->M2toM42,防止MFC不在正常状态
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM17M18, MfcGroupName.M17M18, 3);
|
||||
|
||||
//打开V68
|
||||
SetIoValueByGroup((int)RoutineStep.SetV68, IoGroupName.GasIn1, true, _IoValueOpenCloseTimeout);
|
||||
|
||||
//打开J阀门
|
||||
SetIoValueByGroup((int)RoutineStep.SetGroupJ, IoGroupName.J, true, _IoValueOpenCloseTimeout);
|
||||
|
||||
//打开EPV2
|
||||
//6、 M1-M17 设定为 default 值,所有 PC 设定为 default 值(PC1-PC9), M18-M40(除M30\M34\M39)) MFC 3s ramp 到 default 值。
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM1toM17, MfcGroupName.M1toM17, 0);
|
||||
SetPcToDefault((int)RoutineStep.SetPC, _lstPcList);
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM18toM40, MfcGroupName.M18toM40No303439, 3);
|
||||
|
||||
//7、打开 EPV2,等待 3s, 打开 TV enable, 压力模式,伺服压力默认设定为 0mbar;
|
||||
SetIoValueByGroup((int)RoutineStep.SetEPV2, IoGroupName.EPV2, true, _IoValueOpenCloseTimeout);
|
||||
TimeDelay((int)RoutineStep.TimeDelay1, 3);
|
||||
|
||||
//设置蝶阀Enable
|
||||
SetThrottleEnableAndWait((int)RoutineStep.SetTVEnable, _IoThrottle, 5);
|
||||
|
||||
//设置蝶阀为压力模式
|
||||
SetThrottleToPressModeAndWait((int)RoutineStep.SetTVPressMode, _IoThrottle, 5);
|
||||
|
||||
//伺服压力设定值到0mbar
|
||||
SetThrottleToTargetAndNoWait((int)RoutineStep.SetTv1, _IoThrottle, _pressureMin);
|
||||
|
||||
//M2、M9、M15、M19-M40 MFC 3s ramp到0
|
||||
SetMfcByGroup((int)RoutineStep.SetM2toM40, MfcGroupName.M2toM42, 0, 3);
|
||||
SetMfcByGroup((int)RoutineStep.SetM18, MfcGroupName.M18, 0, 3);
|
||||
//8、当蝶阀设定值 ramp 到 0 后,将 M18-M40(除 M30\M34\M39)) MFC 3s ramp 到 0;
|
||||
SetMfcByGroup((int)RoutineStep.Set0M18toM40, MfcGroupName.M18toM40No303439, 0, 3);
|
||||
|
||||
//等待腔体压力Pump到设定值
|
||||
//9、等待腔体压力到 Pump Base Pressure(可配置),蝶阀改为位置模式,开度设定 100%
|
||||
WaitChamberPressDownTo((int)RoutineStep.WaitTv1, _pressureMin, _pressureMinTimeout);
|
||||
|
||||
TimeDelay((int)RoutineStep.TimeDelay8, 3);
|
||||
|
||||
//蝶阀设置为位置模式,开度设置为最大
|
||||
SetThrottleToPositionMode((int)RoutineStep.SetTVPositionMode, _IoThrottle, _throttleTimeout);
|
||||
TimeDelay((int)RoutineStep.TimeDelay11, 3);
|
||||
SetThrottleSetPosition((int)RoutineStep.SetTVPositionMax, _IoThrottle, 100, _throttleTimeout);
|
||||
|
||||
TimeDelay((int)RoutineStep.TimeDelay9, 3);
|
||||
|
||||
|
||||
//循环开始
|
||||
Loop((int)RoutineStep.StartLoop, _pressureLoopCount);
|
||||
|
||||
//M2、M9、M15、M19-M40 MFC 3s ramp 到 default 值
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM2TOM40Default, MfcGroupName.M2toM42, 3);
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM18Default, MfcGroupName.M18, 3);
|
||||
|
||||
//先关蝶阀,再关闭EPV2
|
||||
SetThrottleToCloseMode((int)RoutineStep.SetTVCloseMode1, _IoThrottle, 8);
|
||||
SetThrottleDisable((int)RoutineStep.CLoseTV1, _IoThrottle, 8);
|
||||
TimeDelay((int)RoutineStep.TimeDelay5, 1);
|
||||
SetIoValueByGroup((int)RoutineStep.SetEPV2_1, IoGroupName.EPV2, false, _IoValueOpenCloseTimeout);
|
||||
|
||||
SetPressureUpOrDown((int)RoutineStep.SetPressUpOrDown1, PressureUpOrDown.Uping);
|
||||
WaitThrottleToPressureAndSetMfcSpecial((int)RoutineStep.WaitPressureUp, _IoThrottle, _pressureMax, _pressureMaxTimeout);
|
||||
|
||||
TimeDelay((int)RoutineStep.TimeDelay6, _pressureMaxDelay);
|
||||
|
||||
//打开EPV2
|
||||
SetIoValueByGroup((int)RoutineStep.SetEPV2_2, IoGroupName.EPV2, true, _IoValueOpenCloseTimeout);
|
||||
TimeDelay((int)RoutineStep.TimeDelay7, 1);
|
||||
//设置蝶阀Enable
|
||||
SetThrottleEnableAndWait((int)RoutineStep.SetTVEnable_2, _IoThrottle, 5);
|
||||
//设置蝶阀为压力模式
|
||||
SetThrottleToPressModeAndWait((int)RoutineStep.SetTVPressMode1, _IoThrottle, 5);
|
||||
|
||||
//M2、M9、M15、M19-M40 MFC 3s ramp 0
|
||||
SetMfcByGroup((int)RoutineStep.SetM2toM40_1, MfcGroupName.M2toM42, 0, 3);
|
||||
SetMfcByGroup((int)RoutineStep.SetM18_1, MfcGroupName.M18, 0, 3);
|
||||
|
||||
//伺服到0mbar
|
||||
SetThrottlePressureAndWait((int)RoutineStep.SetPressureDown, _IoThrottle, _pressureMin, _pressureMinTimeout);
|
||||
//蝶阀改为压力模式
|
||||
//M18 - M40(除 M30\M34\M39)) MFC 3s ramp 到 default 值。
|
||||
//压力 servo 到 300(可配置)
|
||||
//压力达到后, M18 - M40(除 M30\M34\M39)) MFC 5s ramp 到 0。
|
||||
//等待压力到达 0(可配置)
|
||||
SetThrottleToPressModeAndWait((int)RoutineStep.LoopSetTVPressMode1, _IoThrottle, 5);
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.LoopSetM18toM40, MfcGroupName.M18toM40No303439, 3);
|
||||
SetThrottleToTargetAndNoWait((int)RoutineStep.LoopSetTv1, _IoThrottle, _pressureMin);
|
||||
SetMfcByGroup((int)RoutineStep.LoopSet0M18toM40, MfcGroupName.M18toM40No303439, 0, 5);
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.LoopSetM18Default, MfcGroupName.M18, 3);
|
||||
WaitChamberPressDownTo((int)RoutineStep.LoopWaitTv1, _pressureMin, _pressureMinTimeout);
|
||||
|
||||
EndLoop((int)RoutineStep.EndLoop);
|
||||
|
||||
//依次关闭Final1
|
||||
SetIoValueByGroup((int)RoutineStep.CloseGasIn1, IoGroupName.GasIn1, false, _IoValueOpenCloseTimeout);
|
||||
Delay((int)RoutineStep.TimeDelay13, 5);
|
||||
|
||||
//关闭M32,M35,M36,M37,M38
|
||||
SetMfcByGroup((int)RoutineStep.CloseM32M35M37, MfcGroupName.M32M35M37, 0, 5);
|
||||
SetMfcByGroup((int)RoutineStep.CloseM36, MfcGroupName.M36, 0, 5);
|
||||
SetMfcByGroup((int)RoutineStep.CloseM38, MfcGroupName.M38, 0, 5);
|
||||
|
||||
Delay((int)RoutineStep.TimeDelay14, 5);
|
||||
|
||||
//关闭Final1阀
|
||||
SetIoValueByGroup((int)RoutineStep.CloseFinanl1, IoGroupName.Final1, false, _IoValueOpenCloseTimeout);
|
||||
|
||||
//关闭Final2
|
||||
//11、 依次关闭 Final valves;
|
||||
//先 关 闭 V93 ( ChamberPurge.Final )、 V94 ( RotationUpPurge.Final )、 V95(ConfinementRing.Final)、 V96(HeaterWF.Final);
|
||||
//再关闭 V87( SHPurge.Final)、 V88( OuterGas.Final)、 V89( InnerGas.Final)、 V90( MiddleGas.Final )、 V91 ( OpticPurge.Final )、 V92 ( GasRingPurge.Final )、 V97(CarryGas.Final);
|
||||
SetIoValueByGroup((int)RoutineStep.CloseFinal1, IoGroupName.Final1, false, _IoValueOpenCloseTimeout);
|
||||
SetIoValueByGroup((int)RoutineStep.CloseFinal2, IoGroupName.Final2, false, _IoValueOpenCloseTimeout);
|
||||
|
||||
//延时
|
||||
//12、延时一定时间后(参数配置), 关闭蝶阀,再关闭 EPV2, 开始测漏记录腔体压力 P1(mbar)和时间 T1,测试时间 T(秒) 结束后, 记录腔体压力 P2 和时间 T2
|
||||
//计算腔体漏率
|
||||
//腔体漏率 =(P2 - P1) /(T2 - T1) *60
|
||||
//所得漏率与设定范围对比,小于范围,测漏成功,否则报错提示
|
||||
TimeDelay((int)RoutineStep.TimeDelay15, _paramContinuePumpTime);
|
||||
|
||||
//先关蝶阀,再关闭EPV2
|
||||
SetThrottleToCloseMode((int)RoutineStep.SetTVCloseMode2, _IoThrottle, 8);
|
||||
SetThrottleDisable((int)RoutineStep.CLoseTvvvv, _IoThrottle, 8);
|
||||
TimeDelay((int)RoutineStep.TimeDelay16, 1);
|
||||
|
||||
Reference in New Issue
Block a user