Path Workbench: Difference between revisions

From FreeCAD Documentation
(Redirected page to CAM Workbench)
Tag: New redirect
 
(355 intermediate revisions by 21 users not shown)
Line 1: Line 1:
#REDIRECT [[CAM_Workbench]]
<translate>
== Introduction == <!--T:1-->

<!--T:2-->
The Path workbench is used to produce machine instructions for [https://en.wikipedia.org/wiki/CNC_router CNC machines] from a FreeCAD model. These produce real-world 3D objects on CNC machines such as mills, lathes, lasercutters, or similar. Typically, these instructions are some kind of [https://en.wikipedia.org/wiki/G-Code G-Code] dialect.


<!--T:17-->
[[Image:pathwb.png]]


<!--T:3-->
The FreeCAD Path Workbench workflow creates these machine instructions as follows:
* A 3D model is the base object, typically created using one or more of the [[PartDesign Workbench|Part Design]], [[Part Workbench|Part]] or [[Draft Workbench|Draft]] Workbenches.
* A [[Path_Job|Job]] is created in Path Workbench. This contains all the information required to generate the necessary G-Code to process the Job on a CNC mill: there is Stock material, the mill has a certain [[Path_EditToolsTable|set of tools]] and it follows certain commands controlling speed and movements (usually G-Code).
* Tools are selected as required by the Job Operations.
* Milling paths are created using e.g. [[Path_Profile|Contour]] and [[Path_Pocket|Pocket]] Operations. These [[Path objects|Path objects]] use an internal agnostic FreeCAD G-Code dialect which is independent of the CNC machine.
* Because each CNC Controller speaks a specific G-Code dialect, a Dialect-correct Postprocessor translates from the internal agnostic FreeCAD G-Code. Several Postprocessors are included allowing direct use or as a templates for modification. Postprocessors contain configuration flags and are designed to be tuned by adding G-Codes and M-Codes to provided definitions for:
**Machine initialization
**Job finalization
**Tool-Changes
**Cooling on /off
**Etc...

=== Links for the impatient === <!--T:18-->
Depending on your interest in the Path workbench there are different topics for further reading:

<!--T:19-->
* If you are a new new user trying to get familiar with Path, you might be interested in a fast [[Path Walkthrough for the Impatient|walk-through]] tutorial.
* If you have a special machine which cannot use one of the available postprocessors you may want to [[Write your own Postprocessor for the Path Workbench|write your own postprocessor]]
* As an experienced user you may want to write a [[Writing Macros for the Path Workbench|macro for the Path Workbench]]
* Power users may want to streamline processes.
* New Developers might want to understand core concepts.

== General concepts == <!--T:20-->
The Path Workbench generates G-Code defining the paths required to mill the Project represented by the 3D model on the target mill—in a simple agnostic 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 Path Job. The Job Workflow lists these in the order they will be executed. The list is populated by adding Path Operations, Path Dressups, Path Partial Commands, and Path Modifications—from the Path Menu, or GUI buttons.

<!--T:21-->
A summary of the contents of the Path Job includes:
# A list of Tool-Controller definitions, specifying the geometry, Feeds, and Speeds for the Path Operations Tools.
# A Workflow sequential list of Path Operations.
# A Base Body—a clone used for offset.
# A Stock, representing the raw material that will be milled to Path Workbench.
# A SetupSheet, containing inputs used by the Path Operations, including static values and formulas.
# Configuration parameters specifying the output G-Code job's destination path, file name, and extension, and the Postprocessor—used to generate the appropriate dialect for the target CNC Controller, and customize Units, Tool Changes, Parking, etc...

<!--T:22-->
The Path 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.

<!--T:23-->
The Path Workbench has external dependencies including:
# The FreeCAD 3D model units are defined in the Edit-> Preference...->General->Units tab's Units settings. The Postprocessor configuration defines the final G-Code units.
# The Macro file path, and Geometric tolerances, are defined in the Edit->Preferences...->Path->Job Preferences tab.
# Colors are defined in the Edit->Preferences...->Path->Path colors tab.
# Holding tag parameters are defined in the Edit->Preferences...->Path->Dressups tab.
# That the Base 3D model quality supports the Path WB requirements—passes Check Geometry.

<!--T:24-->
FreeCAD Path Workbench internal G-Code dialect represents Feed rates in Units/Second—what the G-Code Inspection tool will show. The Postprocessor is configured to generate the appropriate Feed rates—either in Units/Second or Units/Minute for the target mill.

== GUI tools == <!--T:10-->

<!--T:11-->
{{Path_Tools}}


== Scripting == <!--T:12-->

<!--T:13-->
The Path workbench offers a broad [[Path scripting|python scripting API]]. With it, you can create and modify paths from python scripts, or extend the available functionality of the workbench.

== FAQ == <!--T:14-->
===How many axes can Path Workbench handle?===
At the moment Path Workbench can handle up to 3 axis.
===What is the difference between Clearance Height and Safe Height?===
You can find more detailed information in [[Template:Depths/Heights| depths and heights]].

===Why does my operation not produce output?=== <!--T:25-->
===Can Path Workbench perform 3D surface milling?===

===Can I modify an existing, or make my own Postprocessor?===
===How I can set metric/imperial units for my path object?===
The 3D model units are defined in the Edit->Preferences...>General->Units tab's User System drop menu.

The units for the code for the target mill is set in the selected Postprocessor. This inserts a G20 to configure the machine for Inches, or a G21 to configure it for millimeters.

The Postprocessor also is configured for Units/Second, or Units/Minute. If set for Units/Minute, the Path workbench internal G-Code dialect Feed rate is multiplied by 60.

Mismatches between the 3D model and Postprocessor settings are likely culprits for factor of 60 errors in Feed rate, and factors of 25.4 in distance.

===How I can simulate my strategies?===
A volumetric simulator is provided to view the result of cutting the tool geometries included in the Job Operations against the Stock.

===What is the significance of path line colors?===
Path line colors are defined in the Edit->Preference...->Path->Path colors tab.
Default colors include:
#Green for normal paths.
#Red for rapid paths.
#Yellow for Probed paths.

===How do I check that my G-Code sequence is right?===
[[Category:User Documentation]]
</translate>
{{clear}}
<languages/>

Latest revision as of 19:43, 17 March 2024

Redirect to: