using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TeamAAS.Motion.Enums
{
public class MotionEnums
{
// --- 枚举 (Enums) ---
/// 轴的整体状态[reference:16]
public enum AxisState
{
Off, // 未使能
StandStill, // 已使能,静止
DiscreteMotion,// 点位运动
ContinuousMotion, // 连续运动(Jog)
Homing, // 回零中
Error // 错误状态
}
/// 回零模式
public enum HomeMode
{
Default, // 默认模式
LimitSwitch, // 限位开关回零
HomeSwitch, // 原点开关回零
ZPhase // Z相脉冲回零
}
// --- 数据类 (Data Classes) ---
/// 运动参数
public class MotionParams
{
public double Velocity { get; set; }
public double Acceleration { get; set; }
public double Deceleration { get; set; }
public double Jerk { get; set; }
}
/// 轴事件参数基类
public class AxisEventArgs : EventArgs
{
public int AxisNo { get; }
public AxisEventArgs(int axisNo) => AxisNo = axisNo;
}
}
}