| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 | using System;using System.Collections.Generic;using System.Runtime.Remoting.Messaging;namespace PunkHPX8_Core{    public class DeviceName    {        //Eefem        public const string EfemRobot = "EfemRobot";    }    public enum EfemOperation    {        None,        Home,        //HomeLP,        Pick,        Place,        PickExtend,        PickRetract,        PlaceExtend,        PlaceRetract,        Goto,        GotoMap,        RequestMapResult,        Extend,        Retract,        Align,        AlignWaferSize,        AlignFlatType,        AlignDistance,        Light,        TurnOffBuzzer,        //SwitchOnBuzzerAndRed,        GetWaferInfo,        Orgsh,        Lift,        SigStatus,        Ready,        Abort,        ClearError,        PmPinUp,        PmPinDown,        Load,        Unload,        CarrierId,        Dock,        Undock,        Map,        DummyMap,        Clamp,        Unclamp,        SetThickness,        StateTrack,        //WriteCarrierId,        Grip,        EmsStop,        Swap,        Size,        Speed,        Vacuum,        PowerOn,        Error,        RobotCycle,        Pause,        Resume    }    public class EfemConstant    {        public static readonly Dictionary<EfemOperation, string> OperationString = new Dictionary<EfemOperation, string>()        {            { EfemOperation.Ready,          "READY" },            { EfemOperation.Home,           "INIT" },            { EfemOperation.Orgsh,          "ORGSH" },            { EfemOperation.ClearError,     "ERROR"},            { EfemOperation.Map,            "WAFSH" },            { EfemOperation.GetWaferInfo,   "MAPDT" },            { EfemOperation.Pick,           "LOAD" },            { EfemOperation.Place,          "UNLOAD" },            { EfemOperation.Extend,         "MPNT" },            { EfemOperation.Align,          "ALIGN" },            { EfemOperation.SigStatus,      "SIGSTAT" },            { EfemOperation.Lift,           "LIFT" },            { EfemOperation.Light,          "SIGOUT" },            { EfemOperation.Abort,           "ABORT" },            { EfemOperation.Goto,           "GOTO" },            { EfemOperation.Load,           "OPEN" },            { EfemOperation.Unload,         "CLOSE" },            { EfemOperation.CarrierId,      "CSTID" },            { EfemOperation.Dock,           "DOCK" },            { EfemOperation.Undock,         "UNDOCK" },            { EfemOperation.Clamp,          "LOCK" },            { EfemOperation.Unclamp,        "UNLOCK" },            { EfemOperation.SetThickness,   "THICKNESS" },            { EfemOperation.StateTrack,     "STATE" },            { EfemOperation.Grip,           "CLAMP" },            { EfemOperation.EmsStop,        "EMS"},            { EfemOperation.PickExtend,     "LOAD_EXTEND"},            { EfemOperation.PickRetract,    "LOAD_RETRACT"},            { EfemOperation.PlaceExtend,    "UNLOAD_EXTEND"},            { EfemOperation.PlaceRetract,   "UNLOAD_RETRACT"},            { EfemOperation.Size,   "SIZE"},            {EfemOperation.Speed,"SPEED"},            {EfemOperation.Vacuum,"VAC"},            {EfemOperation.PowerOn,"SERVOS"},            {EfemOperation.Pause,"PAUSE"},            {EfemOperation.Resume,"RESUME"}        };        public static EfemOperation ToOperation(string str)        {            foreach (var item in OperationString)            {                if (item.Value == str)                {                    return item.Key;                }            }            return default(EfemOperation);        }    }    public enum ChillerType    {     Chiller,    InnerChiller,    OuterChiller,    TopChiller    }}
 |