| | |
| | | //[Description("IsUseWarning:是否启用报警")] |
| | | //public bool IsUseWarning { get; set; } = false; |
| | | |
| | | //[Category("暂停配置")] |
| | | //[DisplayName("是否启用立即暂停")] |
| | | //[Description("IsImmediatePause:是否启用立即暂停")] |
| | | //public bool IsImmediatePause { get; set; } = false; |
| | | [Category("暂停配置")] |
| | | [DisplayName("是否启用立即暂停")] |
| | | [Description("IsImmediatePause:是否启用立即暂停")] |
| | | public bool IsImmediatePause { get; set; } = false; |
| | | |
| | | //[Category("暂停配置")] |
| | | //[DisplayName("轴位置处于区间内时适用的暂停操作")] |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 板卡运动状态对象 |
| | | /// </summary> |
| | | public class AxisMovingStatus : IComplexDisplay |
| | | { |
| | | /// <summary> |
| | | /// 轴索引 |
| | | /// </summary> |
| | | public int AxisIndex { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 轴名称 |
| | | /// </summary> |
| | | public string AxisName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 当前位置 |
| | | /// </summary> |
| | | public int CurPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 目的地 |
| | | /// </summary> |
| | | public int Destination { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 当前速度参数 |
| | | /// </summary> |
| | | public double CurVelocity { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 规划速度参数 |
| | | /// </summary> |
| | | public double PrfVelocity { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 轴状态 |
| | | /// </summary> |
| | | public int AxisStatus { get; set; } |
| | | |
| | | public string GetDisplayText() |
| | | { |
| | | return $"轴{AxisIndex}:{AxisName}-当前:{CurPosition}-规划:{Destination}"; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 运动对象 |
| | | /// </summary> |
| | | public class MovingOption : INotifyPropertyChanged, IComplexDisplay |
| | |
| | | } |
| | | } |
| | | |
| | | private MotorMoveMode moveMode = MotorMoveMode.Normal; |
| | | private MotionMode moveMode = MotionMode.Normal; |
| | | [Category("运动配置")] |
| | | [DisplayName("运动模式")] |
| | | [Description("MoveMode:运动模式")] |
| | | public MotorMoveMode MoveMode |
| | | public MotionMode MoveMode |
| | | { |
| | | get => moveMode; |
| | | set |