123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- using System;
- using System.Collections.Generic;
- using Aitex.Core.Common;
- using Aitex.Sorter.Common;
- using MECF.Framework.Common.Equipment;
- using Virgo_DCommon;
- namespace Virgo_DRT.Device
- {
- interface IEfemMessage : IHardwareMessage
- {
- EfemOperation Operation { get; set; }
- }
- interface IEfem
- {
- void HomeAll();
- void Home(ModuleName mod);
- void ClearError();
- void Pick(MoveParam mp);
- void Place(MoveParam mp);
- void Extend(ExtendParam ep);
- void Retract(ExtendParam ep);
- void Map(ModuleName mod);
- void SetPinUp(ModuleName mod);
- void Align(ModuleName mod, float delayTime, WaferSize size);
- void SetLamp(LightType light, LightStatus status);
- }
- interface IAlign
- {
- void Lift();
- void Align(WaferSize size);
- }
- interface ILoadport
- {
- ModuleName Module { get; set; }
- //DoorState DoorStatus { get; set; }
- DeviceState Status { get; set; }
- bool HasCassette { get; set; }
- bool IsMapped { get; set; }
- WaferStatus[] WaferInfo { get; set; }
- void Home();
- void Map();
- void SetOnline(bool on);
- }
- interface IMessageHandler
- {
- bool IsCompleted { get; }
- event EventHandler<EfemActionArgs> CommandUpdated;
- event EventHandler<EfemEventArgs> EventUpdated;
- event EventHandler<EfemErrorArgs> ErrorOccurred;
- void Send(IEfemMessage msg);
- //void Send(string str);
- void ReceiveMessage(string str);
- }
- class EfemActionArgs : EventArgs
- {
- public ushort ID { get; set; }
- public ModuleName Module { get; set; }
- public EfemOperation CommandType { get; set; }
- public ActionStatus Status { get; set; }
- public string Data { get; set; }
- }
- class EfemEventArgs : EventArgs
- {
- public string EvtStr { get; set; }
- public ModuleName Module { get; set; }
- public EfemOperation CommandType { get; set; }
- public IList<string> DataList { get; set; }
- }
- class EfemErrorArgs : EventArgs
- {
- public string Factor { get; set; }
- public string Description { get; set; }
- public ModuleName Module { get; set; }
- public string Message { get; set; }
- }
- }
|