123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- using Aitex.Core.RT.Device;
- using Aitex.Core.RT.SCCore;
- using Aitex.Core.Util;
- using JetEfemLib.Aligners;
- using JetEfemLib.Efems;
- using JetEfemLib.LPs;
- using JetEfemLib.SignalTowers;
- using static JetEfemLib.Efems.EfemModule;
- namespace JetEfemLib
- {
- public class JetEfemDeviceManager : Singleton<JetEfemDeviceManager>
- {
- private DeviceController _controller;
- private DeviceManagerBase _device;
- public JetEfemDeviceManager()
- {
- _controller = new DeviceController();
- _device = new DeviceManagerBase(true);
- }
- public void Initialize()
- {
- if (SC.GetValue<int>("EFEM.EfemType") == (int)EfemType.FutureEfem2P)
- {
- _device.AddCustomModuleDevice(new FutureEfem());
- _device.AddCustomDevice(new FutureEfemLoadPort("LP1", "LP1", "System.EFEM"));
- _device.AddCustomDevice(new FutureEfemLoadPort("LP2", "LP2", "System.EFEM"));
- _device.AddCustomDevice(new FutureEfemLoadPort("LP3", "LP3", "System.EFEM"));
- _device.AddCustomModuleDevice(new JetEfemRobot("EfemRobot", "EfemRobot", "System.EFEM"));
- }
- else if (SC.GetValue<int>("EFEM.EfemType") == (int)EfemType.JetEfem)
- {
- _device.AddCustomModuleDevice(new JetEfem());
- _device.AddCustomDevice(new JetEfemLoadPort("LP1", "LP1", "System.EFEM"));
- _device.AddCustomDevice(new JetEfemLoadPort("LP2", "LP2", "System.EFEM"));
- _device.AddCustomDevice(new JetEfemLoadPort("LP3", "LP3", "System.EFEM"));
- _device.AddCustomModuleDevice(new JetEfemRobot("EfemRobot", "EfemRobot", "System.EFEM"));
- }
- else if (SC.GetValue<int>("EFEM.EfemType") == (int)EfemType.FutureEfem3P)
- {
- _device.AddCustomModuleDevice(new FutureEfem3P());
- _device.AddCustomDevice(new FutureEfemLoadPort3P("LP1", "LP1", "System.EFEM"));
- _device.AddCustomDevice(new FutureEfemLoadPort3P("LP2", "LP2", "System.EFEM"));
- _device.AddCustomDevice(new FutureEfemLoadPort3P("LP3", "LP3", "System.EFEM"));
- _device.AddCustomModuleDevice(new JetEfemRobot("EfemRobot", "EfemRobot", "System.EFEM"));
- }
- _device.AddCustomDevice(new FutureBuffer("LLA", "LLA", "System.EFEM"));
- _device.AddCustomDevice(new FutureBuffer("LLB", "LLB", "System.EFEM"));
- _device.AddCustomModuleDevice(new JetEfemSignalTower("System", "SignalTower", "System.EFEM"));
- _device.AddCustomModuleDevice(new FutureAligner("Aligner1", "Aligner1", "System.EFEM"));
- _device.AddCustomModuleDevice(new FutureAligner("Aligner2", "Aligner2", "System.EFEM"));
- _device.AddCustomModuleDevice(new FutureAligner("Cooling1", "Cooling1", "System.EFEM"));
- _device.AddCustomModuleDevice(new FutureAligner("Cooling2", "Cooling2", "System.EFEM"));
- _controller.Start(_device);
- }
- public void Reset()
- {
- _controller.Reset();
- }
- public void Terminate()
- {
- _controller.Terminate();
- }
- }
-
-
- }
|