CAM Workbench

CAM workbench icon

Introduction

The CAM Workbench is used to produce machine instructions for CNC machines from a FreeCAD 3D model. These produce real-world 3D objects on CNC machines such as mills, lathes, lasercutters, or similar. Typically, instructions are a G-code dialect. A general CNC lathe tool path sequence simulation example is presented here.

The FreeCAD CAM Workbench workflow creates these machine instructions as follows:

General concepts

The CAM Workbench generates G-code defining the paths required to mill the Project represented by the 3D model on the target mill in the CAM Job Operations FreeCAD G-code dialect, which is later translated to the appropriate dialect for the target CNC controller by selecting the appropriate postprocessor.

The G-code is generated from directives and Operations contained in a CAM Job. The Job Workflow lists these in the order they will be executed. The list is populated by adding CAM Operations, Path Dressups, Supplemental Commands, and Path Modifications from the CAM Menu, or GUI buttons.

The CAM Workbench provides a Tool Manager (Library, Tool-Table), and G-code Inspection, and Simulation tools. It links the Postprocessor, and allows importing and exporting Job Templates.

The CAM Workbench has external dependencies including:

  1. The FreeCAD 3D model units are defined in the Edit → Preference → General → Default unit system. The Postprocessor configuration defines the final G-code units.
  2. The Macro file path, and Geometric tolerances, are defined in the Edit → Preferences → CAM → Job Preferences tab.
  3. Colors are defined in the Edit → Preferences → CAM → GUI tab.
  4. Holding tag parameters are defined in the Edit → Preferences → CAM → Dressups tab.
  5. That the Base 3D model quality supports the CAM workbench requirements, passes Check Geometry.

Limitations

Some current limitations of which you should be aware are:

Units

Unit handling in CAM can be confusing. There are several points to understand:

  1. FreeCAD base units for length and time are 'mm' and 's' respectively. Velocity is thus 'mm/s'. This is what FreeCAD stores internally regardless of anything else
  2. The default unit schema uses the default units. If you're using the default schema and you enter a feed rate without a unit string, it will get entered as 'mm/s'
  3. Most CNC machines expect feed rate in the form of either 'mm/min' or 'in/min'. Most post-processors will automatically convert the unit when generating gcode.

Schemas:

  1. Changing schema in preferences changes default unit string for the input fields. If you're a CAM user and prefer to design in metric, it's highly recommended that you use the "Metric Small Parts & CNC" schema. If you design in US units, either the Imperial Decimal and Building US will work.
  2. Changing your preferred unit schema will have no effect on output but will help avoid input errors.

Output:

  1. Generating the correct unit in output is the responsibility of the post-processor and is done only at that time.
  2. Machine output unit is completely unrelated to your selected unit schema.
  3. Post-processors produce either metric (G21) output, Imperial (G20) output or are configurable.
  4. Configurable post-processors default to metric (G21).
  5. If you want your configurable post-processor to output imperial G-code (G20), set the correct argument in your job output configuration (ie --inches for linuxcnc). This can be stored in a job template and set as your default template to make it automatic for all future jobs.

CAM Inspection:

  1. If you use the CAM Inspect tool to look at G-code, you will see it in 'mm/s' because it is not being post-processed.

Heights and depths

Many of the commands have various heights and depths:

Visual reference for Depth properties (settings)

Commands

Some commands are experimental and not available by default. To enable them see CAM experimental.

Project Commands

Tool Commands

Basic Operations

3D Operations

Path Dressup

Supplemental Commands

Path Modification

Specialty Operations

Miscellaneous

ToolBit architecture

Manage tools, bits, and the Tool Library. Based on the ToolBit architecture.

Other

Preferences

Scripting

See CAM scripting.

Tutorials

Videos

Roadmap