using Aitex.Core.RT.Device; using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robots.RobotBase; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace athosRT.Devices.EFEM { public class RobotServerModule : IServerModule, IData, IFunction { protected RobotBaseDevice _robot = (RobotBaseDevice)null; public bool IsLinkOk => this._robot != null; public bool Busy => this._robot.IsBusy; public bool Error => this._robot.IsError; public bool Disabled { get; set; } public bool Initialized { get; set; } public bool OriginSearched { get; set; } public bool InUsed { get; set; } public string Name { get; set; } public RobotBaseDevice GetDevice() => this._robot; public RobotServerModule(string name) { this.Name = name; this._robot = DEVICE.GetDevice("Robot"); } public bool Init(out string reason) { reason = (string)null; return this._robot.Init((object[])null); } public bool Home(out string reason) { reason = (string)null; return this._robot.Home((object[])null); } } }