首次上传
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
using Aitex.Core.RT.Device;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Aligner
|
||||
{
|
||||
public class Aligner : BaseDevice, IDevice, IAligner
|
||||
{
|
||||
public virtual bool IsMapped { get; set; }
|
||||
|
||||
public Aligner(string module) : base(module, module, module, module)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public virtual bool Initialize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Terminate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool IsEnableTransferWafer(out string reason)
|
||||
{
|
||||
|
||||
reason = "";
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool IsEnableMapWafer(out string reason)
|
||||
{
|
||||
|
||||
reason = "";
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void ConfirmWaferPresent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public virtual void OnSlotMapRead(string slotMap)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Aligner
|
||||
{
|
||||
public interface IAligner
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using Aitex.Core.RT.Device;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Buffers
|
||||
{
|
||||
public class Buffer : BaseDevice, IDevice, IBuffer
|
||||
{
|
||||
public virtual bool IsMapped { get; set; }
|
||||
|
||||
public Buffer(string module) : base(module, module, module, module)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public virtual bool Initialize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Monitor()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void Terminate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool IsEnableTransferWafer(out string reason)
|
||||
{
|
||||
|
||||
reason = "";
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool IsEnableMapWafer(out string reason)
|
||||
{
|
||||
|
||||
reason = "";
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void ConfirmWaferPresent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public virtual void OnSlotMapRead(string slotMap)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Buffers
|
||||
{
|
||||
public interface IBuffer
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using Aitex.Core.RT.Device;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Cassette
|
||||
{
|
||||
public class Cassette : BaseDevice, IDevice, ICassette
|
||||
{
|
||||
public virtual bool IsMapped { get; set; }
|
||||
|
||||
public Cassette(string module) : base(module, module, module, module)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public virtual bool Initialize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Monitor()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void Terminate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool IsEnableTransferWafer(out string reason)
|
||||
{
|
||||
|
||||
reason = "";
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool IsEnableMapWafer(out string reason)
|
||||
{
|
||||
|
||||
reason = "";
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void ConfirmWaferPresent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public virtual void OnSlotMapRead(string slotMap)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Cassette
|
||||
{
|
||||
public interface ICassette
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using Aitex.Core.RT.Device;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.EFEM
|
||||
{
|
||||
public class EFEM : BaseDevice, IDevice, IEFEM
|
||||
{
|
||||
|
||||
public virtual double AtmPressureBase { get; }
|
||||
public virtual bool IsMapped { get; set; }
|
||||
|
||||
public EFEM(string module) : base(module, module, module, module)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public virtual bool Initialize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Monitor()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void Terminate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool IsEnableTransferWafer(out string reason)
|
||||
{
|
||||
|
||||
reason = "";
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool IsEnableMapWafer(out string reason)
|
||||
{
|
||||
|
||||
reason = "";
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void ConfirmWaferPresent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool CheckSlitValveOpen(ModuleName module, ModuleName robot)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckSlitValveClose(ModuleName module, ModuleName robot)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public virtual bool SetSlitValve(ModuleName module, ModuleName robot, bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
using MECF.Framework.Common.Equipment;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.EFEM
|
||||
{
|
||||
public interface IEFEM
|
||||
{
|
||||
double AtmPressureBase { get; }
|
||||
|
||||
bool CheckSlitValveOpen(ModuleName module, ModuleName robot);
|
||||
|
||||
bool CheckSlitValveClose(ModuleName module, ModuleName robot);
|
||||
|
||||
bool SetSlitValve(ModuleName module, ModuleName robot, bool isOpen, out string reason);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
using Aitex.Sorter.Common;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
using MECF.Framework.Common.Schedulers;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.LogicUnits
|
||||
{
|
||||
public interface ITransferTarget
|
||||
{
|
||||
bool PrepareTransfer(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType, out string reason);
|
||||
bool TransferHandoff(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType, out string reason);
|
||||
bool PostTransfer(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType, out string reason);
|
||||
|
||||
bool CheckReadyForTransfer(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType, out string reason);
|
||||
void NoteTransferStart(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType);
|
||||
void NoteTransferStop(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public interface ITransferRobot
|
||||
{
|
||||
bool Pick(ModuleName target, Hand blade, int targetSlot, out string reason);
|
||||
bool Place(ModuleName target, Hand blade, int targetSlot, out string reason);
|
||||
|
||||
bool PickAndPlace(ModuleName pickTarget, Hand pickHand, int pickSlot, ModuleName placeTarget, Hand placeHand, int placeSlot, out string reason);
|
||||
bool Goto(ModuleName target, Hand blade, int targetSlot, out string reason);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.LoadLocks
|
||||
{
|
||||
public interface ILoadLock
|
||||
{
|
||||
bool CheckAtm();
|
||||
bool CheckVacuum();
|
||||
|
||||
bool SetFastVentValve(bool isOpen, out string reason);
|
||||
bool SetSlowVentValve(bool isOpen, out string reason);
|
||||
|
||||
bool SetFastPumpValve(bool isOpen, out string reason);
|
||||
bool SetSlowPumpValve(bool isOpen, out string reason);
|
||||
|
||||
bool CheckLidOpen();
|
||||
bool CheckLidClose();
|
||||
|
||||
bool SetLift(bool isUp, out string reason);
|
||||
bool CheckLiftUp();
|
||||
bool CheckLiftDown();
|
||||
bool CheckTrayClamped();
|
||||
|
||||
bool CheckTrayUnClamped();
|
||||
|
||||
bool SetTrayClamped(bool clamp, out string reason);
|
||||
|
||||
bool CheckWaferClamped();
|
||||
|
||||
bool CheckWaferUnClamped();
|
||||
|
||||
bool SetWaferClamped(bool clamp, out string reason);
|
||||
|
||||
bool CheckWaferPlaced();
|
||||
bool CheckTrayPlaced();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
using Aitex.Core.RT.DataCenter;
|
||||
using Aitex.Core.RT.Device;
|
||||
using MECF.Framework.Common.Schedulers;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.LoadLocks
|
||||
{
|
||||
public class LoadLock : BaseDevice, IDevice, ILoadLock
|
||||
{
|
||||
public virtual double ChamberPressure { get; }
|
||||
public virtual bool EnableLift { get; }
|
||||
|
||||
public const int SlotCount = 1;
|
||||
|
||||
public LoadLock(string module): base(module, module, module, module)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool Initialize()
|
||||
{
|
||||
DATA.Subscribe($"{Name}.IsAtm", () => { return CheckAtm(); });
|
||||
DATA.Subscribe($"{Name}.IsVacuum", () => { return CheckVacuum(); });
|
||||
DATA.Subscribe($"{Name}.ChamberPressure", () => ChamberPressure);
|
||||
//DATA.Subscribe($"{Name}.ForelinePressure", () => ForelinePressure);
|
||||
//DATA.Subscribe($"{Name}.EnableLift", () => { return EnableLift; });
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckRotationState()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckAtm()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckVacuum()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckTransferPressure()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckIsPumping()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual void AutoCreatWafer()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool SetFastVentValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckSlowVentValve(bool isOpen)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetSlowVentValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetFastPumpValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetSlowPumpValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool ServoOnRotation(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void Monitor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void Terminate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool CheckLidOpen()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckLidClose()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetLift(bool isUp, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckLiftUp()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckLiftDown()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool CheckTrayClamped()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckTrayUnClamped()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetTrayClamped(bool clamp, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckWaferClamped()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool CheckWaferUnClamped()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool SetWaferClamped(bool clamp, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckWaferPlaced()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool CheckTrayPlaced()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckEnableTransfer(EnumTransferType type)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.PMs
|
||||
{
|
||||
public interface IPM
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Aitex.Core.RT.DataCenter;
|
||||
using Aitex.Core.RT.Device;
|
||||
using Aitex.Core.RT.Log;
|
||||
using Aitex.Core.RT.SCCore;
|
||||
using MECF.Framework.Common.DataCenter;
|
||||
using MECF.Framework.Common.DBCore;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
using MECF.Framework.Common.Schedulers;
|
||||
using MECF.Framework.Common.SubstrateTrackings;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.PMs
|
||||
{
|
||||
public class PM : BaseDevice, IDevice, IPM
|
||||
{
|
||||
//如果true,robot采用extend, retract指令
|
||||
//如果false,robot采用pick,place指令
|
||||
public bool IsActiveHandoff { get; set; }
|
||||
|
||||
//如果true,robot调用收尾PostTransfer
|
||||
public bool IsNeedPostTransfer { get; set; }
|
||||
|
||||
public virtual double ChamberPressure { get; }
|
||||
public virtual bool IsError { get; }
|
||||
public virtual bool IsIdle { get; }
|
||||
public virtual bool IsProcessing { get; }
|
||||
|
||||
public virtual bool IsInstalled { get; set; }
|
||||
public virtual double ForelinePressure { get; set; }
|
||||
|
||||
protected readonly string _statNameWaferProcessed;
|
||||
protected readonly string _statNameWaferProcessedSincePreviousClean;
|
||||
|
||||
public PM(string module) : base(module, module, module, module)
|
||||
{
|
||||
_statNameWaferProcessed = $"{module}.WaferProcessed";
|
||||
_statNameWaferProcessedSincePreviousClean = $"{module}.WaferProcessedSincePreviousClean";
|
||||
}
|
||||
|
||||
|
||||
public virtual bool Initialize()
|
||||
{
|
||||
DATA.Subscribe($"{Name}.IsAtm", () => { return CheckAtm(); });
|
||||
DATA.Subscribe($"{Name}.IsVacuum", () => { return CheckVacuum(); });
|
||||
DATA.Subscribe($"{Name}.ChamberPressure", () => ChamberPressure);
|
||||
|
||||
IsInstalled = !SC.ContainsItem($"System.{Name}IsInstalled") || SC.GetValue<bool>($"System.{Name}IsInstalled");
|
||||
|
||||
StatsDataManager.Instance.Subscribe(_statNameWaferProcessed, $"{Name} Wafer processed", 0);
|
||||
StatsDataManager.Instance.Subscribe(_statNameWaferProcessedSincePreviousClean, $"{Name} Wafer processed since previous clean", 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckAtm()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckVacuum()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckChuckState()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckServoTransferPos()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckChuckPos()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckHandoff(EnumTransferType type)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckEnableTransfer(EnumTransferType type, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckEnableTransfer(EnumTransferType type, int slot, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckEnablePump(out string reason)
|
||||
{
|
||||
reason = "Undefined";
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual void Monitor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void Terminate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool PrepareTransfer(EnumTransferType type, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool Home()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void PostTransfer(EnumTransferType type)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void TransferHandoff(EnumTransferType type)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void StartProcess(string recipeName, string recipeContent, bool isClean)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool SetPumpOn(out string reason)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual void OnProcessStart(string guid, string recipeName, bool isClean)
|
||||
{
|
||||
ProcessDataRecorder.Start(guid, recipeName,
|
||||
WaferManager.Instance.GetWafer(ModuleHelper.Converter(Module), 0).WaferInnerID.ToString(), Module);
|
||||
|
||||
if (!isClean)
|
||||
{
|
||||
int value1 = StatsDataManager.Instance.Increase(_statNameWaferProcessed);
|
||||
int value2 = StatsDataManager.Instance.Increase(_statNameWaferProcessedSincePreviousClean);
|
||||
|
||||
LOG.Write($"{_statNameWaferProcessed} counter increase 1 to {value1}");
|
||||
LOG.Write($"{_statNameWaferProcessedSincePreviousClean} counter increase 1 to {value2}");
|
||||
}
|
||||
|
||||
LOG.Write($"{Module} start run recipe {recipeName}, guid {guid}, clean: {isClean}");
|
||||
}
|
||||
|
||||
public virtual bool CheckPumpIsOn()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual bool SetPumpOff(out string reason)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual void OnProcessEnd(string guid, string recipeName, bool isClean, bool isSucceed)
|
||||
{
|
||||
if (isClean)
|
||||
{
|
||||
int value = StatsDataManager.Instance.Reset(_statNameWaferProcessedSincePreviousClean);
|
||||
|
||||
LOG.Write($"{_statNameWaferProcessedSincePreviousClean} counter reset from {value}");
|
||||
}
|
||||
|
||||
LOG.Write($"{Module} end run recipe {recipeName}, guid {guid}, clean: {isClean}, result {isSucceed}");
|
||||
|
||||
ProcessDataRecorder.End(guid, isSucceed ? "Complete" : "Failed");
|
||||
|
||||
}
|
||||
public virtual void OnProcessAbort(string guid, string recipeName, bool isClean, bool isSucceed)
|
||||
{
|
||||
if (isClean)
|
||||
{
|
||||
int value = StatsDataManager.Instance.Reset(_statNameWaferProcessedSincePreviousClean);
|
||||
|
||||
LOG.Write($"{_statNameWaferProcessedSincePreviousClean} counter reset from {value}");
|
||||
}
|
||||
|
||||
LOG.Write($"{Module} end run recipe {recipeName}, guid {guid}, clean: {isClean}, result {isSucceed}");
|
||||
|
||||
ProcessDataRecorder.End(guid, "Abort" );
|
||||
|
||||
}
|
||||
public virtual bool SetThrottleValvePosition(int slowPumpPosition, out string reason)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual bool SetThrottleValvePressure(float pressure, out string reason)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual bool CloseThrottleValve(out string reason)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual bool SetFastPumpValve(bool isOpen, out string reason)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual bool SetSlowPumpValve(bool isOpen, out string reason)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual bool OpenThrottleValve(out string reason)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual bool SetAllValves(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckNoError(out List<string> reason)
|
||||
{
|
||||
reason = new List<string>();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
using Aitex.Core.RT.Device;
|
||||
using Aitex.Core.RT.Event;
|
||||
using Aitex.Core.RT.SCCore;
|
||||
using Aitex.Sorter.Common;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
using MECF.Framework.Common.Fsm;
|
||||
using MECF.Framework.Common.Schedulers;
|
||||
using MECF.Framework.Common.SubstrateTrackings;
|
||||
using MECF.Framework.RT.EquipmentLibrary.LogicUnits;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.PMs
|
||||
{
|
||||
public abstract class PMModuleBase : ModuleFsmDevice, ITransferTarget, IModuleDevice
|
||||
{
|
||||
#region Variables
|
||||
|
||||
private int _slot = 1;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public PMModuleBase(int slot)
|
||||
{
|
||||
_slot = slot;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
public abstract double ChamberPressure { get; }
|
||||
|
||||
public abstract bool IsIdle { get; }
|
||||
|
||||
public abstract bool IsProcessIdle { get; }
|
||||
|
||||
public abstract bool IsReady { get; }
|
||||
|
||||
public abstract bool IsError { get; }
|
||||
|
||||
public abstract bool IsInit { get; }
|
||||
|
||||
public abstract bool IsService { get; }
|
||||
|
||||
public bool IsBypassInterlock => SC.GetValue<bool>($"PM.{Module}.BypassInterlock");
|
||||
|
||||
public bool IsBypassEnableTable => SC.GetValue<bool>($"PM.{Module}.BypassEnableTable");
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
public override bool Initialize()
|
||||
{
|
||||
WaferManager.Instance.SubscribeLocation(Module, _slot);
|
||||
|
||||
return base.Initialize();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查是否Bypass了Interlock。
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected void DoIfInterlockNotBypassed(Action action)
|
||||
{
|
||||
if (IsBypassInterlock)
|
||||
EV.PostWarningLog(Module, $"Interlock is bypassed");
|
||||
else if (IsBypassEnableTable)
|
||||
EV.PostWarningLog(Module, $"Enable table is bypassed");
|
||||
else
|
||||
action.Invoke();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Abstract Methods
|
||||
|
||||
|
||||
public abstract bool CheckAcked(int entityTaskToken);
|
||||
|
||||
//Initialize
|
||||
public abstract bool Home();
|
||||
|
||||
//Transfer
|
||||
public abstract bool IsPrepareTransferReady(ModuleName robot, EnumTransferType pick, int slot);
|
||||
|
||||
public abstract int InvokePrepareTransfer(ModuleName robot, EnumTransferType type, int slot);
|
||||
|
||||
public abstract bool InvokeCheckHeaterDisable();
|
||||
|
||||
public abstract int InvokeSetHeatDisable();
|
||||
|
||||
public abstract bool Home(out string reason);
|
||||
|
||||
//ITransferTarget
|
||||
public abstract bool PrepareTransfer(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType, out string reason);
|
||||
|
||||
public abstract bool TransferHandoff(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType, out string reason);
|
||||
|
||||
public abstract bool PostTransfer(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType, out string reason);
|
||||
|
||||
public abstract bool CheckReadyForTransfer(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType, out string reason);
|
||||
|
||||
public abstract void NoteTransferStart(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType);
|
||||
|
||||
public abstract void NoteTransferStop(ModuleName robot, Hand blade, int targetSlot, EnumTransferType transferType);
|
||||
|
||||
//Process
|
||||
public abstract int InvokeProcess(string recipeName, bool isCleanRecipe, bool withWafer);
|
||||
|
||||
public abstract int InvokeCleanProcess(string recipeName);
|
||||
|
||||
public abstract bool IsProcessed();
|
||||
|
||||
//Pump
|
||||
public abstract bool PreparePump(out string reason);
|
||||
|
||||
public abstract bool CheckPreparePump();
|
||||
|
||||
public abstract bool SlowPump(int tvPosition, out string reason);
|
||||
|
||||
public abstract bool FastPump(int tvPosition, out string reason);
|
||||
|
||||
public abstract bool TurnOnPump(out string reason);
|
||||
|
||||
public abstract bool CheckPumpIsOn();
|
||||
|
||||
public abstract bool ShutDownPump(out string reason);
|
||||
|
||||
public abstract bool AbortPump();
|
||||
|
||||
//Vent
|
||||
public abstract bool PrepareVent(out string reason);
|
||||
|
||||
public abstract bool CheckPrepareVent();
|
||||
|
||||
public abstract bool Vent(out string reason);
|
||||
|
||||
public abstract bool StopVent(out string reason);
|
||||
|
||||
public abstract bool CheckSlitValveClose();
|
||||
|
||||
//Lid
|
||||
public abstract bool CheckLidClosed();
|
||||
|
||||
// PreProcess
|
||||
public abstract bool CheckPreProcessCondition(Dictionary<string, string> recipeCommands, out string reason);
|
||||
|
||||
// 2704
|
||||
public abstract bool CloseHeaterEnable(out string reason);
|
||||
|
||||
public abstract bool ClosePSUEnable(out string reason);
|
||||
|
||||
public abstract bool CloseSCREnable(out string reason);
|
||||
|
||||
public abstract bool EnableHeater(bool enable, out string reason);
|
||||
|
||||
public abstract bool CheckHeaterEnable();
|
||||
|
||||
public abstract bool CheckPickFromPMTemp();
|
||||
|
||||
public abstract bool CheckPlacetoPMTemp();
|
||||
|
||||
public abstract bool SetRotationEnable(bool enable, out string reason);
|
||||
|
||||
public abstract bool CheckRotationEnable();
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using MECF.Framework.Common.Equipment;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.TMs
|
||||
{
|
||||
public interface ITM
|
||||
{
|
||||
bool CheckAtm();
|
||||
bool CheckVacuum();
|
||||
|
||||
bool SetFastVentValve(bool isOpen, out string reason);
|
||||
bool SetSlowVentValve(bool isOpen, out string reason);
|
||||
|
||||
bool SetFastPumpValve(bool isOpen, out string reason);
|
||||
bool SetSlowPumpValve(bool isOpen, out string reason);
|
||||
bool SetTmToLLVent(bool isOpen, out string reason);
|
||||
bool SetTmToUnLoadVent(bool isOpen, out string reason);
|
||||
|
||||
bool SetTurboPumpIsoValve(bool isOpen, out string reason);
|
||||
bool SetTurboPumpBackingValve(bool isOpen, out string reason);
|
||||
|
||||
bool CheckTurboPumpStable();
|
||||
bool CheckTurboPumpOn();
|
||||
bool CheckTurboPumpOff();
|
||||
bool CheckTurboPumpError();
|
||||
bool TurboPumpOn();
|
||||
bool TurboPumpOff();
|
||||
|
||||
bool SetSlitValve(ModuleName module, bool isOpen, out string reason);
|
||||
|
||||
bool CheckSlitValveOpen(ModuleName module);
|
||||
bool CheckSlitValveClose(ModuleName module);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
using Aitex.Core.RT.DataCenter;
|
||||
using Aitex.Core.RT.Device;
|
||||
using Aitex.Core.RT.Device.Unit;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.TMs
|
||||
{
|
||||
public class TM : BaseDevice, IDevice, ITM
|
||||
{
|
||||
public virtual double ChamberPressure { get; }
|
||||
public virtual double ForelinePressure { get; }
|
||||
|
||||
public virtual double PM1Pressure2 { get; }
|
||||
|
||||
public virtual double PM2Pressure2 { get; }
|
||||
|
||||
public TM(string module ) : base(module, module, module, module)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public virtual bool Initialize()
|
||||
{
|
||||
DATA.Subscribe($"{Name}.IsAtm", () => { return CheckAtm(); });
|
||||
DATA.Subscribe($"{Name}.IsVacuum", () => { return CheckVacuum(); });
|
||||
DATA.Subscribe($"{Name}.PM1Pressure2", () => PM1Pressure2);
|
||||
DATA.Subscribe($"{Name}.PM2Pressure2", () => PM2Pressure2);
|
||||
//DATA.Subscribe($"{Name}.ForelinePressure", () => ForelinePressure);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public virtual bool CheckAtm()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckVacuum()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckIsPumping()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool SetFastVentValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetBufferVentValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetSlowVentValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetFastPumpValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetSlowPumpValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetTurboPumpIsoValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetTmToUnLoadVent(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetTmToLLVent(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetTurboPumpBackingValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
public virtual bool SetMfcVentValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
public virtual bool SetAllValvesClose(out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetVentMfc(double flow, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetVentMfcFullFlow(out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckTurboPumpStable()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckTurboPumpOn()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool CheckTurboPumpOff()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool CheckTurboPumpError()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool TurboPumpOn()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool TurboPumpOff()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual IoSlitValve GetSlitValve(ModuleName module)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public virtual bool SetSlitValve(ModuleName module, bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckSlitValveOpen(ModuleName module)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckSlitValveClose(ModuleName module)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckIsoValveClose()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckIsoValveOpen()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void Monitor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void Terminate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.UnLoad
|
||||
{
|
||||
public interface IUnLoad
|
||||
{
|
||||
bool CheckAtm();
|
||||
bool CheckVacuum();
|
||||
|
||||
bool SetFastVentValve(bool isOpen, out string reason);
|
||||
bool SetSlowVentValve(bool isOpen, out string reason);
|
||||
|
||||
bool SetFastPumpValve(bool isOpen, out string reason);
|
||||
bool SetSlowPumpValve(bool isOpen, out string reason);
|
||||
|
||||
bool CheckLidOpen();
|
||||
bool CheckLidClose();
|
||||
|
||||
bool SetLift(bool isUp, out string reason);
|
||||
bool CheckLiftUp();
|
||||
bool CheckLiftDown();
|
||||
|
||||
bool CheckWaferClamped();
|
||||
|
||||
bool CheckWaferUnClamped();
|
||||
|
||||
bool SetWaferClamped(bool clamp, out string reason);
|
||||
|
||||
bool CheckWaferPlaced();
|
||||
bool CheckTrayPlaced();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
using Aitex.Core.RT.DataCenter;
|
||||
using Aitex.Core.RT.Device;
|
||||
using MECF.Framework.Common.Schedulers;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.UnLoad
|
||||
{
|
||||
public class UnLoad : BaseDevice, IDevice, IUnLoad
|
||||
{
|
||||
public virtual double ChamberPressure { get; }
|
||||
|
||||
public virtual bool EnableLift { get; }
|
||||
|
||||
public const int SlotCount = 1;
|
||||
|
||||
public UnLoad(string module) : base(module, module, module, module)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool Initialize()
|
||||
{
|
||||
DATA.Subscribe($"{Name}.IsAtm", () => { return CheckAtm(); });
|
||||
DATA.Subscribe($"{Name}.IsVacuum", () => { return CheckVacuum(); });
|
||||
DATA.Subscribe($"{Name}.ChamberPressure", () => ChamberPressure);
|
||||
DATA.Subscribe($"{Name}.EnableLift", () => { return EnableLift; });
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public virtual bool CheckAtm()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckVacuum()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckTransferPressure()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CheckIsPumping()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool SetFastVentValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckSlowVentValve(bool isOpen)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public virtual bool SetSlowVentValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetFastPumpValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetSlowPumpValve(bool isOpen, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual void Monitor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void Terminate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual bool CheckLidOpen()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckLidClose()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetLift(bool isUp, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckLiftUp()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckLiftDown()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool CheckTrayClamped()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckTrayUnClamped()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool SetTrayClamped(bool clamp, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckWaferClamped()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool CheckWaferUnClamped()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool SetWaferClamped(bool clamp, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckWaferPlaced()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public virtual bool CheckTrayPlaced()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CheckEnableTransfer(EnumTransferType type)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user