Files
C# 开发 bcddcd0bed 交运行工位桩:三口契约、运行服务、六态 VM、跨线程切 UI。
采集/PLC/Inspect 均为桩,验收 1–8 可测。不部署现场。
2026-08-19 01:16:32 +00:00

28 lines
884 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# VisionHost 运行工位桩
本迭代只交操作员运行壳(验收 1–7)。采集 / PLC / Inspect 均为桩,不做真检测、不改主干、不部署。
## 工程
- `VisionHost.Contracts` 三口:`IFrameSource` / `IInspectService` / `IPlcIo`
- `VisionHost.Runtime` 运行服务 + `RunViewModel`(绑定名对齐 WPF 骨架)
- `VisionHost.Runtime.Tests` 运行壳用例
- `VisionHost.App` 操作员运行页(WPF,hex 转笔刷)
可点界面:`src/VisionHost.App`Windows)。`LastResultBrush`/`AlarmBrush``HexToBrushConverter`
## 行为
- 确认启动才清零并开跑;停机保持计数
- 未连接 / 重连中:不弹确认,`CanStart=false`
- Inspect 桩:14 OK,第 5 拍 `NG STUB`,拍号在算法桩内计
- 六态由运行服务推,VM 不自判
## 构建
```
export PATH="$HOME/.dotnet:$PATH"
dotnet test VisionHost.sln
```