CAM Walkthrough for the Impatient: Difference between revisions

From FreeCAD Documentation
m (Tweaks)
No edit summary
Line 15: Line 15:


<!--T:1-->
<!--T:1-->
Demonstrating the creation of a [[Image:Workbench_Path.svg|32px]] [[Path Workbench]] Job derived from a 3D Model. Then generating dialect-correct G-Code for a target CNC mill.
Demonstrating the creation of a [[Image:Workbench_Path.svg|32px]] [[Path_Workbench|Path Workbench]] Job derived from a 3D Model. Then generating dialect-correct G-Code for a target CNC mill.


== The 3D Model == <!--T:2-->
== The 3D Model == <!--T:2-->


<!--T:3-->
<!--T:3-->
1. The Project begins with a simple FreeCAD model designed in the [[Image:Workbench_PartDesign.svg|32px]] [[PartDesign Workbench|Part Design]] a cube with a rectangular pocket,
1. The Project begins with a simple FreeCAD model designed in the [[Image:Workbench_PartDesign.svg|32px]] [[PartDesign_Workbench|Part Design]] a cube with a rectangular pocket,


<!--T:4-->
<!--T:4-->
Line 26: Line 26:


<!--T:5-->
<!--T:5-->
:{{Caption|Above: Created in the [[Image:Workbench_PartDesign.svg|24px]] [[PartDesign Workbench|Part Design]] including a Body, a Box with a Pocket, based on a Sketch oriented in the {{Button|[[Image:View-top.svg|16px|link=Std_ViewTop]]}} XY plane.}}
:{{Caption|Above: Created in the [[Image:Workbench_PartDesign.svg|24px]] [[PartDesign_Workbench|Part Design]] including a Body, a Box with a Pocket, based on a Sketch oriented in the {{Button|[[Image:View-top.svg|16px|link=Std_ViewTop]]}} XY plane.}}


<!--T:6-->
<!--T:6-->
2. With the 3D Model completed, switch to the [[Image:Workbench_Path.svg|32px]] [[Path Workbench]] via the [[Std_Workbench|Workbench selector]] (drop-down menu)
2. With the 3D Model completed, switch to the [[Image:Workbench_Path.svg|32px]] [[Path_Workbench|Path Workbench]] via the [[Std_Workbench|Workbench selector]] (drop-down menu)


== The Job == <!--T:7-->
== The Job == <!--T:7-->
3. Now we create a [[Path_Job|Path Job]] by either of the following methods:
3. Now we create a [[Path_Job|Path Job]] by either of the following methods:
* Press the {{KEY|[[Image:Path_Job.svg|24px|link=Path Job]] [[Path Job|Job]]}} button from the toolbar.
* Press the {{KEY|[[Image:Path_Job.svg|24px|link=Path Job]] [[Path_Job|Job]]}} button from the toolbar.
* Using the {{KEY|P}} then {{KEY|F}} keyboard shortcut.
* Using the {{KEY|P}} then {{KEY|F}} keyboard shortcut.
* Using the {{MenuCommand|Path → Job}} entry from the top menu.
* Using the {{MenuCommand|Path → Job}} entry from the top menu.
Line 45: Line 45:
<!--T:10-->
<!--T:10-->
[[File:Path-JobCreationDialog.png]]
[[File:Path-JobCreationDialog.png]]
::{{Caption|Above: [[Path Job]] creation dialog}}
::{{Caption|Above: [[Path_Job|Path Job]] creation dialog}}


<!--T:11-->
<!--T:11-->
Line 98: Line 98:


<!--T:29-->
<!--T:29-->
11. Two operations will be added to generate milling paths for this Path Job. The [[Path Contour|Contour]] operation creates a path around the box and the [[Path Pocket Shape|Pocket]] operation creates a path for the inner pocket.
11. Two operations will be added to generate milling paths for this Path Job. The [[Path_Contour|Contour]] operation creates a path around the box and the [[Path Pocket Shape|Pocket]] operation creates a path for the inner pocket.


<!--T:30-->
<!--T:30-->
Line 104: Line 104:


<!--T:31-->
<!--T:31-->
Selecting the bottom of the pocket and then the [[Image:Path_Pocket.svg|32px]] [[Path_Pocket Shape|Pocket]] button opens the Pocket Shape window. The default values for Base Geometry, Depths, and Heights are used, and the Operation subpanel is selected, and the Step Over Percent is set at 50.
Selecting the bottom of the pocket and then the [[Image:Path_Pocket.svg|32px]] [[Path_Pocket_Shape|Pocket]] button opens the Pocket Shape window. The default values for Base Geometry, Depths, and Heights are used, and the Operation subpanel is selected, and the Step Over Percent is set at 50.


<!--T:32-->
<!--T:32-->
Line 129: Line 129:


<!--T:39-->
<!--T:39-->
To start the simulation use the [[Image:Path_Simulator.svg|32px]] [[Path Simulator]] tool.
To start the simulation use the [[Image:Path_Simulator.svg|32px]] [[Path_Simulator|Path Simulator]] tool.


<!--T:40-->
<!--T:40-->

Revision as of 12:56, 13 November 2020

This documentation is not finished. Please help and contribute documentation.

GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.

Tutorial
Topic
Path Workbench
Level
Beginner/Moderate
Time to complete
Authors
Chrisb
FreeCAD version
Example files
See also
None

Aim

Demonstrating the creation of a Path Workbench Job derived from a 3D Model. Then generating dialect-correct G-Code for a target CNC mill.

The 3D Model

1. The Project begins with a simple FreeCAD model designed in the Part Design a cube with a rectangular pocket,

Above: Created in the Part Design including a Body, a Box with a Pocket, based on a Sketch oriented in the XY plane.

2. With the 3D Model completed, switch to the Path Workbench via the Workbench selector (drop-down menu)

The Job

3. Now we create a Path Job by either of the following methods:

  • Press the Job button from the toolbar.
  • Using the P then F keyboard shortcut.
  • Using the Path → Job entry from the top menu.


4. This opens a Job creation dialog. Within this dialog, click OK to accept the Body as the Base Model, with no Template.

Job Setup

Above: Path Job creation dialog

5. The Job Edit window opens in the Task window, and the model view Window shows the Stock as a wire frame cube surrounding the Base Body. The Setup Tab is selected.

Job Output

6. The Output tab defines the output file path, name, and extension, and the Postprocessor. For advanced users, Post Processor Arguments can be customized (mouse over to show tooltips of common arguments).

Job Tools

7. Modify the Default tool by selecting it and clicking the Edit button. This opens the Tool Controller edit window.

8. The name given to the tool and the tool number correspond with the tool number of the machine. Here it is tool Nr. 4. The tool controller is configured for horizontal and vertical feed rates of 2mm/s and a spindle speed of 2000 rpm.

9. Select the Tool subpanel of the tool controller. Set the diameter and - if you wish to use the simulation tool later - add a cutting edge angle and cutting edge height.

10. The values are confirmed with OK

For easy access, all the tools can be predefined and selected from the Tool manager.

Job Workplan

The Workplan tab initially is shown as empty. It is then populated by the sequence of Job Operations, Partial Path Commands, and Path Dressups. The sequence of these items is ordered here.

This tree is shown after the Job's configuration once the Path Job is unfolded:

The Path Operations

11. Two operations will be added to generate milling paths for this Path Job. The Contour operation creates a path around the box and the Pocket operation creates a path for the inner pocket.

12. For now we will keep it simple. The Contour button opens the Contour panel. After confirming with OK using the default values, see the green path around the object is visible.

Selecting the bottom of the pocket and then the Pocket button opens the Pocket Shape window. The default values for Base Geometry, Depths, and Heights are used, and the Operation subpanel is selected, and the Step Over Percent is set at 50.

The pattern is changed to "Offset" and the Job Operation is confirmed for the pocket configuration with OK.

The result is a model with two paths:

Verifying Paths

There are two ways to verify the created paths. The G-Code can be inspected, including highlighting the corresponding path segments. The milling process of the Path Job can also be simulated to demonstrate the idealized tool paths, required for the Tool geometries to mill the Stock.

To inspect the G-Code use the tool. Selecting the corresponding G-Code lines within the G-Code Inspection window highlights individual path segments.

To start the simulation use the Path Simulator tool.

Adjust speed and accuracy and start the simulation with the play button.

If you want to end the simulation click the Cancel button, it will remove the stock created for the simulation. If you click Ok this object will be kept in your Job.

Postprocess the Job

The final step to generate G-Code for the target mill is to postprocess the Job. This outputs the G-Codes to a file that can be uploaded to the target CNC machine controller. To invoke the Postprocessor:

  • Select the Job object in the tree
  • Select the Path Postprocessing tool to postprocess the file. This opens a G-Code window allowing inspection of the final output file before it is saved.

Template:Tutorials navi