1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204 |
- using Aitex.Core.Common.DeviceData;
- using Aitex.Core.RT.Device;
- using Aitex.Core.RT.Device.Unit;
- using Aitex.Core.Util;
- using Aitex.Core.RT.SCCore;
- using Aitex.Core.RT.Log;
- using MECF.Framework.Common.Device.Bases;
- using MECF.Framework.Common.Equipment;
- using System;
- using System.Collections.Generic;
- using Venus_Core;
- using Venus_RT.Modules;
- using Venus_RT.Devices.IODevices;
- using Aitex.Core.RT.DataCenter;
- using Aitex.Core.RT.OperationCenter;
- using IoMfc = Venus_RT.Devices.IODevices.IoMfc;
- namespace Venus_RT.Devices
- {
- class JetTM : MECF.Framework.RT.EquipmentLibrary.HardwareUnits.TMs.TM
- {
- private readonly IoLid _TMLid;
- private readonly IoLid _LLALid;
- private readonly IoLid _LLBLid;
- private readonly IoLid _PMALid;
- private readonly IoLid _PMBLid;
- private readonly IoLid _PMCLid;
- private readonly IoLid _PMDLid;
- private readonly IoCylinder _LLATSlitDoor;
- private readonly IoCylinder _LLBTSlitDoor;
- private readonly IoCylinder _PMASlitDoor;
- private readonly IoCylinder _PMBSlitDoor;
- private readonly IoCylinder _PMCSlitDoor;
- private readonly IoCylinder _PMDSlitDoor;
- private readonly IoCylinder _LLAESlitDoor;
- private readonly IoCylinder _LLBESlitDoor;
- private readonly IoValve _TMN2Valve;
- private readonly IoValve _TMSoftPumpValve;
- private readonly IoValve _TMFastPumpValve;
- private readonly IoValve _TMPurgeValve;
- private readonly IoValve _TMVentValve;
- //private readonly IoValve _TMSoftVentValve;
- //private readonly IoValve _TMFastVentValve;
- private readonly IoValve _LLASoftPumpValve;
- private readonly IoValve _LLAFastPumpValve;
- private readonly IoValve _LLAPurgeValve;
- private readonly IoValve _LLAVentValve;
- private readonly IoValve _LLASoftVentValve;
- private readonly IoValve _LLAFastVentValve;
- private readonly IoValve _LLBSoftVentValve;
- private readonly IoValve _LLBFastVentValve;
- private readonly IoValve _LLBSoftPumpValve;
- private readonly IoValve _LLBFastPumpValve;
- private readonly IoValve _LLBPurgeValve;
- private readonly IoValve _LLBVentValve;
- private readonly IoValve _WaferRelayValve;
- private readonly IoValve _TMVacAtmMode;
- private readonly IoValve _TMVentExhaustValve;
- private readonly IoValve _LLAVentExhaustValve;
- private readonly IoValve _LLBVentExhaustValve;
- private readonly IoSensor _TMPowerOn;
- private readonly IoSensor _TMInSafty;
- private readonly IoSensor _WaferLeakSensor;
- private readonly IoSensor _EFEMSideDoorClosed;
- private readonly IoSensor _TMPCWFlowSwitch;
- private readonly IoSensor _LLAPCWFlowSwitch;
- private readonly IoSensor _LLBPCWFlowSwitch;
- private readonly IoSensor _TMLidClosed;
- private readonly IoSensor _CDAPressureSwitch;
- private readonly IoSensor _VaccumPressureSwitch;
- private readonly IoSensor _N2PressureSwitch;
- private readonly IoSensor _TMRobotNotExtendPMA;
- private readonly IoSensor _TMRobotNotExtendPMB;
- private readonly IoSensor _TMRobotNotExtendPMC;
- private readonly IoSensor _TMRobotNotExtendPMD;
- private readonly IoSensor _TMRobotNotExtendLLA;
- private readonly IoSensor _TMRobotNotExtendLLB;
- private readonly IoSensor _EfemRobotNotExtendLLA;
- private readonly IoSensor _EfemRobotNotExtendLLB;
- private readonly IoSensor _TMVacSwitch;
- private readonly IoSensor _LLAVacSwitch;
- private readonly IoSensor _LLBVacSwitch;
- private readonly IoSensor _TMATMSwitch;
- private readonly IoSensor _LLAATMSwitch;
- private readonly IoSensor _LLBATMSwitch;
- //private readonly IoSwitch _LLAWaferSizeCheck;
- //private readonly IoSwitch _LLBWaferSizeCheck;
- //private readonly IoSwitch _PMAWaferSizeCheck;
- //private readonly IoSwitch _PMBWaferSizeCheck;
- //private readonly IoSwitch _PMCWaferSizeCheck;
- //private readonly IoSwitch _PMDWaferSizeCheck;
- private readonly IoSwitch _TM_PressureMode_Switch;
- private readonly IoSwitch _LLA_PressureMode_Switch;
- private readonly IoSwitch _LLB_PressureMode_Switch;
- private readonly IoMfc _TMMfc;
- private readonly IoMfc _LLAMfc;
- private readonly IoMfc _LLBMfc;
- private readonly PumpBase _TMPump;
- private readonly PumpBase _LLAPump;
- private readonly PumpBase _LLBPump;
- private readonly IoTMPressureCtrl _presureCtrl;
- public bool TMLidClosed => _TMLid.OFFFeedback;
- public bool LLALidClosed => _LLALid.OFFFeedback;
- public bool LLBLidClosed => _LLBLid.OFFFeedback;
- public bool PMALidClosed => _PMALid.OFFFeedback;
- public bool PMBLidClosed => _PMBLid.OFFFeedback;
- public bool PMCLidClosed => _PMCLid.OFFFeedback;
- public bool PMDLidClosed => _PMDLid.OFFFeedback;
- public bool IsLLASlitDoorClosed => _LLATSlitDoor.State == CylinderState.Close;
- public bool IsLLASlitDoorOpen => _LLATSlitDoor.State == CylinderState.Open;
- public bool IsLLAESlitDoorClosed => _LLAESlitDoor.State == CylinderState.Close;
- public bool IsLLAESlitDoorOpen => _LLAESlitDoor.State == CylinderState.Open;
- public bool IsLLBSlitDoorClosed => _LLBTSlitDoor.State == CylinderState.Close;
- public bool IsLLBSlitDoorOpen => _LLBTSlitDoor.State == CylinderState.Open;
- public bool IsLLBESlitDoorClosed => _LLBESlitDoor.State == CylinderState.Close;
- public bool IsLLBESlitDoorOpen => _LLBESlitDoor.State == CylinderState.Open;
- public bool IsTMVac => _TMVacSwitch.Value;
- public bool IsLLAVac => _LLAVacSwitch.Value;
- public bool IsLLBVac => _LLBVacSwitch.Value;
- public bool IsTMATM => _TMATMSwitch.Value;
- public bool IsLLAATM => _LLAATMSwitch.Value;
- public bool IsLLBATM => _LLBATMSwitch.Value;
- public bool IsTMPowerOn => _TMPowerOn.Value;
- public bool IsTMInSafty => _TMInSafty.Value;
- public bool IsLLAFastPumpOpen => _LLAFastPumpValve.Status;
- public bool IsLLASoftPumpOpen => _LLASoftPumpValve.Status;
- public bool IsLLBFastPumpOpen => _LLBFastPumpValve.Status;
- public bool IsLLBSoftPumpOpen => _LLBSoftPumpValve.Status;
- public bool IsLLAVentValveOpen => _LLAVentValve.Status;
- public bool IsLLAPurgeValveOpen => _LLAPurgeValve.Status;
- public bool IsLLBVentValveOpen => _LLBVentValve.Status;
- public bool IsLLBPurgeValveOpen => _LLBPurgeValve.Status;
- public bool IsTMVentValveOpen => _TMVentValve.Status;
- // public bool IsTMFastVentValveOpen => _TMFastVentValve.Status;
- public bool IsTMPurgeValveOpen => _TMPurgeValve.Status;
- public bool IsTMFastPumpOpen => _TMFastPumpValve.Status;
- public bool IsTMSoftPumpOpen => _TMSoftPumpValve.Status;
- public bool TMRobotNotExtendToPMA => _TMRobotNotExtendPMA.Value;
- public bool TMRobotNotExtendToPMB => _TMRobotNotExtendPMB.Value;
- public bool TMRobotNotExtendToPMC => _TMRobotNotExtendPMC.Value;
- public bool TMRobotNotExtendToPMD => _TMRobotNotExtendPMD.Value;
- public bool TMRobotNotExtendToLLA => _TMRobotNotExtendLLA.Value;
- public bool TMRobotNotExtendToLLB => _TMRobotNotExtendLLB.Value;
- public bool EfemRobotNotExtendToLLA => _EfemRobotNotExtendLLA.Value;
- public bool EfemRobotNotExtendToLLB => _EfemRobotNotExtendLLB.Value;
- public override double ChamberPressure => _presureCtrl.TMPressureGauge.Value;
- public double LLAPressure => _presureCtrl.LLAPressureGauge.Value;
- public double LLBPressure => _presureCtrl.LLBPressureGauge.Value;
- public override double ForelinePressure => _presureCtrl.MFForelineGauge.Value;
- public double LLAForelinePressure => _presureCtrl.LLAForelineGauge.Value;
- public double LLBForelinePressure => _presureCtrl.LLBForelineGauge.Value;
- public bool TMPumpIsRunning => _TMPump != null ? _TMPump.IsRunning : false;
- public bool LLAPumpIsRunning => _LLAPump != null ? _LLAPump.IsRunning : false;
- public bool LLBPumpIsRunning => _LLBPump != null ? _LLBPump.IsRunning : false;
- public double PMAPressure { get { return Singleton<RouteManager>.Instance.PMA.ChamberPressure; } }
- //public bool PMAIsVAC { get { return Singleton<RouteManager>.Instance.PMA.IsVac; } }
- public double PMBPressure { get { return Singleton<RouteManager>.Instance.PMB.ChamberPressure; } }
- //public bool PMBIsATM { get { return Singleton<RouteManager>.Instance.PMB.IsAtm; } }
- public double PMCPressure { get { return Singleton<RouteManager>.Instance.PMC.ChamberPressure; } }
- //public bool PMCIsATM { get { return Singleton<RouteManager>.Instance.PMC.IsAtm; } }
- public double PMDPressure { get { return Singleton<RouteManager>.Instance.PMD.ChamberPressure; } }
- //public bool PMDIsATM { get { return Singleton<RouteManager>.Instance.PMD.IsAtm; } }
- public enum LLPumpState
- {
- Idle,
- LLAUsing,
- LLBUsing,
- }
- LLPumpState _llPumpingState = LLPumpState.Idle;
- public LLPumpState LLPumpStatus { get { return _llPumpingState; } }
- public bool PMASlitDoorClosed => _PMASlitDoor.State == CylinderState.Close;
- public bool PMASlitDoorOpened => _PMASlitDoor.State == CylinderState.Open;
- public bool PMBSlitDoorClosed => _PMBSlitDoor.State == CylinderState.Close;
- public bool PMBSlitDoorOpened => _PMBSlitDoor.State == CylinderState.Open;
- public bool PMCSlitDoorClosed => _PMCSlitDoor.State == CylinderState.Close;
- public bool PMCSlitDoorOpened => _PMCSlitDoor.State == CylinderState.Open;
- public bool PMDSlitDoorClosed => _PMDSlitDoor.State == CylinderState.Close;
- public bool PMDSlitDoorOpened => _PMDSlitDoor.State == CylinderState.Open;
- public bool AllPMSlitDoorClosed
- {
- get
- {
- if (PMASlitDoorClosed == true && PMBSlitDoorClosed == true && PMCSlitDoorClosed == true && PMDSlitDoorClosed == true)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- }
- public Dictionary<ModuleName, ModuleName> PreRotateModules { get; private set; }
- public JetTM() : base("TM")
- {
- _TMLid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.TMLid}");
- _LLALid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.LLALid}");
- _LLBLid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.LLBLid}");
- _PMALid = DEVICE.GetDevice<IoLid>($"TM.PMALid");
- _PMBLid = DEVICE.GetDevice<IoLid>($"TM.PMBLid");
- _PMCLid = DEVICE.GetDevice<IoLid>($"TM.PMCLid");
- _PMDLid = DEVICE.GetDevice<IoLid>($"TM.PMDLid");
- _LLATSlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLATSlitDoor}");
- _LLBTSlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLBTSlitDoor}");
- _LLAESlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLAESlitDoor}");
- _LLBESlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLBESlitDoor}");
- _PMASlitDoor = DEVICE.GetDevice<IoCylinder>($"{Module}.PMASlitDoor");
- _PMBSlitDoor = DEVICE.GetDevice<IoCylinder>($"{Module}.PMBSlitDoor");
- _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}");
- //_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}");
- _LLASoftVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLASoftVentValve}");
- _LLAFastVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAFastVentValve}");
- _LLBSoftVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBSoftVentValve}");
- _LLBFastVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBFastVentValve}");
- _TMVacAtmMode = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMVacAtmMode}");
- _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}");
- _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}");
- //_LLAWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.LLAWaferSizeCheckSwitch}");
- //_LLBWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.LLBWaferSizeCheckSwitch}");
- //_PMAWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.PMAWaferSizeCheckSwitch}");
- //_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");
- _LLA_PressureMode_Switch = DEVICE.GetDevice<IoSwitch>("TM.LLAPressureModeSwitch");
- _LLB_PressureMode_Switch = DEVICE.GetDevice<IoSwitch>("TM.LLBPressureModeSwitch");
- _TMMfc = DEVICE.GetDevice<IoMfc>($"{Module}.TM_MFC1");
- _LLAMfc = DEVICE.GetDevice<IoMfc>($"{Module}.LLA_MFC1");
- _LLBMfc = DEVICE.GetDevice<IoMfc>($"{Module}.LLB_MFC1");
- _presureCtrl = DEVICE.GetDevice<IoTMPressureCtrl>($"TM.{VenusDevice.TMPressureCtrl}");
- if (SC.GetValue<int>($"TM.DryPump.CommunicationType") == (int)CommunicationType.RS232)
- {
- if (SC.GetValue<int>($"TM.DryPump.MFG") == (int)DryPumpMFG.SKY)
- {
- _TMPump = DEVICE.GetDevice<SkyPump>($"TM.{VenusDevice.MainPump}");
- }
- else if (SC.GetValue<int>($"TM.DryPump.MFG") == (int)DryPumpMFG.Edwards)
- {
- _TMPump = DEVICE.GetDevice<EdwardsPump>($"TM.{VenusDevice.MainPump}");
- }
- }
- if (SC.GetValue<int>($"LLA.DryPump.CommunicationType") == (int)CommunicationType.RS232)
- {
- if (SC.GetValue<int>($"LLA.DryPump.MFG") == (int)DryPumpMFG.SKY)
- {
- _LLAPump = DEVICE.GetDevice<SkyPump>($"LLA.{VenusDevice.MainPump}");
- }
- else if (SC.GetValue<int>($"LLA.DryPump.MFG") == (int)DryPumpMFG.Edwards)
- {
- _LLAPump = DEVICE.GetDevice<EdwardsPump>($"LLA.{VenusDevice.MainPump}");
- }
- }
- if (SC.GetValue<int>($"LLB.DryPump.CommunicationType") == (int)CommunicationType.RS232)
- {
- if (SC.GetValue<int>($"LLB.DryPump.MFG") == (int)DryPumpMFG.SKY)
- {
- _LLBPump = DEVICE.GetDevice<SkyPump>($"LLB.{VenusDevice.MainPump}");
- }
- else if (SC.GetValue<int>($"LLB.DryPump.MFG") == (int)DryPumpMFG.Edwards)
- {
- _LLBPump = DEVICE.GetDevice<EdwardsPump>($"LLB.{VenusDevice.MainPump}");
- }
- }
- PreRotateModules = new Dictionary<ModuleName, ModuleName>();
- foreach (var mod in new List<ModuleName> { ModuleName.LLA, ModuleName.LLB, ModuleName.PMA, ModuleName.PMB, ModuleName.PMC, ModuleName.PMD })
- {
- string rotateModule = SC.GetStringValue($"TM.PreRotation.{mod}");
- if (rotateModule.Length == 3)
- {
- ModuleName rotModule = ModuleHelper.Converter(rotateModule);
- if ((ModuleHelper.IsPm(rotModule) || ModuleHelper.IsLoadLock(rotModule)) && rotModule != mod)
- {
- PreRotateModules.Add(mod, rotModule);
- }
- }
- }
- DATA.Subscribe("TM.PumpIsRunning", () => TMPumpIsRunning, SubscriptionAttribute.FLAG.IgnoreSaveDB);
- DATA.Subscribe("TM.TMLidClosed", () => TMLidClosed, SubscriptionAttribute.FLAG.IgnoreSaveDB);
- DATA.Subscribe("TM.LLALidClosed", () => LLALidClosed, SubscriptionAttribute.FLAG.IgnoreSaveDB);
- DATA.Subscribe("TM.LLBLidClosed", () => LLBLidClosed, SubscriptionAttribute.FLAG.IgnoreSaveDB);
- DATA.Subscribe("LLA.PumpIsRunning", () => LLAPumpIsRunning, SubscriptionAttribute.FLAG.IgnoreSaveDB);
- DATA.Subscribe("LLB.PumpIsRunning", () => LLBPumpIsRunning, SubscriptionAttribute.FLAG.IgnoreSaveDB);
- DATA.Subscribe($"{Name}.LLAPressure", () => LLAPressure);
- DATA.Subscribe($"{Name}.LLBPressure", () => LLBPressure);
- OP.Subscribe("TM.ControlPump", (cmd, args) =>
- {
- _TMPump.SetPumpOnOff((bool)args[0]);
- return true;
- });
- OP.Subscribe("LLA.ControlPump", (cmd, args) =>
- {
- _LLAPump.SetPumpOnOff((bool)args[0]);
- return true;
- });
- OP.Subscribe("LLB.ControlPump", (cmd, args) =>
- {
- _LLBPump.SetPumpOnOff((bool)args[0]);
- return true;
- });
- OP.Subscribe("TM.SetChamberPressure", (cmd, args) =>
- {
- _presureCtrl.SetTMPressure((int)(args[0]));
- return true;
- });
- OP.Subscribe("TM.SetChamberFlow", (cmd, args) =>
- {
- _TMMfc.SetPoint = (int)(args[0]);
- return true;
- });
- OP.Subscribe($"TM.SetMFSlitDoor", (cmd, args) =>
- {
- var module = (ModuleName)Enum.Parse(typeof(ModuleName), args[0].ToString());
- TurnMFSlitDoor(module, (bool)args[1], out _);
- return true;
- });
- OP.Subscribe($"TM.SetEFEMSlitDoor", (cmd, args) =>
- {
- var module = (ModuleName)Enum.Parse(typeof(ModuleName), args[0].ToString());
- TurnEFEMSlitDoor(module, (bool)args[1], out _);
- return true;
- });
- _TMVacAtmMode.TurnValve(RouteManager.IsATMMode, out string _);
- }
- public override void Monitor()
- {
- //if (_WaferLeakSensor.Value && _WaferRelayValve.Status == false)
- //{
- // _WaferRelayValve.TurnValve(true, out string _);
- //}
- //else if (_WaferLeakSensor.Value == false && _WaferRelayValve.Status == true)
- //{
- // _WaferRelayValve.TurnValve(false, out string _);
- //}
- }
- public void TurnSoftPumpValve(ModuleName mod, bool bOn)
- {
- switch (mod)
- {
- case ModuleName.TM:
- _TMSoftPumpValve.TurnValve(bOn, out string _);
- break;
- case ModuleName.LLA:
- _LLASoftPumpValve.TurnValve(bOn, out string _);
- break;
- case ModuleName.LLB:
- _LLBSoftPumpValve.TurnValve(bOn, out string _);
- break;
- }
- }
- public void TurnFastPumpValve(ModuleName mod, bool bOn)
- {
- switch (mod)
- {
- case ModuleName.TM:
- _TMFastPumpValve.TurnValve(bOn, out string _);
- break;
- case ModuleName.LLA:
- _LLAFastPumpValve.TurnValve(bOn, out string _);
- break;
- case ModuleName.LLB:
- _LLBFastPumpValve.TurnValve(bOn, out string _);
- break;
- }
- }
- public void TurnVentValve(ModuleName mod, bool bOn)
- {
- switch (mod)
- {
- case ModuleName.TM:
- _TMVentValve.TurnValve(bOn, out string _);
- break;
- case ModuleName.LLA:
- _LLAVentValve.TurnValve(bOn, out string _);
- break;
- case ModuleName.LLB:
- _LLBVentValve.TurnValve(bOn, out string _);
- break;
- }
- }
- public void TurnPurgeValve(ModuleName mod, bool bOn)
- {
- switch (mod)
- {
- case ModuleName.TM:
- _TMPurgeValve.TurnValve(bOn, out string _);
- break;
- case ModuleName.LLA:
- _LLAPurgeValve.TurnValve(bOn, out string _);
- break;
- case ModuleName.LLB:
- _LLBPurgeValve.TurnValve(bOn, out string _);
- break;
- }
- }
- public void TurnN2Valve(bool bOn)
- {
- _TMN2Valve.TurnValve(bOn, out string _);
- }
- public void CloseModuleAllValves(ModuleName mod)
- {
- TurnFastPumpValve(mod, false);
- TurnSoftPumpValve(mod, false);
- TurnVentValve(mod, false);
- TurnPurgeValve(mod, false);
- if (mod == ModuleName.TM)
- TurnN2Valve(false);
- }
- public double GetModulePressure(ModuleName mod)
- {
- switch (mod)
- {
- case ModuleName.TM:
- return ChamberPressure;
- case ModuleName.LLA:
- return LLAPressure;
- case ModuleName.LLB:
- return LLBPressure;
- case ModuleName.PMA:
- return PMAPressure;
- case ModuleName.PMB:
- return PMBPressure;
- case ModuleName.PMC:
- return PMCPressure;
- case ModuleName.PMD:
- return PMDPressure;
- }
- return 0;
- }
- public double GetModuleForelinePressure(ModuleName mod)
- {
- switch (mod)
- {
- case ModuleName.TM:
- return ForelinePressure;
- case ModuleName.LLA:
- return LLAForelinePressure;
- case ModuleName.LLB:
- return LLBForelinePressure;
- }
- return 0;
- }
- public bool IsModuleATM(ModuleName mod)
- {
- switch (mod)
- {
- case ModuleName.TM:
- return IsTMATM;
- case ModuleName.LLA:
- return IsLLAATM;
- case ModuleName.LLB:
- return IsLLBATM;
- case ModuleName.PMA:
- return Singleton<RouteManager>.Instance.PMA.IsAtm;
- case ModuleName.PMB:
- return Singleton<RouteManager>.Instance.PMB.IsAtm;
- case ModuleName.PMC:
- return Singleton<RouteManager>.Instance.PMC.IsAtm;
- case ModuleName.PMD:
- return Singleton<RouteManager>.Instance.PMD.IsAtm;
- }
- return false;
- }
- public bool IsModuleVaccum(ModuleName mod)
- {
- switch (mod)
- {
- case ModuleName.TM:
- return IsTMVac;
- case ModuleName.LLA:
- return IsLLAVac;
- case ModuleName.LLB:
- return IsLLBVac;
- case ModuleName.PMA:
- return Singleton<RouteManager>.Instance.PMA.IsVac;
- case ModuleName.PMB:
- return Singleton<RouteManager>.Instance.PMB.IsVac;
- case ModuleName.PMC:
- return Singleton<RouteManager>.Instance.PMC.IsVac;
- case ModuleName.PMD:
- return Singleton<RouteManager>.Instance.PMD.IsVac;
- }
- return false;
- }
- public bool IsPMSlitdoorOpened(ModuleName mod)
- {
- switch (mod)
- {
- case ModuleName.PMA:
- return PMASlitDoorOpened;
- case ModuleName.PMB:
- return PMBSlitDoorOpened;
- case ModuleName.PMC:
- return PMCSlitDoorOpened;
- case ModuleName.PMD:
- return PMDSlitDoorOpened;
- }
- return false;
- }
- public bool IsPMSlitdoorClosed(ModuleName mod)
- {
- switch (mod)
- {
- case ModuleName.PMA:
- return PMASlitDoorClosed;
- case ModuleName.PMB:
- return PMBSlitDoorClosed;
- case ModuleName.PMC:
- return PMCSlitDoorClosed;
- case ModuleName.PMD:
- return PMDSlitDoorClosed;
- }
- 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)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Lid not closed");
- return false;
- }
- break;
- case ModuleName.LLA:
- if (!LLALidClosed)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Lid not closed");
- return false;
- }
- break;
- case ModuleName.LLB:
- if (!LLBLidClosed)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Lid not closed");
- return false;
- }
- break;
- case ModuleName.PMA:
- if (!PMALidClosed)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.PMA, "PMA Lid not closed");
- return false;
- }
- break;
- case ModuleName.PMB:
- if (!PMBLidClosed)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.PMB, "PMB Lid not closed");
- return false;
- }
- break;
- case ModuleName.PMC:
- if (!PMCLidClosed)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.PMC, "PMC Lid not closed");
- return false;
- }
- break;
- case ModuleName.PMD:
- if (!PMDLidClosed)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.PMD, "PMD Lid not closed");
- return false;
- }
- break;
- }
- return true;
- }
- public bool CheckVentValveClosed(ModuleName mod)
- {
- switch (mod)
- {
- case ModuleName.TM:
- if (IsTMVentValveOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Vent Valve not closed");
- return false;
- }
- break;
- case ModuleName.LLA:
- if (IsLLAVentValveOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Vent Valve not closed");
- return false;
- }
- break;
- case ModuleName.LLB:
- if (IsLLBVentValveOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Vent Valve not closed");
- return false;
- }
- break;
- }
- return true;
- }
- public bool CheckPurgeValveClosed(ModuleName mod)
- {
- switch (mod)
- {
- case ModuleName.TM:
- if (IsTMPurgeValveOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Purge Valve not closed");
- return false;
- }
- break;
- case ModuleName.LLA:
- if (IsLLAPurgeValveOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Purge Valve not closed");
- return false;
- }
- break;
- case ModuleName.LLB:
- if (IsLLBPurgeValveOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Purge Valve not closed");
- return false;
- }
- break;
- }
- return true;
- }
- public bool CheckPumpValveClosed(ModuleName mod)
- {
- switch (mod)
- {
- case ModuleName.TM:
- if (IsTMFastPumpOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Fast Pump Valve not closed");
- return false;
- }
- else if (IsTMSoftPumpOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Soft Pump Valve not closed");
- return false;
- }
- break;
- case ModuleName.LLA:
- if (IsLLAFastPumpOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Fast Pump Valve not closed");
- return false;
- }
- else if (IsLLASoftPumpOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Soft Pump Valve not closed");
- return false;
- }
- break;
- case ModuleName.LLB:
- if (IsLLBFastPumpOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Fast Pump Valve not closed");
- return false;
- }
- else if (IsLLBSoftPumpOpen)
- {
- LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Soft Pump Valve not closed");
- return false;
- }
- break;
- }
- return true;
- }
- //private bool CheckRobotNotExtendSensor(ModuleName ll, bool open, bool bTMDoor, out string reason)
- //{
- // string action = open ? "Open" : "Close";
- // string doorName = bTMDoor ? "TM" : "EFEM";
- // if (ll == ModuleName.LLA)
- // {
- // if (!_TMRobotNotExtendLLA.Value)
- // {
- // reason = $"TM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
- // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- // return false;
- // }
- // if (!_EfemRobotNotExtendLLA.Value)
- // {
- // reason = $"EFEM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
- // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- // return false;
- // }
- // }
- // else
- // {
- // if (!_TMRobotNotExtendLLB.Value)
- // {
- // reason = $"TM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
- // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- // return false;
- // }
- // if (!_EfemRobotNotExtendLLB.Value)
- // {
- // reason = $"EFEM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
- // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- // return false;
- // }
- // }
- // reason = "";
- // return true;
- //}
- public bool TurnMFSlitDoor(ModuleName moduleName, bool open, out string reason)
- {
- //if (!CheckRobotNotExtendSensor(loadlock, open, true, out reason))
- // return false;
- if (open)
- {
- if (RouteManager.IsATMMode)
- {
- if (!IsTMATM)
- {
- reason = $"TM is not ATM, can not open slit door";
- LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- return false;
- }
- if (!IsModuleATM(moduleName))
- {
- reason = $"{moduleName} is not ATM, can not open slit door";
- LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- return false;
- }
- }
- else
- {
- if (!IsModuleVaccum(moduleName))
- {
- reason = $"{moduleName} is notVacuum, can not open slit door";
- LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- return false;
- }
- 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}";
- LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- return false;
- }
- }
- }
- switch (moduleName)
- {
- case ModuleName.LLA:
- return _LLATSlitDoor.SetCylinder(open, out reason);
- case ModuleName.LLB:
- return _LLBTSlitDoor.SetCylinder(open, out reason);
- case ModuleName.PMA:
- return _PMASlitDoor.SetCylinder(open, out reason);
- case ModuleName.PMB:
- return _PMBSlitDoor.SetCylinder(open, out reason);
- case ModuleName.PMC:
- return _PMCSlitDoor.SetCylinder(open, out reason);
- case ModuleName.PMD:
- return _PMDSlitDoor.SetCylinder(open, out reason);
- }
- reason = $"Invalid module {moduleName}";
- LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- return false;
- }
- public bool TurnEFEMSlitDoor(ModuleName loadlock, bool open, out string reason)
- {
- //if (!CheckRobotNotExtendSensor(loadlock, open, false, out reason))
- // return false;
- if (open && !IsModuleATM(loadlock))
- {
- reason = $"{loadlock} is not ATM, can not open EFEM side slit door";
- LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- return false;
- }
- switch (loadlock)
- {
- case ModuleName.LLA:
- return _LLAESlitDoor.SetCylinder(open, out reason);
- case ModuleName.LLB:
- return _LLBESlitDoor.SetCylinder(open, out reason);
- }
- reason = $"Invalid module {loadlock}";
- LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
- return false;
- }
- //public bool ControlTMPump(bool ison)
- //{
- // _TMPump.SetPumpOnOff(ison);
- // return true;
- //}
- public void SwitchTMPressureMode(bool isPressureMode)
- {
- if (isPressureMode == true)
- {
- _TM_PressureMode_Switch.TurnOn();
- }
- else
- {
- _TM_PressureMode_Switch.TurnOff();
- }
- }
- public void SwitchLLAPressureMode(bool isPressureMode)
- {
- if (isPressureMode == true)
- {
- _LLA_PressureMode_Switch.TurnOn();
- }
- else
- {
- _LLA_PressureMode_Switch.TurnOff();
- }
- }
- public void SwitchLLBPressureMode(bool isPressureMode)
- {
- if (isPressureMode == true)
- {
- _LLB_PressureMode_Switch.TurnOn();
- }
- else
- {
- _LLB_PressureMode_Switch.TurnOff();
- }
- }
- public void SetTMPressure(int pressureValue)
- {
- _presureCtrl.SetTMPressure(pressureValue);
- }
- public void SetLLAPressure(int pressureValue)
- {
- _presureCtrl.SetLLAPressure(pressureValue);
- }
- public void SetLLBPressure(int pressureValue)
- {
- _presureCtrl.SetLLBPressure(pressureValue);
- }
- public void SetTMFlow(int flowValue)
- {
- SwitchTMPressureMode(false);
- _TMMfc.SetPoint = (flowValue);
- }
- public void SetLLAFlow(double flowValue)
- {
- SwitchLLAPressureMode(false);
- _LLAMfc.SetPoint = (flowValue);
- }
- public void SetLLBFlow(double flowValue)
- {
- SwitchLLBPressureMode(false);
- _LLBMfc.SetPoint = (flowValue);
- }
- public bool CloseAllSlitDoor()
- {
- TurnMFSlitDoor(ModuleName.LLA, false, out _);
- TurnMFSlitDoor(ModuleName.LLB, false, out _);
- TurnMFSlitDoor(ModuleName.PMA, false, out _);
- TurnMFSlitDoor(ModuleName.PMB, false, out _);
- TurnMFSlitDoor(ModuleName.PMC, false, out _);
- TurnMFSlitDoor(ModuleName.PMD, false, out _);
- return true;
- }
- public bool TurnTMPump(bool ison)
- {
- _TMPump.SetPumpOnOff(ison);
- return true;
- }
- public bool TryGetLLPump(ModuleName LLname)
- {
- //Self
- if ((LLname == ModuleName.LLA && _llPumpingState == LLPumpState.LLAUsing) || (LLname == ModuleName.LLB && _llPumpingState == LLPumpState.LLBUsing))
- return true;
- //Idle
- if (LLname == ModuleName.LLA && !IsLLBFastPumpOpen && !IsLLBSoftPumpOpen && _llPumpingState == LLPumpState.Idle)
- {
- _llPumpingState = LLPumpState.LLAUsing;
- return true;
- }
- if (LLname == ModuleName.LLB && !IsLLAFastPumpOpen && !IsLLASoftPumpOpen && _llPumpingState == LLPumpState.Idle)
- {
- _llPumpingState = LLPumpState.LLBUsing;
- return true;
- }
- //LOG.Write(eEvent.WARN_DEFAULT_WARN, LLname, "无法打开,另一个泵正在用!");
- //locked
- return false;
- }
- public void ReleasePump(ModuleName Module)
- {
- //release pump (must do it by user)
- if ((Module == ModuleName.LLA && _llPumpingState == LLPumpState.LLAUsing) || (Module == ModuleName.LLB && _llPumpingState == LLPumpState.LLBUsing))
- _llPumpingState = LLPumpState.Idle;
- }
- public void HomeSlitDoor()
- {
- if (IsLLASlitDoorClosed == true)
- {
- _LLATSlitDoor.SetCylinder(false, out _);
- }
- else if (IsLLASlitDoorOpen == true)
- {
- _LLATSlitDoor.SetCylinder(true, out _);
- }
- if (IsLLBSlitDoorClosed == true)
- {
- _LLBTSlitDoor.SetCylinder(false, out _);
- }
- else if (IsLLBSlitDoorOpen == true)
- {
- _LLBTSlitDoor.SetCylinder(true, out _);
- }
- if (IsLLAESlitDoorClosed == true)
- {
- _LLAESlitDoor.SetCylinder(false, out _);
- }
- else if (IsLLAESlitDoorOpen == true)
- {
- _LLAESlitDoor.SetCylinder(true, out _);
- }
- if (IsLLBESlitDoorClosed == true)
- {
- _LLBESlitDoor.SetCylinder(false, out _);
- }
- else if (IsLLBESlitDoorOpen == true)
- {
- _LLBESlitDoor.SetCylinder(true, out _);
- }
- }
- public bool CheckPumpIsRunning(ModuleName moduleName)
- {
- switch (moduleName)
- {
- case ModuleName.LLA:
- return LLAPumpIsRunning;
- case ModuleName.LLB:
- return LLBPumpIsRunning;
- case ModuleName.TM:
- return TMPumpIsRunning;
- default:
- return false;
- }
- }
- public bool LLDoorAllClosed(ModuleName moduleName)
- {
- if (moduleName == ModuleName.LLA)
- {
- return IsLLASlitDoorClosed && IsLLAESlitDoorClosed;
- }
- else if (moduleName == ModuleName.LLB)
- {
- return IsLLBSlitDoorClosed && IsLLBESlitDoorClosed;
- }
- return false;
- }
- public bool TMRobotNotExtendModule(ModuleName moduleName)
- {
- switch (moduleName)
- {
- case ModuleName.PMA:
- return TMRobotNotExtendToPMA;
- case ModuleName.PMB:
- return TMRobotNotExtendToPMB;
- case ModuleName.PMC:
- return TMRobotNotExtendToPMC;
- case ModuleName.PMD:
- return TMRobotNotExtendToPMD;
- case ModuleName.LLA:
- return TMRobotNotExtendToLLA;
- case ModuleName.LLB:
- return TMRobotNotExtendToLLB;
- default: return false;
- }
- }
- public bool EFEMRobotNotExtendModule(ModuleName moduleName)
- {
- switch (moduleName)
- {
- case ModuleName.LLA:
- return EfemRobotNotExtendToLLA;
- case ModuleName.LLB:
- return EfemRobotNotExtendToLLB;
- default: return false;
- }
- }
- }
- }
|