IMotion.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace StageController
  7. {
  8. public interface IMotion
  9. {
  10. /// <summary>
  11. /// 不进长度
  12. /// </summary>
  13. double Stepping { get; set; }
  14. int Speed
  15. {
  16. get; set;
  17. }
  18. /// <summary>
  19. /// 反转运动方向
  20. /// </summary>
  21. bool Reversed { get; set; }
  22. /// <summary>
  23. /// 脉冲步数
  24. /// </summary>
  25. int Step { get; set; }
  26. double Actual { get; }
  27. /// <summary>
  28. /// M3H--> 0:停机自由,1:停机锁死,2:正向连续,3:反向连续,4:正向步进,5:反向步进
  29. /// </summary>
  30. int State { get; set; }
  31. /// <summary>
  32. /// 限位状态
  33. /// </summary>
  34. int Limit { get; set; }
  35. /// <summary>
  36. /// 长度移动
  37. /// </summary>
  38. /// <param name="x">脉冲数</param>
  39. void Move(int x, object arg = null);
  40. /// <summary>
  41. /// 长度移动
  42. /// </summary>
  43. /// <param name="x">微米 数</param>
  44. void Move(double x, object arg = null);
  45. /// <summary>
  46. /// 连续运动
  47. /// </summary>
  48. void Slide(bool isPositive, object arg = null);
  49. void Stop(object arg = null);
  50. void ResetPosition();
  51. }
  52. }