Files
FreeCADWasmDev/web/manual/content/ch10-cam.md

64 lines
2.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.
---
id: ch10
order: 10
title: CAM 加工
level: specialist
---
# 第 10 章 CAM 加工
## 能力概览
| 步骤 | 命令 |
|---|---|
| 建 Job | `CAM_Job`(Stock、Tool、Model、Post) |
| 2D/3D 路径 | `CAM_Profile`、`CAM_Pocket_Shape`、`CAM_Pocket3D`、`CAM_Adaptive` |
| 孔/槽/面 | `CAM_Drilling`、`CAM_Helix`、`CAM_Engrave`、`CAM_MillFacing` |
| 修饰 | `CAM_DressupDogbone`、`DressupDragKnife`、`DressupRampEntry`、`DressupTag` |
| 后处理/仿真 | `CAM_Post`、`CAM_PostSelected`、`CAM_Simulator` |
| 刀具 | `CAM_ToolBitLoad`、`CAM_ToolBitSave`、`CAM_ExportTemplate` |
![CAM Job 任务:Stock、Tool、Model 与 Post](./manual-assets/ch10/cam-job/01-cam-job.png)
## 10.1 建立 CAM Job
1. 打开 `/workbench.html?module=CAM&command=CAM_Job`。
2. 选择模型(Model)、毛坯(Stock)与刀具(Tool)。
3. 选择后处理器(GRBL/LinuxCNC 等),或自定义 post。
4. 点 Create 生成 Job。
## 10.2 生成路径
1. 选中 Job。
2. 依次添加 `Profile` / `Pocket` / `Drilling` 等操作。
3. 每个操作选择几何(面/边/孔)与参数(步距、下刀、退刀、转速)。
4. 用 `CAM_Simulator` 检查刀路与过切。
5. `CAM_Post` 输出 G-code 到 OPFS。
## 10.3 当前 Web 边界
CAM 模块页有 7 个 native handler,但 Adaptive/Surface/Waterline 依赖 OpenCAMLib,
完整 ToolBit 库与 G-code 编辑器仍是桌面能力。可用命令以 CAM 任务面板实际暴露的为准;
边界命令在附录标注,不作为通过项。
## 自检
- [ ] 能创建 CAM Job 并选择 Model/Stock/Tool。
- [ ] 能添加 Profile 或 Pocket 操作。
- [ ] 能打开 Simulator 检查刀路。
- [ ] 能 Post 出 G-code 并在 OPFS 找到。
- [ ] 知道 OpenCAMLib 相关命令为边界。
## 常见错误
1. 没有毛坯/模型就建 Job。
2. 刀具直径与几何不匹配,路径过切。
3. 后处理器选错,G-code 不被机床识别。
4. 把 Adaptive 当已可用;当前 Web 端受限。
## 练习
1. 对一个 80×60×20 的 Box 建 Job,做外形 Profile。
2. 加一个 Drilling 操作,选择 4 个孔位。
3. Post 后打开 G-code,检查 G0/G1 与主轴指令。