更新运动控制相关的Readme、Guidence文件等。
This commit is contained in:
@@ -81,6 +81,8 @@ XP.Hardware.MotionControl/
|
||||
│ ├── ILinearAxis.cs # 直线轴策略接口
|
||||
│ ├── IRotaryAxis.cs # 旋转轴策略接口
|
||||
│ ├── ISafetyDoor.cs # 安全门策略接口
|
||||
│ ├── IJoystick.cs # 实体摇杆接口
|
||||
│ ├── IAxisReset.cs # 轴复位接口
|
||||
│ ├── IMotionSystem.cs # 顶层系统管理接口
|
||||
│ ├── LinearAxisBase.cs # 直线轴抽象基类(含边界检查)
|
||||
│ ├── RotaryAxisBase.cs # 旋转轴抽象基类
|
||||
@@ -96,19 +98,24 @@ XP.Hardware.MotionControl/
|
||||
│ ├── DoorStatusChangedEvent.cs
|
||||
│ ├── DoorInterlockChangedEvent.cs
|
||||
│ ├── GeometryUpdatedEvent.cs
|
||||
│ ├── GeometryApplyRequestEvent.cs
|
||||
│ ├── JoystickActiveEvent.cs
|
||||
│ └── MotionErrorEvent.cs
|
||||
├── Implementations/ # PLC 实现层
|
||||
│ ├── PlcLinearAxis.cs # 基于 PLC 的直线轴实现
|
||||
│ ├── PlcRotaryAxis.cs # 基于 PLC 的旋转轴实现
|
||||
│ ├── PlcSafetyDoor.cs # 基于 PLC 的安全门实现
|
||||
│ ├── PlcJoystick.cs # 基于 PLC 的实体摇杆实现
|
||||
│ ├── PlcAxisReset.cs # 基于 PLC 的轴复位实现
|
||||
│ └── PlcMotionSystem.cs # 运动系统管理器
|
||||
├── Services/ # 业务服务层
|
||||
│ ├── IMotionControlService.cs # 业务服务接口
|
||||
│ ├── MotionControlService.cs # 服务实现(轮询、事件、日志)
|
||||
│ └── GeometryCalculator.cs # 几何计算器
|
||||
├── ViewModels/ # 视图模型
|
||||
│ ├── AxisControlViewModel.cs # AxisControlView ViewModel
|
||||
│ └── MotionControlViewModel.cs # MotionControlView ViewModel
|
||||
│ ├── AxisControlViewModel.cs # AxisControlView ViewModel
|
||||
│ ├── MotionControlViewModel.cs # MotionControlView ViewModel
|
||||
│ └── MotionDebugWindowViewModel.cs # MotionDebugWindow ViewModel
|
||||
├── Config/ # 配置层
|
||||
│ ├── MotionControlConfig.cs # 配置实体
|
||||
│ ├── ConfigLoader.cs # 配置加载器
|
||||
@@ -136,7 +143,7 @@ XP.Hardware.MotionControl/
|
||||
| 接口 | 用途 | 注册方式 |
|
||||
|------|------|----------|
|
||||
| `IMotionControlService` | 业务控制(移动、停止、回零、Jog、开关门、几何计算) | 单例 |
|
||||
| `IMotionSystem` | 底层状态读取(轴位置、状态、门状态) | 单例 |
|
||||
| `IMotionSystem` | 底层状态读取(轴位置、状态、门状态、摇杆状态、轴复位) | 单例 |
|
||||
| `MotionControlConfig` | 配置参数(轴范围、几何原点、轮询周期) | 实例 |
|
||||
| `GeometryCalculator` | 几何正算/反算工具 | 单例 |
|
||||
|
||||
@@ -148,6 +155,8 @@ XP.Hardware.MotionControl/
|
||||
| `DoorStatusChangedEvent` | `DoorStatus` | 门状态变化 |
|
||||
| `DoorInterlockChangedEvent` | `bool` | 门联锁状态变化(true=已联锁, false=未联锁) |
|
||||
| `GeometryUpdatedEvent` | `GeometryData(FOD, FDD, Magnification)` | 几何参数更新(每轮询周期) |
|
||||
| `GeometryApplyRequestEvent` | `GeometryApplyRequestData(SourceZTarget, DetectorZTarget, ...)` | 几何反算结果填入请求(DebugWindow → MotionControlViewModel) |
|
||||
| `JoystickActiveEvent` | `bool` | 实体摇杆激活状态变化(true=激活, false=未激活) |
|
||||
| `MotionErrorEvent` | `MotionErrorData(AxisId, ErrorMessage)` | 轴进入 Error/Alarm 状态 |
|
||||
|
||||
---
|
||||
@@ -192,4 +201,4 @@ PLC 信号名称硬编码在 `MotionSignalNames.cs` 中,信号定义在 `PlcAd
|
||||
|
||||
---
|
||||
|
||||
**最后更新 | Last Updated**: 2026-05-08
|
||||
**最后更新 | Last Updated**: 2026-05-11
|
||||
|
||||
Reference in New Issue
Block a user