CamCraft

Check and post

Posting

Posting turns the document's operations into an NC program for one machine controller. Click Post (Ctrl+P, Cmd+P on macOS), choose where to save the program, and CamCraft checks the program, writes it, and opens it in the G-code viewer.

Post processors

The post is chosen on the Post page: a setup can pick its own, and a setup that picks none uses the document's. CamCraft ships posts for Fanuc, Haas, Siemens 840D, Heidenhain, Mazak, Tormach PathPilot, Makera Carvera and Fanuc Lathe. Other built-ins include grblHAL, TinyG, Tormach PathPilot Lathe and Plasma, Generic ISO Wire EDM, Sodick Wire EDM (Mark 21), and Sinker EDM (ISO). Select a post for your machine kind and control. A post is a .cps script, so you can load your own with Load post (.cps).

The Post dialog opens where this document last posted, or beside the saved project with the project's name and the .nc extension.

Controller details

  • Tormach milling: consecutive sections that use the same loaded tool skip the repeated G30/M6. Tool compensation and safe clearance still apply. A separate program starts without a known loaded tool.
  • Tormach lathe: after G30, the first point is approached one axis at a time. Before G30, the tool leaves the stock in X, then Z. Missing stock or clearance information is refused. Set and check the control's stored G30 position before running the program.
  • grblHAL, Carvera and TinyG: the first XY traverse needs a stated clearance or retract plane. A missing plane is refused; the refused move is not written, including through the standalone post tool.
  • Wire EDM: a user post must declare wireEdm to serve wire work. The generic post uses the machine's EDM code templates. The Sodick post supports 2-axis work only and refuses taper, 4-axis work and control-side G41/G42 H offsets. Set tank and flushing functions at the control; this post does not program them.
  • Fanuc-family numbers: Fanuc, Haas, Mazak, Doosan DNM and Fanuc Lathe write a decimal point on whole-number lengths, angles and feed-per-revolution words, for example Z14.. This prevents a control with DPI=0 from reading that number as least increments.
  • Indexed work offsets: grblHAL and TinyG accept G54 through G59 for indexed work. An offset beyond that range is refused.

Post options can belong to the document or to one setup. A setup can follow the document or keep its own options. Agents can inspect and edit these choices with get_post_options and set_post_options; see AI agents (MCP).

Explain G-code

Tick Explain G-code (add a comment to each block) on the document or setup post page to append plain-English comments to supported blocks. Tormach PathPilot milling, Fanuc, Haas, Mazak, Doosan DNM and Fanuc Lathe support this option. The comments do not change executable words or motion. Fanuc-family posts omit an explanation when it would exceed the block length budget. Explain is off by default; a post without explanation support refuses the option. The program gets longer. The change is one undo step.

Stops between setups

For a setup-change stop, Haas, Mazak, Doosan DNM, Sinumerik, Heidenhain, grblHAL and TinyG lift Z and name the next setup before the M0 or M1. Ordinary operation stops keep their existing behavior. Heidenhain uses the section's work clearance and refuses missing or unsafe clearance; it preserves a tip already above that height. Sinumerik refuses a missing machine retract. This does not establish a safe home position for every machine: inspect the retract and the setup before running it.

What is checked before anything is written

The post is a gate. It writes the program only when all of these hold:

  • every operation has a tool that exists and can cut that kind of operation;
  • every operation has been generated, and nothing it depends on has changed since (no stale operations);
  • no operation carries a warning;
  • the program as a whole verifies: the simulated stock shows no gouge into the part, no move strikes a fixture, and no move exceeds a limit the mounted machine states, such as axis travel or spindle speed.

For part-source Engrave and Trace, simulation accepts the intended mark only on the selected part or parts. Neighbouring parts remain subject to the gouge check. Selecting one part does not permit a mark on another.

If any check fails, nothing is written; a program already at that path is left unchanged. See Reading a refusal.

More than one machine

When setups use different machines or posts, Post writes one NC file per machine and post, and checks each one against its own machine.

Before you run it

Passing the gate means CamCraft found nothing wrong with the program against the model, stock, fixtures and machine facts it knows. It does not know everything about your machine and setup. Read the program, run it in your control's own simulation if it has one, and dry-run it with the spindle off and Z raised before cutting material.

Headless posting

The command-line tool camcraft-cli can drive CamCraft without the window, including as an MCP server for AI agents (see AI agents (MCP)). The standalone post tool runs a .cps script over a cutter-location file; it does not run the document checks above, so its output is not verified.

Which unit the program is written in, and where its coordinates are measured from, is on Units and coordinates.