12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace StageController
- {
- public interface IMotion
- {
- /// <summary>
- /// 不进长度
- /// </summary>
- double Stepping { get; set; }
- int Speed
- {
- get; set;
- }
- /// <summary>
- /// 反转运动方向
- /// </summary>
- bool Reversed { get; set; }
- /// <summary>
- /// 脉冲步数
- /// </summary>
- int Step { get; set; }
- double Actual { get; }
- /// <summary>
- /// M3H--> 0:停机自由,1:停机锁死,2:正向连续,3:反向连续,4:正向步进,5:反向步进
- /// </summary>
- int State { get; set; }
- /// <summary>
- /// 限位状态
- /// </summary>
- int Limit { get; set; }
- /// <summary>
- /// 长度移动
- /// </summary>
- /// <param name="x">脉冲数</param>
- void Move(int x, object arg = null);
- /// <summary>
- /// 长度移动
- /// </summary>
- /// <param name="x">微米 数</param>
- void Move(double x, object arg = null);
- /// <summary>
- /// 连续运动
- /// </summary>
- void Slide(bool isPositive, object arg = null);
- void Stop(object arg = null);
- void ResetPosition();
- }
- }
|