|
@@ -7,22 +7,25 @@ using Aitex.Core.RT.Event;
|
|
|
using Aitex.Core.Util;
|
|
|
using MECF.Framework.Common.Equipment;
|
|
|
using FurnaceRT.FAs;
|
|
|
+using Aitex.Core.Common;
|
|
|
+using FabConnect.SecsGemInterface.Common;
|
|
|
+using MECF.Framework.Common.SubstrateTrackings;
|
|
|
|
|
|
namespace FurnaceRT.Equipments.PMs
|
|
|
{
|
|
|
public class RecipeFACallback : IRecipeFACallback
|
|
|
{
|
|
|
- private const string PM1RecipeStart = "PM1RecipeStart";
|
|
|
- private const string PM1RecipeComplete = "PM1RecipeComplete";
|
|
|
- private const string PM1RecipeStepStart = "PM1RecipeStepStart";
|
|
|
- private const string PM1RecipeStepEnd = "PM1RecipeStepEnd";
|
|
|
- private const string PM1RecipeFailed = "PM1RecipeFailed";
|
|
|
+ private const string PM1RecipeStart = "RecipeStart";
|
|
|
+ private const string PM1RecipeComplete = "RecipeComplete";
|
|
|
+ private const string PM1RecipeStepStart = "RecipeStepStart";
|
|
|
+ private const string PM1RecipeStepEnd = "RecipeStepEnd";
|
|
|
+ private const string PM1RecipeFailed = "RecipeFailed";
|
|
|
|
|
|
- private const string PM2RecipeStart = "PM2RecipeStart";
|
|
|
- private const string PM2RecipeComplete = "PM2RecipeComplete";
|
|
|
- private const string PM2RecipeStepStart = "PM2RecipeStepStart";
|
|
|
- private const string PM2RecipeStepEnd = "PM2RecipeStepEnd";
|
|
|
- private const string PM2RecipeFailed = "PM2RecipeFailed";
|
|
|
+ private const string PM2RecipeStart = "RecipeStart";
|
|
|
+ private const string PM2RecipeComplete = "RecipeComplete";
|
|
|
+ private const string PM2RecipeStepStart = "RecipeStepStart";
|
|
|
+ private const string PM2RecipeStepEnd = "RecipeStepEnd";
|
|
|
+ private const string PM2RecipeFailed = "RecipeFailed";
|
|
|
|
|
|
private Dictionary<ModuleName, string> PMRecipeStart = new Dictionary<ModuleName, string>()
|
|
|
{
|
|
@@ -60,11 +63,11 @@ namespace FurnaceRT.Equipments.PMs
|
|
|
EV.Subscribe(new EventItem("Event", PM1RecipeStepEnd, PM1RecipeStepEnd));
|
|
|
EV.Subscribe(new EventItem("Event", PM1RecipeFailed, PM1RecipeFailed));
|
|
|
|
|
|
- EV.Subscribe(new EventItem("Event", PM2RecipeStart, PM2RecipeStart));
|
|
|
- EV.Subscribe(new EventItem("Event", PM2RecipeComplete, PM2RecipeComplete));
|
|
|
- EV.Subscribe(new EventItem("Event", PM2RecipeStepStart, PM2RecipeStepStart));
|
|
|
- EV.Subscribe(new EventItem("Event", PM2RecipeStepEnd, PM2RecipeStepEnd));
|
|
|
- EV.Subscribe(new EventItem("Event", PM2RecipeFailed, PM2RecipeFailed));
|
|
|
+ //EV.Subscribe(new EventItem("Event", PM2RecipeStart, PM2RecipeStart));
|
|
|
+ //EV.Subscribe(new EventItem("Event", PM2RecipeComplete, PM2RecipeComplete));
|
|
|
+ //EV.Subscribe(new EventItem("Event", PM2RecipeStepStart, PM2RecipeStepStart));
|
|
|
+ //EV.Subscribe(new EventItem("Event", PM2RecipeStepEnd, PM2RecipeStepEnd));
|
|
|
+ //EV.Subscribe(new EventItem("Event", PM2RecipeFailed, PM2RecipeFailed));
|
|
|
|
|
|
}
|
|
|
|
|
@@ -91,10 +94,31 @@ namespace FurnaceRT.Equipments.PMs
|
|
|
public void RecipeStart(string module, string recipeName)
|
|
|
{
|
|
|
ModuleName moduleName = ModuleHelper.Converter(module);
|
|
|
- EV.Notify(PMRecipeStart[moduleName], new SerializableDictionary<string, string>()
|
|
|
+ var wafers = WaferManager.Instance.GetWafers(ModuleName.PM1);
|
|
|
+ List<string> fdcwafers = new List<string>();
|
|
|
+ if (wafers != null)
|
|
|
+ {
|
|
|
+ foreach (var wafer in wafers)
|
|
|
+ {
|
|
|
+ if (wafer.WaferType == WaferType.P || wafer.WaferType == WaferType.M1 || wafer.WaferType == WaferType.M2)
|
|
|
+ {
|
|
|
+ if (!(fdcwafers.Contains(wafer.OriginCarrierID)))
|
|
|
+ {
|
|
|
+ fdcwafers.Add(wafer.OriginCarrierID);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ SECsDataItem _fdccridlst = new SECsDataItem(SECsFormat.List);
|
|
|
+ foreach (var fdcid in fdcwafers)
|
|
|
+ {
|
|
|
+ _fdccridlst.Add("CRID", fdcid, SECsFormat.Ascii);
|
|
|
+ }
|
|
|
+ EV.Notify(PMRecipeStart[moduleName], new SerializableDictionary<string, object>()
|
|
|
{
|
|
|
{DVIDName.RecipeID, recipeName},
|
|
|
{DVIDName.StationName, module},
|
|
|
+ {"ProcessCarrierIDList", _fdccridlst},
|
|
|
});
|
|
|
}
|
|
|
|