28 lines
772 B
C#
28 lines
772 B
C#
using XP.Hardware.MotionControl.Abstractions;
|
|
|
|
namespace XP.Hardware.MotionControl.Implementations
|
|
{
|
|
/// <summary>
|
|
/// 虚拟轴复位实现 | Simulated Axis Reset Implementation
|
|
/// 所有操作为空操作,始终报告复位已完成
|
|
/// All operations are no-ops, always reports reset as done
|
|
/// </summary>
|
|
public class SimulatedAxisReset : IAxisReset
|
|
{
|
|
/// <inheritdoc/>
|
|
public bool IsResetDone => true;
|
|
|
|
/// <inheritdoc/>
|
|
public MotionResult Reset()
|
|
{
|
|
return MotionResult.Ok();
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public void UpdateStatus()
|
|
{
|
|
// 虚拟轴复位无需从 PLC 轮询状态 | No PLC polling needed for simulated axis reset
|
|
}
|
|
}
|
|
}
|