Path Post

Path PostProcess.png Path PostProcess

Menu location
Path → Post Process
Workbenches
Path
Default shortcut
P,P
See also


Description

This command exports the selected Job to a G-code file.

Each CNC Controller speaks a specific G-Code dialect, requiring a Dialect-correct Postprocessor to translate the final output from the agnostic internal FreeCAD G-Code dialect.

Typical functions of the Postprocessor include:

Several provided Postprocessors generate suitable code for many CNC controllers, or can be used as templates for modification

Postprocessors contain configuration flags and are designed to be tuned by adding G-Codes and M-Codes to provided definitions for:


Postprocessors use the [Path Job Operations FreeCAD G-Code dialect ], in conjunction with the Postprocessor configuration definitions, to generate Dialect-Correct G-Code for target machines. This allows the Path workbench to generate correct G-Code to target various CNC machine controllers by invoking different Postprocessors.

CNC Machine Controller types include:

If only one CNC machine is used, or if all CNC machines share a common Postprocesor, the Path workbench would need to include only a single Postprocessor. If a single Postprocessor is inadequate to output G-Code for all target CNC controllers, then multiple Postprocessors must be installed.

Usage

  1. Select the Job you wish to export
  2. Press the Path PostProcess.png Post Process button
  3. Confirm the Output File name and directory

Options

Output file and Postprocessor properties can be set in the Job, at any time, prior to invoking the Postprocessor.


The provided Postprocessors are written with comments indicating areas containing Flags, Configuration Variables, and Sections of G-Codes and M-Codes that are to be used by the Postprocessor to configure the output.

Typical Configuration True/False Flags include:

Typical Configuration Variables include:

Typical Configuration Sections include:

The Edit->Preferences...->Path->Job Preferences tab, Defaults->Path is used to set the default Postprocessor selected on Job creation. This allows Path workbench to be configured to only display desired Postprocessors, and to set a default.

Included Postprocessors are saved in the FreeCAD.Mod.Path.Pathscripts.Post by default:


Do not use the File->Export menu for export to G-code, it will produce damaged G-code!

Online version: "http://www.freecadweb.org/wiki/index.php?title=Path_Post&oldid=246082"

Navigation menu