blendercam/scripts/addons/docs/starting.md

162 wiersze
6.3 KiB
Markdown

2025-01-22 21:03:08 +00:00
# Getting Started
2025-01-27 22:56:56 +00:00
This is a step-by-step tutorial on generating your first toolpath with **Fabex**.
2025-01-22 21:03:08 +00:00
2025-01-27 16:19:41 +00:00
For detailed descriptions of User Interface options go [here](interface.md).
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
## Setup your Scene
You can use any object to generate toolpaths, but for the purpose of this guide we will use Suzanne, the monkey.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
To reproduce the results shown below you will need to:
- select and delete the default cube
- click **Add** > **Mesh** > **Monkey** _(or press Shift+A to get the Add Menu and do the same)_
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
Now we are going to scale and rotate the monkey head so that it gives us the best results and doesn't trigger any warnings about being too big for our machine:
- press **S**, then **.05** on your keyboard to scale it down
- press **R**, then **X**, then **-90** to rotate it on the X axis by -90 degrees
- press **S**, then **Z**, then **.5** to scale it down on the Z axis
2025-01-22 21:03:08 +00:00
2025-01-24 18:37:52 +00:00
```{note}
2025-01-27 22:56:56 +00:00
_If you don't want to reproduce the guide results exactly, you can skip all of the above and perform the operations on the default cube, but you will get a warning about the object being too big for your machine if you don't scale it down to fit inside the **CAM_machine** area._
2025-01-24 18:37:52 +00:00
```
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
## Change the Render Engine
In the **Properties** area, in the **Render** tab, set the **Render Engine** to **Fabex CNC/CAM**
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
![Renderer selection](_static/RenderEngine.png)
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
## Setup your Machine Parameters
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
In the **[ Machine ]** panel, enter the specs of your CNC Machine, including:
- **Post-Processor**
- **Unit System** *(Metric or Imperial)* & **Length Unit** *(ft, in, m, mm)*
- **Work Area**
- **Feedrate** & **Spindle Speed** Min/Max
- **Machine G-code** output options
- Custom **Position Definitions** for Start, End and Tool Change
- Multi-Axis Options and more
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
![Machine setup](_static/MachineParameters.png)
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
## Add an Operation
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
In the **[ Operations ]** panel, click the **+** button to add a new Operation.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
![New operation](_static/NewOperation.png)
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
_Once an Operation has been added, the rest of the Interface will populate with Operation settings panels._
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
## Choose a Milling Strategy
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
In the **[ Operation Setup ]** panel, choose **Parallel** from the **Strategy** dropdown.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
![Select operation](_static/ChooseStrategy.png)
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
**Outline Fill**, **Circles**, **Spiral**, **Block**, or **Cross** will also work for this example.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
**Waterline** and other operations require curve data source. See how to generate curves from mesh model [here](Profile%20and%20Pocket%20operations.md).
2025-01-22 21:03:08 +00:00
2025-01-24 18:37:52 +00:00
```{note}
2025-01-27 22:56:56 +00:00
_If you are not sure what each milling strategy does, check the [Strategies](strategies.md) page for pictures and explanations of how each works._
2025-01-24 18:37:52 +00:00
```
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
## Setup Stock Material and Position your Object
2025-01-22 21:03:08 +00:00
2025-01-27 22:56:56 +00:00
In the **[ Material ]** panel, click **Size from Model** to allow **Fabex** to auto-calculate the size of the required Stock Material, you can then set **Additional Radius** to mill additional stock around object.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
If you know the dimensions of your stock, e.g. a plywood sheet, you can uncheck **Size from Model** and enter the dimensions manually.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
You can manually position object inside the Machine's Work Area, or use **Position Object** to position it automatically using the listed alignment options.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
![Material Panel](_static/MaterialPanel.png)
2025-01-22 21:03:08 +00:00
2025-01-24 18:37:52 +00:00
```{note}
_If the box representing material doesn't update, uncheck **Size from Model** and then check it again._
```
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
## Configure the Operation Settings
### [ Operation Setup ]
In the **[ Operation Setup ]** panel, under the **Parallel** settings, find **Toolpath Distance**.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
**Between** is the distance between toolpaths, and allows you to set Stepover values to determine how close each path should be to the next.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
**Along** determines path accuracy. Paths are made up of points, and the lower the distance between them, the more points you will have.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
Lower values result in more accurate toolpath, but make computation slower and increase amount of resulting G-code.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
![Toolpath Distance](_static/ToolpathDistance.png)
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
### [ Optimisation ]
Click to enable **Exact Mode** - it improves accuracy.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
You can also select **Use OpenCAMLib** - it improves accuracy and speeds up the computing time.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
![](_static/OptimisationPanel.png)
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
*OpenCAMLib also enables a high quality algorithm to calculate waterline toolpaths.*
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
### [ Operation Area ]
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
In the **[ Operation Area ]** panel, click the arrow next to **Layers** to enter a **Layer Height**.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
Under **Operation Depth** you can set the **Start** and **Max** depth.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
![](_static/OperationArea.png)
2025-01-22 21:03:08 +00:00
2025-01-27 22:56:56 +00:00
```{note}
_**Operation Depth Max** is set to auto-calculate from the selected **Object** by default._
```
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
### [ Feedrate ]
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
Set the **Feedrate** _(in units per minute)_ and **Spindle** speed _(in revolutions per minute)_ for the Operation.
2025-01-22 21:03:08 +00:00
2025-01-24 17:07:06 +00:00
![](_static/FeedratePanel.png)
2025-01-27 22:56:56 +00:00
***Plunge** **Speed** and **Angle** slow the operation feedrate when the cutter is moving down on steep areas.*
2025-01-24 17:07:06 +00:00
### [ Cutter ]
Specify your Cutter **Type**, number of **Flutes** and **Diameter.**
![](_static/CutterPanel.png)
*Set the **Tool Number** and **Description** if applicable.*
## Calculate Path and Generate Gcode
Back in the **[ Operations ]** panel, click **Calculate Path & Export Gcode**.
![Calculate path](_static/OperationsPanelSuzanne.png)
2025-01-27 22:56:56 +00:00
This will calculate the toolpath, add it to the **Blender** scene and export a Gcode file to the same directory as your .blend file.
2025-01-24 17:07:06 +00:00
![Calculate path view](_static/SuzannePath.png)
## Operation Simulation
Click **Simulate This Operation** to create model representing your machined material.
You can use this to determine your best milling strategy, how much finishing work a job will need, etc.
![Simulate Operation](_static/SuzanneSimulation.png)
Or, combine it with Blender shaders and HDRIs to get a better idea of what your piece will look like in your chosen material, with light and shadow.
![Simulate Operation](_static/SuzanneWoodSim.png)
## Combine Multiple Operations in a Chain
2025-01-27 22:56:56 +00:00
You may need to combine multiple strategies and Opertations to achieve your desired result, and Chains make that possible.
2025-01-24 17:07:06 +00:00
Chains allow you to combine multiple Operations for Gcode export or Simulation.
In the **[ Chains ]** panel, click the **+** button to add a new Chain.
This will add a second box below the first to hold the Operations for this Chain.
Click the lower **+** button to add the active Operation to your Chain.
![New chain](_static/ChainsPanel.png)
2025-01-22 21:03:08 +00:00