|
@@ -14,10 +14,10 @@ namespace Venus_RT.Modules.PMs
|
|
|
{
|
|
|
static protected JetPM Chamber;
|
|
|
|
|
|
- private Dictionary<string, Func<ProcessUnitBase, RecipeStep, RState>> startHelper = new Dictionary<string, Func<ProcessUnitBase, RecipeStep, RState>>
|
|
|
+ private static Dictionary<string, Func<ProcessUnitBase, RecipeStep, RState>> startHelper = new Dictionary<string, Func<ProcessUnitBase, RecipeStep, RState>>
|
|
|
{
|
|
|
- {"PressureUnitByPressureMode", PressureUnitByPressureMode_Start},
|
|
|
- {"PressureUnitByValveMode", PressureUnitByValveMode_Start},
|
|
|
+ {"PressureByPressureModeUnit", PressureByPressureModeUnit_Start},
|
|
|
+ {"PressureByValveModeUnit", PressureByValveModeUnit_Start},
|
|
|
{"TCPUnit", TCPUnit_Start},
|
|
|
{"BiasUnit", BiasUnit_Start},
|
|
|
{"GasControlUnit", GasControlUnit_Start },
|
|
@@ -25,10 +25,10 @@ namespace Venus_RT.Modules.PMs
|
|
|
{"ProcessKitUnit", ProcessKitUnit_Start },
|
|
|
};
|
|
|
|
|
|
- private Dictionary<string, Func<ProcessUnitBase, RecipeStep, RState>> checkerHelper = new Dictionary<string, Func<ProcessUnitBase, RecipeStep, RState>>
|
|
|
+ private static Dictionary<string, Func<ProcessUnitBase, RecipeStep, RState>> checkerHelper = new Dictionary<string, Func<ProcessUnitBase, RecipeStep, RState>>
|
|
|
{
|
|
|
- {"PressureUnitByPressureMode", PressureUnitByPressureMode_Check},
|
|
|
- {"PressureUnitByValveMode", PressureUnitByValveMode_Check},
|
|
|
+ {"PressureByPressureModeUnit", PressureByPressureModeUnit_Check},
|
|
|
+ {"PressureByValveModeUnit", PressureByValveModeUnit_Check},
|
|
|
{"TCPUnit", TCPUnit_Check},
|
|
|
{"BiasUnit", BiasUnit_Check},
|
|
|
{"GasControlUnit", GasControlUnit_Check},
|
|
@@ -37,10 +37,10 @@ namespace Venus_RT.Modules.PMs
|
|
|
|
|
|
};
|
|
|
|
|
|
- private Dictionary<string, Action<ProcessUnitBase, RecipeStep>> endHelper = new Dictionary<string, Action<ProcessUnitBase, RecipeStep>>
|
|
|
+ private static Dictionary<string, Action<ProcessUnitBase, RecipeStep>> endHelper = new Dictionary<string, Action<ProcessUnitBase, RecipeStep>>
|
|
|
{
|
|
|
- {"PressureUnitByPressureMode", PressureUnitByPressureMode_End},
|
|
|
- {"PressureUnitByValveMode", PressureUnitByValveMode_End},
|
|
|
+ {"PressureByPressureModeUnit", PressureByPressureModeUnit_End},
|
|
|
+ {"PressureByValveModeUnit", PressureByValveModeUnit_End},
|
|
|
{"TCPUnit", TCPUnit_End},
|
|
|
{"BiasUnit", BiasUnit_End},
|
|
|
{"GasControlUnit", GasControlUnit_End},
|
|
@@ -54,7 +54,7 @@ namespace Venus_RT.Modules.PMs
|
|
|
Chamber = pm;
|
|
|
}
|
|
|
|
|
|
- static private RState PressureUnitByPressureMode_Start(ProcessUnitBase unit, RecipeStep step)
|
|
|
+ static private RState PressureByPressureModeUnit_Start(ProcessUnitBase unit, RecipeStep step)
|
|
|
{
|
|
|
var ProcessUnit = unit as PressureByPressureModeUnit;
|
|
|
if (Chamber.SetPVPressure(ProcessUnit.StartPressure))
|
|
@@ -65,7 +65,7 @@ namespace Venus_RT.Modules.PMs
|
|
|
return RState.Failed;
|
|
|
}
|
|
|
|
|
|
- static private RState PressureUnitByPressureMode_Check(ProcessUnitBase unit, RecipeStep step)
|
|
|
+ static private RState PressureByPressureModeUnit_Check(ProcessUnitBase unit, RecipeStep step)
|
|
|
{
|
|
|
var ProcessUnit = unit as PressureByPressureModeUnit;
|
|
|
if(ProcessUnit.EnableRamp)
|
|
@@ -84,12 +84,12 @@ namespace Venus_RT.Modules.PMs
|
|
|
return RState.Running;
|
|
|
}
|
|
|
|
|
|
- static private void PressureUnitByPressureMode_End(ProcessUnitBase unit, RecipeStep step)
|
|
|
+ static private void PressureByPressureModeUnit_End(ProcessUnitBase unit, RecipeStep step)
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
- static private RState PressureUnitByValveMode_Start(ProcessUnitBase unit, RecipeStep step)
|
|
|
+ static private RState PressureByValveModeUnit_Start(ProcessUnitBase unit, RecipeStep step)
|
|
|
{
|
|
|
var ProcessUnit = unit as PressureByValveModeUnit;
|
|
|
if(Chamber.SetPVPostion(ProcessUnit.StartPosition))
|
|
@@ -100,7 +100,7 @@ namespace Venus_RT.Modules.PMs
|
|
|
return RState.Failed;
|
|
|
}
|
|
|
|
|
|
- static private RState PressureUnitByValveMode_Check(ProcessUnitBase unit, RecipeStep step)
|
|
|
+ static private RState PressureByValveModeUnit_Check(ProcessUnitBase unit, RecipeStep step)
|
|
|
{
|
|
|
var ProcessUnit = unit as PressureByValveModeUnit;
|
|
|
if(ProcessUnit.EnableRamp)
|
|
@@ -114,7 +114,7 @@ namespace Venus_RT.Modules.PMs
|
|
|
return RState.Running;
|
|
|
}
|
|
|
|
|
|
- static private void PressureUnitByValveMode_End(ProcessUnitBase unit, RecipeStep step)
|
|
|
+ static private void PressureByValveModeUnit_End(ProcessUnitBase unit, RecipeStep step)
|
|
|
{
|
|
|
|
|
|
}
|
|
@@ -136,7 +136,7 @@ namespace Venus_RT.Modules.PMs
|
|
|
return RState.Failed;
|
|
|
}
|
|
|
|
|
|
- if(step.ElapsedTime > ProcessUnit.HoldTime * 1000)
|
|
|
+ if(step.ElapsedTime() > ProcessUnit.HoldTime * 1000)
|
|
|
{
|
|
|
Chamber.GeneratorSetpower(0);
|
|
|
Chamber.GeneratorPowerOn(false);
|
|
@@ -174,7 +174,7 @@ namespace Venus_RT.Modules.PMs
|
|
|
return RState.Failed;
|
|
|
}
|
|
|
|
|
|
- if (step.ElapsedTime > ProcessUnit.BiasRFHoldTime * 1000)
|
|
|
+ if (step.ElapsedTime() > ProcessUnit.BiasRFHoldTime * 1000)
|
|
|
{
|
|
|
Chamber.GeneratorBiasSetpower(0);
|
|
|
Chamber.GeneratorBiasPowerOn(false);
|
|
@@ -246,7 +246,7 @@ namespace Venus_RT.Modules.PMs
|
|
|
{
|
|
|
if(Chamber.BackSideHeOutOfRange)
|
|
|
{
|
|
|
- return RState.Failed;
|
|
|
+ //return RState.Failed;
|
|
|
}
|
|
|
|
|
|
return RState.Running;
|
|
@@ -275,7 +275,7 @@ namespace Venus_RT.Modules.PMs
|
|
|
{
|
|
|
}
|
|
|
|
|
|
- public bool LoadMethods(ProcessUnitBase unit)
|
|
|
+ public static bool LoadMethods(ProcessUnitBase unit)
|
|
|
{
|
|
|
var className = unit.GetType().Name;
|
|
|
if(startHelper.ContainsKey(className) && checkerHelper.ContainsKey(className))
|
|
@@ -300,7 +300,7 @@ namespace Venus_RT.Modules.PMs
|
|
|
switch(step.Type)
|
|
|
{
|
|
|
case StepType.Time:
|
|
|
- return step.ElapsedTime > step.Time ? RState.End : RState.Running;
|
|
|
+ return step.ElapsedTime() > step.Time * 1000 ? RState.End : RState.Running;
|
|
|
case StepType.EndPoint:
|
|
|
return Chamber.CheckEndPoint() ? RState.End : RState.Running;
|
|
|
}
|
|
@@ -308,7 +308,7 @@ namespace Venus_RT.Modules.PMs
|
|
|
return RState.Running;
|
|
|
}
|
|
|
|
|
|
- public bool LoadStepFuns(RecipeStep step)
|
|
|
+ public static bool LoadStepFuns(RecipeStep step)
|
|
|
{
|
|
|
step.starter = stepStarter;
|
|
|
step.checker = stepChecker;
|