AlignerBase.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Text.RegularExpressions;
  6. using System.Threading.Tasks;
  7. using Aitex.Core.RT.DataCenter;
  8. using Aitex.Core.RT.Device;
  9. using Aitex.Core.RT.Event;
  10. using Aitex.Core.RT.Log;
  11. using Aitex.Core.Util;
  12. using Aitex.Sorter.Common;
  13. using MECF.Framework.Common.SubstrateTrackings;
  14. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robot;
  15. namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Aligners
  16. {
  17. public class AlignerBase : BaseDevice, IDevice
  18. {
  19. public bool IsBusy
  20. {
  21. get { return true; }
  22. }
  23. public bool IsError { get; set; }
  24. public AlignerBase(string module, string name, string display, string deviceId)
  25. : base(module, name, display, deviceId)
  26. {
  27. }
  28. public virtual bool Initialize()
  29. {
  30. WaferManager.Instance.SubscribeLocation(Module, 1);
  31. return true;
  32. }
  33. public virtual void Terminate()
  34. {
  35. }
  36. public virtual void Monitor()
  37. {
  38. }
  39. public virtual void Reset()
  40. {
  41. IsError = false;
  42. }
  43. public virtual bool Home(out string reason)
  44. {
  45. reason = string.Empty;
  46. return true;
  47. }
  48. public virtual bool Clear(out string reason)
  49. {
  50. reason = string.Empty;
  51. return true;
  52. }
  53. public virtual bool Grip(Hand hand, out string reason)
  54. {
  55. reason = string.Empty;
  56. return true;
  57. }
  58. public virtual bool Release(Hand hand, out string reason)
  59. {
  60. reason = string.Empty;
  61. return true;
  62. }
  63. public virtual bool LiftUp(out string reason)
  64. {
  65. reason = string.Empty;
  66. return true;
  67. }
  68. public virtual bool LiftDown(out string reason)
  69. {
  70. reason = string.Empty;
  71. return true;
  72. }
  73. public virtual bool Stop(out string reason)
  74. {
  75. reason = string.Empty;
  76. return true;
  77. }
  78. public virtual bool Align(double angle, out string reason)
  79. {
  80. reason = string.Empty;
  81. return true;
  82. }
  83. public virtual bool QueryState(out string reason)
  84. {
  85. reason = string.Empty;
  86. return true;
  87. }
  88. public virtual void OnError()
  89. {
  90. IsError = true;
  91. }
  92. public virtual bool QueryWaferPresence(out string reason)
  93. {
  94. reason = string.Empty;
  95. return true;
  96. }
  97. public virtual void OnAligned()
  98. {
  99. }
  100. }
  101. }