using XP.Hardware.MotionControl.Abstractions.Enums; namespace XP.Hardware.MotionControl.Abstractions { /// /// 安全门策略接口 | Safety Door Strategy Interface /// 定义安全防护门的控制能力 | Defines safety door control capabilities /// public interface ISafetyDoor { /// 门状态 | Door status DoorStatus Status { get; } /// 联锁信号是否有效(true=联锁中,禁止开门)| Interlock active (true=interlocked, door open blocked) bool IsInterlocked { get; } /// 开门 | Open door /// 操作结果 | Operation result MotionResult Open(); /// 关门 | Close door /// 操作结果 | Operation result MotionResult Close(); /// 停止门 | Stop door /// 操作结果 | Operation result MotionResult Stop(); /// 从 PLC 更新状态 | Update status from PLC void UpdateStatus(); } }