12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- using Aitex.Core.Common;
- using Aitex.Core.RT.DataCenter;
- using Aitex.Core.RT.OperationCenter;
- using MECF.Framework.Common.Equipment;
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using OP = Common.OP.OP;
- namespace Common.WcfService.Efem
- {
- public class EfemService : IEfemService
- {
- public bool MoveWafer(ModuleName source, int source_slot, ModuleName desitation, int desitation_slot, WaferSize size)
- {
- OP.OP.DoOperation("MoveWafer", new object[] { source, source_slot, desitation, desitation_slot, size });
- return true;
- }
- public bool CreateWafer(ModuleName module, int slot, WaferSize size)
- {
- OP.OP.DoOperation("CreateWafer",new object[] { module, slot, (int)size});
- return true;
- }
- public bool CreateLPSingleWafer(ModuleName module, int slot, WaferSize size)
- {
- OP.OP.DoOperation("CreateLPSingleWafer", new object[] { module, slot, (int)size });
- return true;
- }
- public bool CreateBFSingleWafer(ModuleName module, int slot, WaferSize size)
- {
- OP.OP.DoOperation("CreatebufferSingleWafer", new object[] { module, slot, (int)size });
- return true;
- }
-
- public bool DeleteWafer(ModuleName module, int slot, WaferSize size)
- {
- OP.OP.DoOperation("DeleteWafer", new object[] { module, slot, (int)size });
- return true;
- }
- public string EfemCmd(string module,params object[] args)
- {
- Trace.WriteLine($"将要发出信息:{module}");
- //OP.OP.Subscribe("EFEM.HOME1", (cmd, args) => { Trace.WriteLine("OP收到Home1"); return true; });
- OP.OP.DoOperation($"{module}" ,args);
- return ".";
- }
- public string GetRTstate()
- {
- return "GetRTstate";
- }
- public WaferInfo[] GetWafer(ModuleName module)
- {
- //获取Wafer信息
- Trace.WriteLine("正在获取Wafer信息");
- return (WaferInfo[])DATA.Poll(module.ToString()+ ".WaferInfos");
- }
- public string SendRTMsg(string RTMsg)
- {
- return "SendRTMsg";
- }
- public bool ClearLog()
- {
- OP.OP.DoOperation("ClearLogList");
- return true;
- }
- public bool LoadPortCmd(string LoadPortID, string LoadMsg)
- {
- Trace.WriteLine($"将要发出信息给LoadPort{LoadPortID}:{LoadMsg}");
- OP.OP.DoOperation($"{LoadPortID}.{LoadMsg}");
- return true;
- }
- }
- }
|