123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- using System.Collections.Generic;
- using Aitex.Common.Util;
- using Aitex.Core.RT.DataCenter;
- using Aitex.Core.RT.Event;
- using Aitex.Core.RT.Log;
- using Aitex.Core.RT.OperationCenter;
- using Aitex.Core.Util;
- using MECF.Framework.Common.Equipment;
- using Virgo_DCommon;
- namespace Virgo_DRT.HostWrapper
- {
- class FaManager : FaHost, IHostCallback
- {
- private const string PROCESS_START_INQUIRY = "PROCESS_START_INQUIRY";
- public void Initialize()
- {
- base.Initialize(this, PathManager.GetCfgDir()+ "ClusterGemModel.xml");
- OP.Subscribe("FACommand", InvokeFaCommand );
- DATA.Subscribe(ModuleNameString.System, DataName.Fa_CommunicationStatus, () => FaCommunicationState);
- DATA.Subscribe(ModuleNameString.System, DataName.Fa_ControlStatus, () => FaControlState);
- DATA.Subscribe(ModuleNameString.System, DataName.Fa_ControlSubStatus, () => FaControlSubState);
- DATA.Subscribe(ModuleNameString.System, DataName.Fa_SpoolingState, () => SpoolingState);
- DATA.Subscribe(ModuleNameString.System, DataName.Fa_SpoolingActual, () => SpoolingActual);
- DATA.Subscribe(ModuleNameString.System, DataName.Fa_SpoolingTotal, () => SpoolingTotal);
- DATA.Subscribe(ModuleNameString.System, DataName.Fa_SpoolingFullTime, () => SpoolingFullTime);
- DATA.Subscribe(ModuleNameString.System, DataName.Fa_SpoolingStartTime, () => SpoolingStartTime);
- DATA.Subscribe(ModuleNameString.System, DataName.Fa_IsSpoolingEnable, () => IsSpoolingEnable);
- EV.Subscribe(new EventItem(PROCESS_START_INQUIRY));
- }
- private bool InvokeFaCommand(string arg1, object[] arg2)
- {
- Invoke(arg2[0].ToString(), null);
- return true;
- }
-
- public string GetSvidValue(string svName)
- {
- object data = DATA.Poll(svName);
- if (data != null)
- {
- return data.ToString();
- }
- return "";
- }
- public List<string> GetListSvidValue(string svName)
- {
- List<string> result = new List<string>();
- foreach (var VARIABLE in result)
- {
-
- }
- return result;
- }
- bool IHostCallback.Start(out string reason)
- {
- reason = "";
- return true;
- }
- public bool Pause(out string reason)
- {
- reason = "";
- return true;
- }
- public bool Resume(out string reason)
- {
- reason = "";
- return true;
- }
- public bool Abort(out string reason)
- {
- reason = "";
- return true;
- }
- public bool LotComplete(out string reason)
- {
- reason = "";
- return true;
- }
- public bool Unclamp(out string reason)
- {
- reason = "";
- return true;
- }
- public bool ReadID(out string reason)
- {
- reason = "";
- return true;
- }
- public bool Unload(out string reason)
- {
- reason = "";
- return true;
- }
- public bool ScanSlot(string portId, out string reason)
- {
- reason = "";
- //int index = 0;
- //ModuleName[] modules = Singleton<DeviceManager6LP>.Instance.GetAllLoadPortName() ;
- //if (!int.TryParse(portId, out index) || index> modules.Length || index<1)
- //{
- // LOG.Write("Port id from host is not valid, " + portId);
- // return false;
- //}
- //OP.DoOperation("MapWafer", modules[index-1].ToString());
- //reason = "";
- return true;
- }
- public bool PPSelect(string recipeId, out string reason)
- {
- //JobManager.Instance.SelectRecipe(recipeId);
- reason = "";
- return true;
- }
- //public bool StartTransfer(HostRecipe recipe, out string reason)
- //{
- // EV.Notify(PROCESS_START_INQUIRY);
- // OP.DoOperation("StartRecipe", "HostRecipe", recipe);
- // reason = "";
- // return true;
- //}
- }
- }
|