1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using Aitex.Common.Util;
- using Aitex.Core.RT.Device;
- using Aitex.Core.Util;
- using MECF.Framework.Common.Equipment;
- using MECF.Framework.Common.IOCore;
- using MECF.Framework.RT.Core.IoProviders;
- using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.FFUs.AAF;
- using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robots.JEL;
- using MECF.Framework.RT.ModuleLibrary.PMModules;
- namespace JetMainframe
- {
- public class JetMainframeDeviceManager : Singleton<JetMainframeDeviceManager>
- {
- private DeviceController _controller;
- private DeviceManagerBase _device;
- public JetMainframeDeviceManager()
- {
- _controller = new DeviceController();
- _device = new DeviceManagerBase(true);
- }
- public void Initialize()
- {
- string ioProviderPathFile = PathManager.GetCfgDir() + "JetMainframe//IoProviderConfig.xml";
- IoProviderManager.Instance.Initialize(ioProviderPathFile, "System", "io");
- IoManager.Instance.Initialize(PathManager.GetCfgDir() + "JetMainframe//interlockMainFrame.xml");
- _device.Initialize(PathManager.GetCfgDir() + "JetMainframe//DeviceModelMainframe.xml", "JetMainframe", ModuleName.System,
- "System");
- _device.AddCustomDevice(new JelRobot("TM", "TMRobot", "TM"));
- _device.AddCustomDevice(new FfuAAF("TM", "FFU", "TM"));
- _controller.Start(_device);
- }
- public void Reset()
- {
- _controller.Reset();
- }
- public void Terminate()
- {
- _controller.Terminate();
- }
- }
- }
|