12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- 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<RobotBaseDevice>("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);
- }
- }
- }
|