1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- using System;
- using System.Collections.Generic;
- using System.Runtime.Remoting.Messaging;
- namespace Venus_Core
- {
- public class DeviceName
- {
- //Eefem
- public const string EfemRobot = "EfemRobot";
- }
- public enum EfemOperation
- {
- Home,
- //HomeLP,
- Pick,
- Place,
- Goto,
- Extend,
- Retract,
- Align,
- Map,
- Light,
- TurnOffBuzzer,
- //SwitchOnBuzzerAndRed,
- GetWaferInfo,
- Orgsh,
- Lift,
- SigStatus,
- Ready,
- Abort,
- ClearError,
- PmPinUp,
- PmPinDown,
- Load,
- Unload,
- CarrierId,
- Dock,
- Undock,
- Clamp,
- Unclamp,
- SetThickness,
- StateTrack,
- //WriteCarrierId,
- Grip,
- EmsStop,
- Swap
- }
- 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"},
- };
- public static EfemOperation ToOperation(string str)
- {
- foreach (var item in OperationString)
- {
- if (item.Value == str)
- {
- return item.Key;
- }
- }
- return default(EfemOperation);
- }
- }
- }
|