| | |
| | | } |
| | | } |
| | | |
| | | static Dictionary<int, object> axisMoveLockDict = new Dictionary<int, object>(); |
| | | |
| | | /// <summary> |
| | | /// 轴运动开始时的检测,true:有冲突 不可继续执行 false:无冲突,可继续执行 |
| | | /// </summary> |
| | | public event OnAxisStartToCheckDelegate OnAxisStartToCheckConfliction; |
| | | /// <summary> |
| | | /// 暂停(线程同步事件) |
| | | /// </summary> |
| | | Dictionary<int, ManualResetEvent> axisImmediatePauseHandleDict = new Dictionary<int, ManualResetEvent>(); |
| | | Dictionary<int, CancellationTokenSource> axisMoveCancelDict = new Dictionary<int, CancellationTokenSource>(); |
| | | /// <summary> |
| | | /// 运行过程中的线程等待 |
| | | /// </summary> |
| | | private Dictionary<int, ManualResetEvent> runningEventDic = new Dictionary<int, ManualResetEvent>(); |
| | | private Dictionary<int, AutoResetEvent> axisMovingHandleDict = new Dictionary<int, AutoResetEvent>(); |
| | | private ConcurrentDictionary<int, int> axisDestination = new ConcurrentDictionary<int, int>(); |
| | | |
| | | private ObservableCollection<int> _commandAxisList = new ObservableCollection<int>(); |
| | | public Action<bool> CommandAxisCountChangedAction = null; |
| | | private Dictionary<int, VelocityPara> velIndexDict = new Dictionary<int, VelocityPara>(); |
| | | ManualResetEvent _pauseHandle = new ManualResetEvent(true); |
| | | |
| | | static object moveLock = new object(); |
| | | /// <summary> |
| | | /// 是否复位标志 |
| | |
| | | { |
| | | InitialMotionCard(); |
| | | } |
| | | |
| | | |
| | | protected override void Pause() |
| | | { |