PMroutine修改
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
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 SicModules.PMs.Routines.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace SicModules.PMs.Routines
|
||||
{
|
||||
@@ -19,9 +20,9 @@ namespace SicModules.PMs.Routines
|
||||
SetPSURatio,
|
||||
SetSCRRatio,
|
||||
SetRotation,
|
||||
SetM2toM40,
|
||||
SetM18toM40,
|
||||
SetM17M18,
|
||||
SetM1to16,
|
||||
SetM1toM17,
|
||||
SetM5M21,
|
||||
SetPC,
|
||||
SetV32,
|
||||
@@ -41,7 +42,8 @@ namespace SicModules.PMs.Routines
|
||||
SetV34,
|
||||
SetV100,
|
||||
TimeDelay1,
|
||||
TimeDelay2,
|
||||
TimeDelay2,
|
||||
SetGroupJ
|
||||
}
|
||||
|
||||
private int _heatTimeOut = 5;
|
||||
@@ -81,66 +83,35 @@ namespace SicModules.PMs.Routines
|
||||
{
|
||||
//CheckRoutineTimeOut();
|
||||
|
||||
//停止加热
|
||||
//停止加热、停止旋转
|
||||
SetHeatEnable((int)RoutineStep.HeatEnable, false, _heatTimeOut);
|
||||
|
||||
//设置模式为Power
|
||||
SetPSUHeatMode((int)RoutineStep.SetPSUMode, 0);
|
||||
SetSCRHeatMode((int)RoutineStep.SetSCRMode, 0);
|
||||
|
||||
//设定功率为0
|
||||
SetPSUHeatRatio((int)RoutineStep.SetPSURatio, 0, 0, 0);
|
||||
SetSCRHeatRatio((int)RoutineStep.SetSCRRatio, 0, 0, 0);
|
||||
|
||||
//停止旋转
|
||||
SetRotationValveAndNoWait((int)RoutineStep.SetRotation, 0);
|
||||
|
||||
//M2、M9、M15、M19-M40 MFC 30s ramp 到 default 值
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM2toM40, MfcGroupName.M2toM42, _mfc2to40RampTime);
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM17M18, MfcGroupName.M17M18, _mfc2to40RampTime);
|
||||
//2、 M18-M40(除 M30\M34\M39)) MFC 30s ramp 到 default 值(时间可配置)
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM18toM40, MfcGroupName.M18toM40No303439, _mfc2to40RampTime);
|
||||
|
||||
//M1 - M16 MFC 30s ramp 到 default 值(M2、M9、M15除外)
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM1to16, MfcGroupName.M1to16, _mfc1to16RampTime);
|
||||
//M5 M2130s ramp 到 default 值
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM5M21, MfcGroupName.M5M21, _mfc1to16RampTime);
|
||||
|
||||
//所有PC设定为默认值
|
||||
//3、 M1-M17 MFC 30s ramp 到 default 值(时间可配置) , 所有 PC 设定为 default 值(PC1-PC9)
|
||||
SetMfcToDefaultByGroup((int)RoutineStep.SetM1toM17, MfcGroupName.M1toM17, _mfc1to16RampTime);
|
||||
SetPcToDefault((int)RoutineStep.SetPC, _lstPcList);
|
||||
|
||||
//等待MFC等流量
|
||||
TimeDelay((int)RoutineStep.TimeDelay1, Math.Max(_mfc2to40RampTime, _mfc1to16RampTime));
|
||||
|
||||
//打开V32
|
||||
//4、打开 V32(N2.Supply)
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetV32, IoGroupName.V32, true);
|
||||
|
||||
//打开V35,打开V36
|
||||
//5、 打开 V35(H2N2.Line1)、 V36(H2N2.Line2),关闭 B/C/E/F/H/KValves,打开 D/G Valves;打开 J valve。
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetV35V36, IoGroupName.V35V36, true);
|
||||
|
||||
//关闭B/C/E/F/H/K 阀门
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetGroupB, IoGroupName.B, false);
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetGroupC, IoGroupName.C, false);
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetGroupE, IoGroupName.E, false);
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetGroupF, IoGroupName.F, false);
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetGroupH, IoGroupName.H, false);
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetGroupK, IoGroupName.K, false);
|
||||
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetV100, IoGroupName.V100, false);
|
||||
|
||||
//打开D/G 阀门
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetGroupD, IoGroupName.D, true);
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetGroupG, IoGroupName.G, true);
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetGroupJ, IoGroupName.V65, true);
|
||||
|
||||
//打开V65
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetV65, IoGroupName.V65, true);
|
||||
|
||||
//打开V68
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetV68, IoGroupName.GasIn1, true);
|
||||
|
||||
//关闭V72,打开V25
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.VentPumpClose, IoGroupName.VentPump, false);
|
||||
|
||||
TimeDelay((int)RoutineStep.TimeDelay2, 2);
|
||||
SetIoValueByGroupNoWait((int)RoutineStep.SetGroupV25, IoGroupName.V25, true);
|
||||
}
|
||||
|
||||
catch (RoutineBreakException)
|
||||
|
||||
Reference in New Issue
Block a user