Files
cnc_wams/web-rtcp-5axis-xyzbc-trt-sim-plan/working/14-20260706-xyzbc-trt-暂停按钮严格对标.md
2026-07-07 09:40:33 -04:00

20 lines
1.1 KiB
Markdown
Raw 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.
# 2026-07-06 xyzbc-trt 暂停按钮严格对标
## 用户提问
严格对标“暂停”按钮的逻辑。一直就不好用。
## 执行目标
1. 对照本地 LinuxCNC AXIS 的 `task_pause``task_resume``task_pauseresume` 源码语义,明确暂停按钮应有行为。
2. 复查 Web 仿真中工具栏暂停按钮、菜单 Pause、菜单 Resume、底层 `PAUSE/RESUME/PAUSE_RESUME` 的分发与状态门禁。
3. 找出导致暂停按钮“不好用”的实际原因,修正为以 LinuxCNC 任务状态为准的稳定逻辑。
4. 使用节点测试、构建、浏览器烟测和真实按钮/位置冻结证据进行严格验证。
## 预期对标语义
1. 工具栏双竖线按钮对标 LinuxCNC AXIS `task_pauseresume`:运行中点击应暂停,暂停中点击应恢复。
2. 菜单 `Pause` 对标 `task_pause`:仅在 AUTO 且 interpreter 处于 reading/waiting 时暂停。
3. 菜单 `Resume` 对标 `task_resume`:仅在 paused 且 task mode 为 AUTO/MDI 时恢复。
4. 暂停后速度归零G-code 执行采样不继续推进DRO、axisPose、canvas toolhead 保持冻结。