grid-apps-cmms/docs/kiri-moto/CAM/machines.md

68 lines
3.1 KiB
Markdown
Raw Normal View History

2025-05-24 15:29:16 -06:00
---
2025-06-10 21:11:08 -06:00
description: Machine setup for CAM machines
2025-05-24 15:29:16 -06:00
---
# Machine Setup
The Machine Setup tab defines the physical capabilities of your CNC machine, its firmware behavior, and how G-code should be generated. A properly configured machine profile ensures your output matches your hardware's constraints and expectations.
2025-06-10 21:11:08 -06:00
You can access it from the top-right menu:
2025-05-24 15:29:16 -06:00
![](/img/CAM/machinesTab.png)
---
2025-06-10 13:23:17 -06:00
## Workspace Dimensions
2025-05-24 15:29:16 -06:00
2025-06-10 21:14:47 -06:00
These values define your machine’s cutting envelope. Use your _actual usable_ dimensions here, not the marketing ones.
2025-05-24 15:29:16 -06:00
2025-06-10 21:14:47 -06:00
- **X (width)** — Maximum horizontal travel (left to right)
- **Y (depth)** — Maximum front-to-back travel
- **Z (height)** — Maximum vertical travel (top to bottom)
2025-05-24 15:29:16 -06:00
2025-06-10 21:11:08 -06:00
The units of these values are based on the units set in your global preferences (defaults to mm).
2025-05-24 15:29:16 -06:00
---
2025-06-10 13:23:17 -06:00
## Firmware Settings
2025-05-24 15:29:16 -06:00
2025-06-10 21:11:08 -06:00
- **Max Spindle** — The highest RPM your spindle supports. This limits the `feed` speeds set in your [CAM operations](/kiri-moto/CAM/ops) to generate proper and safe `S` values in G-code.
2025-05-24 15:29:16 -06:00
---
2025-06-10 13:23:17 -06:00
## Output Options
2025-05-24 15:29:16 -06:00
Customize how your G-code is formatted for your controller or post-processor:
2025-06-10 21:14:47 -06:00
- **Strip Comments** — Removes all G-code comments for cleaner, smaller files
- **Token Spacer** — Inserts a space between G-code tokens (e.g., `G1 X1 Y1` vs `G1X1Y1`)
2025-06-10 21:39:49 -06:00
- **Enable Laser** — Enables [Laser](./ops#laser-operations) operations (typically uses `M3/M5`; adjusts movement strategy)
2025-06-10 21:11:08 -06:00
- **File Extension** — Optional override for exported file type (e.g., `.nc`, `.ngc`, `.cnc`, `.cam`, `.gcode`, `.txt`)
2025-05-24 15:29:16 -06:00
---
2025-06-10 21:11:08 -06:00
## G-code Macros
2025-05-24 15:29:16 -06:00
2025-06-10 21:11:08 -06:00
Macros insert custom G-code at key stages of toolpath generation. Each tab corresponds to a different context. In these boxes, you have access to [G-code macros](../gcode-macros). Not all macros are available in all contexts, so be careful!
2025-05-24 15:29:16 -06:00
2025-06-10 21:14:47 -06:00
- **Header** — Runs once at the beginning of the job (e.g., mode override, move to safe Z)
- **Footer** — Runs at the end of the job (e.g., spindle stop, move to safe Z)
- **Tool** — Called when changing tools. Automatic tool changes and tool measurement can be put here.
- **Dwell** — Code for pausing movement/spindle at specified positions
2025-05-24 15:29:16 -06:00
- **Spindle** — Code to set spindle RPM
2025-06-10 21:11:08 -06:00
---
## RML Dialect
2025-05-24 15:29:16 -06:00
2025-06-10 21:11:08 -06:00
Kiri:Moto supports the [RML](https://downloadcenter.rolanddg.com/contents/manuals/PNC-3200_USE2_E_R5.pdf) dialect of G-code.
2025-05-24 15:29:16 -06:00
2025-06-10 21:11:08 -06:00
When a machine's file extension is set to `.rml`, Kiri:Moto will use the RML dialect, using `PU` for non-cut moves and `Z` for cut moves. RML commands can be used in the `Header`, `Footer`, `Tool`, `Dwell`, and `Spindle` sections of the Machine Setup tab in the same way that G-code commands are used.
---
2025-05-24 15:29:16 -06:00
## Contribute a Machine Profile
2025-06-10 21:11:08 -06:00
We love to add new machines to the Kiri:Moto library. If you have a tested machine that you'd like to add, you can export your workspace as a `.kmz` file and share it on the [Discord](https://discord.gg/suyCCgr) or [forums](https://forum.grid.space).
2025-05-24 17:11:06 -06:00
2025-06-10 21:11:08 -06:00
If you want to submit a PR, you can find instructions for how to do so [here](https://github.com/GridSpace/grid-apps/blob/master/contributing.md#how-to-add-a-new-machine).