|
@@ -25,7 +25,7 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
private readonly IoLid _PMALid;
|
|
|
private readonly IoLid _PMBLid;
|
|
|
- private readonly IoLid _PMCLid;
|
|
|
+ private readonly IoLid _PMCLid;
|
|
|
private readonly IoLid _PMDLid;
|
|
|
|
|
|
|
|
@@ -165,7 +165,7 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
public bool IsTMVentValveOpen => _TMVentValve.Status;
|
|
|
|
|
|
- // public bool IsTMFastVentValveOpen => _TMFastVentValve.Status;
|
|
|
+ // public bool IsTMFastVentValveOpen => _TMFastVentValve.Status;
|
|
|
|
|
|
public bool IsTMPurgeValveOpen => _TMPurgeValve.Status;
|
|
|
public bool IsTMFastPumpOpen => _TMFastPumpValve.Status;
|
|
@@ -187,8 +187,8 @@ namespace Venus_RT.Devices
|
|
|
public double LLBForelinePressure => _presureCtrl.LLBForelineGauge.Value;
|
|
|
|
|
|
|
|
|
- public bool TMPumpIsRunning => _TMPump!=null? _TMPump.IsRunning:false;
|
|
|
- public bool LLAPumpIsRunning => _LLAPump != null ? _LLAPump.IsRunning : false;
|
|
|
+ public bool TMPumpIsRunning => _TMPump != null ? _TMPump.IsRunning : false;
|
|
|
+ public bool LLAPumpIsRunning => _LLAPump != null ? _LLAPump.IsRunning : false;
|
|
|
public bool LLBPumpIsRunning => _LLBPump != null ? _LLBPump.IsRunning : false;
|
|
|
|
|
|
|
|
@@ -225,7 +225,7 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
public bool AllPMSlitDoorClosed
|
|
|
{
|
|
|
- get
|
|
|
+ get
|
|
|
{
|
|
|
if (PMASlitDoorClosed == true && PMBSlitDoorClosed == true && PMCSlitDoorClosed == true && PMDSlitDoorClosed == true)
|
|
|
{
|
|
@@ -238,11 +238,11 @@ namespace Venus_RT.Devices
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public Dictionary<ModuleName, ModuleName> PreRotateModules { get; private set; }
|
|
|
+ public Dictionary<ModuleName, ModuleName> PreRotateModules { get; private set; }
|
|
|
|
|
|
public JetTM() : base("TM")
|
|
|
{
|
|
|
- _TMLid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.TMLid}");
|
|
|
+ _TMLid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.TMLid}");
|
|
|
_LLALid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.LLALid}");
|
|
|
_LLBLid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.LLBLid}");
|
|
|
|
|
@@ -263,18 +263,18 @@ namespace Venus_RT.Devices
|
|
|
_PMCSlitDoor = DEVICE.GetDevice<IoCylinder>($"{Module}.PMCSlitDoor");
|
|
|
_PMDSlitDoor = DEVICE.GetDevice<IoCylinder>($"{Module}.PMDSlitDoor");
|
|
|
|
|
|
- _TMN2Valve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMValveN2}");
|
|
|
- _TMSoftPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMSoftPumpValve}");
|
|
|
- _TMFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMFastPumpValve}");
|
|
|
- _TMPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMPurgeValve}");
|
|
|
- _TMVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMVentValve}");
|
|
|
+ _TMN2Valve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMValveN2}");
|
|
|
+ _TMSoftPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMSoftPumpValve}");
|
|
|
+ _TMFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMFastPumpValve}");
|
|
|
+ _TMPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMPurgeValve}");
|
|
|
+ _TMVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMVentValve}");
|
|
|
//_TMSoftVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMSoftVentValve}");
|
|
|
//_TMFastVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMFastVentValve}");
|
|
|
|
|
|
_LLASoftPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLASoftPumpValve}");
|
|
|
- _LLAFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAFastPumpValve}");
|
|
|
- _LLAPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAPurgeValve}");
|
|
|
- _LLAVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAVentValve}");
|
|
|
+ _LLAFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAFastPumpValve}");
|
|
|
+ _LLAPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAPurgeValve}");
|
|
|
+ _LLAVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAVentValve}");
|
|
|
|
|
|
_LLASoftVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLASoftVentValve}");
|
|
|
_LLAFastVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAFastVentValve}");
|
|
@@ -283,45 +283,45 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
_TMVacAtmMode = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMVacAtmMode}");
|
|
|
|
|
|
- _TMVentExhaustValve= DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMVentExhaustValve}");
|
|
|
+ _TMVentExhaustValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMVentExhaustValve}");
|
|
|
_LLAVentExhaustValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAVentExhaustValve}");
|
|
|
_LLBVentExhaustValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBVentExhaustValve}");
|
|
|
|
|
|
|
|
|
_LLBSoftPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBSoftPumpValve}");
|
|
|
- _LLBFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBFastPumpValve}");
|
|
|
- _LLBPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBPurgeValve}");
|
|
|
- _LLBVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBVentValve}");
|
|
|
- _WaferRelayValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.ValveWaterRelay}");
|
|
|
-
|
|
|
- _TMPowerOn = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMPowerOn}");
|
|
|
- _TMInSafty = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMInSafty}");
|
|
|
- _WaferLeakSensor = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.WaferLeakSensor}");
|
|
|
+ _LLBFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBFastPumpValve}");
|
|
|
+ _LLBPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBPurgeValve}");
|
|
|
+ _LLBVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBVentValve}");
|
|
|
+ _WaferRelayValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.ValveWaterRelay}");
|
|
|
+
|
|
|
+ _TMPowerOn = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMPowerOn}");
|
|
|
+ _TMInSafty = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMInSafty}");
|
|
|
+ _WaferLeakSensor = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.WaferLeakSensor}");
|
|
|
_EFEMSideDoorClosed = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EFEMSideDoorClosed}");
|
|
|
- _TMPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMPCWFlowSwitch}");
|
|
|
- _LLAPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAPCWFlowSwitch}");
|
|
|
- _LLBPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBPCWFlowSwitch}");
|
|
|
- _TMLidClosed = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMLidClosed}");
|
|
|
-
|
|
|
- _CDAPressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.CDAPressureSwitch}");
|
|
|
- _VaccumPressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.VaccumPressureSwitch}");
|
|
|
- _N2PressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.N2PressureSwitch}");
|
|
|
-
|
|
|
- _TMRobotNotExtendPMA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMA}");
|
|
|
- _TMRobotNotExtendPMB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMB}");
|
|
|
- _TMRobotNotExtendPMC = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMC}");
|
|
|
- _TMRobotNotExtendPMD = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMD}");
|
|
|
- _TMRobotNotExtendLLA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendLLA}");
|
|
|
- _TMRobotNotExtendLLB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendLLB}");
|
|
|
- _EfemRobotNotExtendLLA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EfemRobotNotExtendLLA}");
|
|
|
- _EfemRobotNotExtendLLB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EfemRobotNotExtendLLB}");
|
|
|
-
|
|
|
- _TMVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMVacSwitch}");
|
|
|
- _LLAVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAVacSwitch}");
|
|
|
- _LLBVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBVacSwitch}");
|
|
|
- _TMATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMATMSwitch}");
|
|
|
- _LLAATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAATMSwitch}");
|
|
|
- _LLBATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBATMSwitch}");
|
|
|
+ _TMPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMPCWFlowSwitch}");
|
|
|
+ _LLAPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAPCWFlowSwitch}");
|
|
|
+ _LLBPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBPCWFlowSwitch}");
|
|
|
+ _TMLidClosed = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMLidClosed}");
|
|
|
+
|
|
|
+ _CDAPressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.CDAPressureSwitch}");
|
|
|
+ _VaccumPressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.VaccumPressureSwitch}");
|
|
|
+ _N2PressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.N2PressureSwitch}");
|
|
|
+
|
|
|
+ _TMRobotNotExtendPMA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMA}");
|
|
|
+ _TMRobotNotExtendPMB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMB}");
|
|
|
+ _TMRobotNotExtendPMC = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMC}");
|
|
|
+ _TMRobotNotExtendPMD = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMD}");
|
|
|
+ _TMRobotNotExtendLLA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendLLA}");
|
|
|
+ _TMRobotNotExtendLLB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendLLB}");
|
|
|
+ _EfemRobotNotExtendLLA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EfemRobotNotExtendLLA}");
|
|
|
+ _EfemRobotNotExtendLLB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EfemRobotNotExtendLLB}");
|
|
|
+
|
|
|
+ _TMVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMVacSwitch}");
|
|
|
+ _LLAVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAVacSwitch}");
|
|
|
+ _LLBVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBVacSwitch}");
|
|
|
+ _TMATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMATMSwitch}");
|
|
|
+ _LLAATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAATMSwitch}");
|
|
|
+ _LLBATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBATMSwitch}");
|
|
|
|
|
|
_LLAWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.LLAWaferSizeCheckSwitch}");
|
|
|
_LLBWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.LLBWaferSizeCheckSwitch}");
|
|
@@ -329,12 +329,12 @@ namespace Venus_RT.Devices
|
|
|
_PMBWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.PMBWaferSizeCheckSwitch}");
|
|
|
_PMCWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.PMCWaferSizeCheckSwitch}");
|
|
|
_PMDWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.PMDWaferSizeCheckSwitch}");
|
|
|
- _TM_PressureMode_Switch = DEVICE.GetDevice<IoSwitch>("TM.TMPressureModeSwitch");
|
|
|
+ _TM_PressureMode_Switch = DEVICE.GetDevice<IoSwitch>("TM.TMPressureModeSwitch");
|
|
|
_LLA_PressureMode_Switch = DEVICE.GetDevice<IoSwitch>("TM.LLAPressureModeSwitch");
|
|
|
_LLB_PressureMode_Switch = DEVICE.GetDevice<IoSwitch>("TM.LLBPressureModeSwitch");
|
|
|
|
|
|
|
|
|
- _TMMfc = DEVICE.GetDevice<IoMfc>($"{Module}.TM_MFC1");
|
|
|
+ _TMMfc = DEVICE.GetDevice<IoMfc>($"{Module}.TM_MFC1");
|
|
|
_LLAMfc = DEVICE.GetDevice<IoMfc>($"{Module}.LLA_MFC1");
|
|
|
_LLBMfc = DEVICE.GetDevice<IoMfc>($"{Module}.LLB_MFC1");
|
|
|
|
|
@@ -424,7 +424,7 @@ namespace Venus_RT.Devices
|
|
|
_TMMfc.SetPoint = (int)(args[0]);
|
|
|
return true;
|
|
|
});
|
|
|
- OP.Subscribe($"TM.SetMFSlitDoor", (cmd, args) =>
|
|
|
+ OP.Subscribe($"TM.SetMFSlitDoor", (cmd, args) =>
|
|
|
{
|
|
|
var module = (ModuleName)Enum.Parse(typeof(ModuleName), args[0].ToString());
|
|
|
TurnMFSlitDoor(module, (bool)args[1], out _);
|
|
@@ -448,16 +448,16 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
}
|
|
|
else if (_WaferLeakSensor.Value == false && _WaferRelayValve.Status == true)
|
|
|
- {
|
|
|
+ {
|
|
|
_WaferRelayValve.TurnValve(false, out string _);
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
public void TurnSoftPumpValve(ModuleName mod, bool bOn)
|
|
|
{
|
|
|
- switch(mod)
|
|
|
+ switch (mod)
|
|
|
{
|
|
|
case ModuleName.TM:
|
|
|
_TMSoftPumpValve.TurnValve(bOn, out string _);
|
|
@@ -474,7 +474,7 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
public void TurnFastPumpValve(ModuleName mod, bool bOn)
|
|
|
{
|
|
|
- switch(mod)
|
|
|
+ switch (mod)
|
|
|
{
|
|
|
case ModuleName.TM:
|
|
|
_TMFastPumpValve.TurnValve(bOn, out string _);
|
|
@@ -504,13 +504,13 @@ namespace Venus_RT.Devices
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
public void TurnPurgeValve(ModuleName mod, bool bOn)
|
|
|
{
|
|
|
- switch(mod)
|
|
|
+ switch (mod)
|
|
|
{
|
|
|
case ModuleName.TM:
|
|
|
_TMPurgeValve.TurnValve(bOn, out string _);
|
|
@@ -630,7 +630,7 @@ namespace Venus_RT.Devices
|
|
|
public bool IsPMSlitdoorOpened(ModuleName mod)
|
|
|
{
|
|
|
switch (mod)
|
|
|
- {
|
|
|
+ {
|
|
|
case ModuleName.PMA:
|
|
|
return PMASlitDoorOpened;
|
|
|
case ModuleName.PMB:
|
|
@@ -658,19 +658,37 @@ namespace Venus_RT.Devices
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ public bool TurnExhaustValve(ModuleName mod, bool bOn)
|
|
|
+ {
|
|
|
+ switch (mod)
|
|
|
+ {
|
|
|
+ case ModuleName.TM:
|
|
|
+ _TMVentExhaustValve.TurnValve(bOn,out _);
|
|
|
+ return true;
|
|
|
+ case ModuleName.LLA:
|
|
|
+ _LLAVentExhaustValve.TurnValve(bOn, out _);
|
|
|
+ return true;
|
|
|
+ case ModuleName.LLB:
|
|
|
+ _LLBVentExhaustValve.TurnValve(bOn, out _);
|
|
|
+ return true;
|
|
|
+ default:
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
public bool CheckLidClosed(ModuleName mod)
|
|
|
{
|
|
|
switch (mod)
|
|
|
{
|
|
|
case ModuleName.TM:
|
|
|
- if(!TMLidClosed)
|
|
|
+ if (!TMLidClosed)
|
|
|
{
|
|
|
LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Lid not closed");
|
|
|
return false;
|
|
|
}
|
|
|
break;
|
|
|
case ModuleName.LLA:
|
|
|
- if(!LLALidClosed)
|
|
|
+ if (!LLALidClosed)
|
|
|
{
|
|
|
LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Lid not closed");
|
|
|
return false;
|
|
@@ -786,7 +804,7 @@ namespace Venus_RT.Devices
|
|
|
LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Fast Pump Valve not closed");
|
|
|
return false;
|
|
|
}
|
|
|
- else if(IsTMSoftPumpOpen)
|
|
|
+ else if (IsTMSoftPumpOpen)
|
|
|
{
|
|
|
LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Soft Pump Valve not closed");
|
|
|
return false;
|
|
@@ -798,7 +816,7 @@ namespace Venus_RT.Devices
|
|
|
LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Fast Pump Valve not closed");
|
|
|
return false;
|
|
|
}
|
|
|
- else if(IsLLASoftPumpOpen)
|
|
|
+ else if (IsLLASoftPumpOpen)
|
|
|
{
|
|
|
LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Soft Pump Valve not closed");
|
|
|
return false;
|
|
@@ -810,7 +828,7 @@ namespace Venus_RT.Devices
|
|
|
LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Fast Pump Valve not closed");
|
|
|
return false;
|
|
|
}
|
|
|
- else if(IsLLBSoftPumpOpen)
|
|
|
+ else if (IsLLBSoftPumpOpen)
|
|
|
{
|
|
|
LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Soft Pump Valve not closed");
|
|
|
return false;
|
|
@@ -886,14 +904,29 @@ namespace Venus_RT.Devices
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if(!IsModuleVaccum(moduleName))
|
|
|
+ if (!IsModuleVaccum(moduleName))
|
|
|
{
|
|
|
reason = $"{moduleName} is notVacuum, can not open slit door";
|
|
|
LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
- double maxPressureDifference = SC.GetValue<double>("System.TMLLMaxPressureDifference");
|
|
|
+ double maxPressureDifference;
|
|
|
+ switch (moduleName)
|
|
|
+ {
|
|
|
+ case ModuleName.LLA:
|
|
|
+ case ModuleName.LLB:
|
|
|
+ maxPressureDifference = SC.GetValue<double>("System.TMLLMaxPressureDifference");
|
|
|
+ break;
|
|
|
+ case ModuleName.PMA:
|
|
|
+ case ModuleName.PMB:
|
|
|
+ case ModuleName.PMC:
|
|
|
+ case ModuleName.PMD:
|
|
|
+ maxPressureDifference = SC.GetValue<double>("System.PMTMMaxPressureDifference");
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ maxPressureDifference = SC.GetValue<double>("System.PMTMMaxPressureDifference");
|
|
|
+ break;
|
|
|
+ }
|
|
|
if (Math.Abs(GetModulePressure(moduleName) - GetModulePressure(ModuleName.TM)) > maxPressureDifference)
|
|
|
{
|
|
|
reason = $"{moduleName}:{GetModulePressure(moduleName)} and TM : {GetModulePressure(ModuleName.TM)} pressure difference exceeds the max limit {maxPressureDifference}";
|
|
@@ -904,7 +937,7 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
}
|
|
|
|
|
|
- switch(moduleName)
|
|
|
+ switch (moduleName)
|
|
|
{
|
|
|
case ModuleName.LLA:
|
|
|
return _LLATSlitDoor.SetCylinder(open, out reason);
|
|
@@ -959,12 +992,12 @@ namespace Venus_RT.Devices
|
|
|
//}
|
|
|
public void SwitchTMPressureMode(bool isPressureMode)
|
|
|
{
|
|
|
- if (isPressureMode==true)
|
|
|
+ if (isPressureMode == true)
|
|
|
{
|
|
|
_TM_PressureMode_Switch.TurnOn();
|
|
|
}
|
|
|
else
|
|
|
- {
|
|
|
+ {
|
|
|
_TM_PressureMode_Switch.TurnOff();
|
|
|
}
|
|
|
}
|
|
@@ -1069,8 +1102,8 @@ namespace Venus_RT.Devices
|
|
|
{
|
|
|
_LLATSlitDoor.SetCylinder(false, out _);
|
|
|
}
|
|
|
- else if(IsLLASlitDoorOpen == true)
|
|
|
- {
|
|
|
+ else if (IsLLASlitDoorOpen == true)
|
|
|
+ {
|
|
|
_LLATSlitDoor.SetCylinder(true, out _);
|
|
|
}
|
|
|
|
|
@@ -1104,7 +1137,7 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
public bool CheckPumpIsRunning(ModuleName moduleName)
|
|
|
{
|
|
|
- switch (moduleName)
|
|
|
+ switch (moduleName)
|
|
|
{
|
|
|
case ModuleName.LLA:
|
|
|
return LLAPumpIsRunning;
|
|
@@ -1113,7 +1146,7 @@ namespace Venus_RT.Devices
|
|
|
case ModuleName.TM:
|
|
|
return TMPumpIsRunning;
|
|
|
|
|
|
- default:
|
|
|
+ default:
|
|
|
return false;
|
|
|
}
|
|
|
}
|