WindFire CAMWindFire ERP Open CAM

Heights and safe retract

Where the tool moves fast, where it slows down, where cutting starts and stops - and how it gets safely out of the way.

No section matches your search.

What the heights are

Every 2D, 3D and drilling operation has a Heights tab. Five heights decide how the tool moves up and down: it rapids at the clearance height, moves across at the retract height, slows to the cutting feed at the feed height, starts cutting at the top height and stops at the bottom height.

Each height is a reference (the From choice: the stock, the model, your selection, another height, a hole, a picked point or the work origin) plus an Offset that can be positive or negative. When the part or the stock changes, the heights follow it.

The Safe retract at the bottom of the tab is where the tool goes before a tool change, before the rotary axes turn, between operations and at the end of the program. It comes from the machine setup and can be changed for one operation.

The Heights tab of a 2D pocket
Figure 1. The Heights tab of a 2D pocket
  1. Heights tab
  2. Clearance height
  3. Retract height
  4. Feed height
  5. Top height
  6. Bottom height
  7. Safe retract
  8. "?" opens this guide
Stock Part ClearanceRetractFeedTopBottom +10+5+5 feed from here Each height = From + offset. Defaults: clearance = retract + 10, retract = stock top + 5, feed = top + 5.
The five heights of an operation over the stock and the part
HeightWhat it doesDefault
Clearance heightThe first and last rapid of the operation, high above everything.Retract height + 10 mm (0.4 in)
Retract heightMoves from one cut to the next are made at this height.Stock top + 5 mm (0.2 in)
Feed heightThe tool rapids down to here, then feeds down into the cut.Top height + 5 mm (0.2 in)
Top heightWhere the cutting starts: the first step-down is measured from here.Stock top (hole top for drilling and boring)
Bottom heightThe deepest cut.The selection; model top for Face; model bottom for 3D; hole bottom for drilling and boring
Safe retractTool changes, reorientation, moves between operations and the end of the program.From machine

Set the heights step by step

The demo part (Open the demo from the projects drawer) is used for the pictures. New operations already have the usual heights; change them only when the part needs it.

  1. Select the operation. Click it in the CAM tree. Its name and type are shown at the top of the panel.
    Step 1: the operation is selected
    Figure 2. Step 1: the operation is selected
    1. The operation in the CAM tree
    2. Its name and type
    3. The part in the view
  2. Open the Heights tab. The coloured planes of the five heights appear in the view.
    Step 2: the Heights tab and its planes
    Figure 3. Step 2: the Heights tab and its planes
    1. Heights tab
    2. How the heights work
    3. The five planes in the view
  3. Choose the From of each height. Open the list beside From. Choices that would make two heights refer to each other in a loop are greyed out.
    Step 3: the From lists
    Figure 4. Step 3: the From lists
    1. Clearance From
    2. Retract From
    3. Top From
    4. Bottom From
  4. Type the offset. A negative offset goes down. The Z beside the name (from the work origin) and the plane in the view follow at once.
    Step 4: an offset of -0.01 on the bottom height
    Figure 5. Step 4: an offset of -0.01 on the bottom height
    1. Bottom offset
    2. The new Z from the work origin
    3. The bottom plane moves
  5. Check the planes in the view. Each plane has a label with its name and Z. Clearance is the highest, bottom the lowest.
    Step 5: the planes with their labels
    Figure 6. Step 5: the planes with their labels
    1. Planes with name and Z
    2. Clearance Z
    3. Bottom Z
  6. Or drag a plane. Hold Shift and drag a plane up or down: its offset changes. Release to recalculate the toolpath.
    Step 6: Shift-drag the retract plane
    Figure 7. Step 6: Shift-drag the retract plane
    1. Drag the plane with Shift held
    2. The offset follows
  7. Set the safe retract of the operation, if needed. "From machine" uses the machine setup. "Clearance height" or "Fixed Z" keep this operation at a work Z instead.
    Step 7: the operation's safe retract
    Figure 8. Step 7: the operation's safe retract
    1. The safe retract plane (work Z)
  8. Set the safe retract of the machine. Machine settings, Controller and post tab: the type, the height, the order of the moves, what the rotary axes do and what happens between operations. The line below shows what the post will write.
    Step 8: the machine's safe retract
    Figure 9. Step 8: the machine's safe retract
    1. Type
    2. Height
    3. Retract order
    4. Rotary axes after the retract
    5. Between operations
    6. What the post writes
  9. Post and check the program. The tool changes, the moves between operations and the end of the program use the safe retract. The program is checked in the NC Viewer before it is handed out.
    Step 9: the posted program
    Figure 10. Step 9: the posted program
    1. Post dialog
    2. The program with its safe retracts

Clearance height

The clearance height is the safe height above the part, fixtures and clamps. The tool rapids to it at the start of the operation and leaves at it at the end. Default: 10 mm (0.4 in) above the retract height.

Before
Clearance 0.4 in above the retract height
Figure 11. Clearance 0.4 in above the retract height
  1. Clearance plane close to the part
  2. Clearance offset 0.4
After
Clearance 1.2 in above the retract height
Figure 12. Clearance 1.2 in above the retract height
  1. Clearance plane well above the clamps
  2. Clearance offset 1.2

Raise it when clamps or a vise jaw stand above the stock.

Retract height

The tool moves from one cut to the next at the retract height. Lower is faster but must clear everything left standing. Default: 5 mm (0.2 in) above the stock top.

For drilling, the retract height is the R plane of the drilling cycle. With From "Hole top" every hole gets its own R plane just above its own top - shorter moves on parts with holes at different levels.

Before
Drilling retract from the stock top: one R plane
Figure 13. Drilling retract from the stock top: one R plane
  1. Every hole uses the same R plane
  2. Retract From Stock top
After
Drilling retract from each hole top
Figure 14. Drilling retract from each hole top
  1. Each hole has its own R plane
  2. Retract From Hole top

Feed height

The tool rapids down to the feed height and feeds the rest of the way, so it never enters the material at rapid. Default: 5 mm (0.2 in) above the top height.

"Disabled" rapids straight down to the start of the cut. WindFire never lets that rapid go below the stock top, so a disabled feed height can never rapid into material.

Feed height rapid to the start of the cut Feed heightDisableddashed = rapid, blue = feed
Feed height and "Disabled"
Before
Feed height from the top height
Figure 15. Feed height from the top height
  1. Rapid to the feed height, then feed
  2. Feed From Top height
After
Feed height disabled
Figure 16. Feed height disabled
  1. Rapid down to the start of the cut
  2. Feed From Disabled

Top height

The top height is where the cut begins. Step-downs are counted from here, so a top height below the stock top skips air cuts - only when the material above is already gone.

Before
Top height from the stock top
Figure 17. Top height from the stock top
  1. Step-downs start at the stock top
  2. Top From Stock top
After
Top height from the model top
Figure 18. Top height from the model top
  1. Step-downs start at the model top
  2. Top From Model top

Bottom height

The bottom height is the deepest the tool cuts. A negative offset cuts below the reference, for example a contour 0.1 mm below the bottom face so no skin is left. For a chamfer, "To chamfer width" makes the offset the chamfer width.

Before
Contour bottom at the selected contour
Figure 19. Contour bottom at the selected contour
  1. The last pass on the bottom face
  2. Bottom offset 0
After
Contour bottom 0.05 in below it
Figure 20. Contour bottom 0.05 in below it
  1. The last pass below the bottom face
  2. Bottom offset -0.05

Every From choice

The same list is used for every height (a height cannot refer to itself). The model and stock references follow the setup; selection and hole references follow what is selected on the Geometry tab.

Clearance height
The clearance height of this operation plus the offset (incremental).
Retract height
The retract height plus the offset (incremental).
Feed height
The feed height plus the offset (incremental).
Top height
The top height plus the offset (incremental).
Bottom height
The bottom height plus the offset (incremental).
Model top
The highest point of the part.
Model bottom
The lowest point of the part.
Stock top
The top of the stock.
Stock bottom
The bottom of the stock.
Selection
The lowest selected geometry: the selected contours, the selected floors, or the deepest selected hole.
Picked point or face
A point, edge or face you click on the model. A flat face gives its exact height; anything else the clicked point.
Origin (absolute)
The work origin (Z 0 of the program): the offset is then the absolute Z.
Hole top
Each hole's own top, a counterbore above it included (drilling and boring).
Hole bottom
Each hole's own bottom (through holes: plus the break-through).
Hole segment top
The top of the selected hole segment only (for example the through hole under a counterbore).
Hole segment bottom
The bottom of the selected hole segment only.
To chamfer width
Chamfer bottom: the offset is the chamfer width; the depth is worked out from the tool.
To chamfer diameter
Chamfer bottom: the offset is the chamfer's outer diameter on a round edge.
Disabled
Feed height only: rapid straight down to the start of the cut (never below the stock top).
A height from a picked face
Figure 21. A height from a picked face
  1. From "Picked point or face"
  2. Pick on the model
  3. Click a face in the view
Hole top Hole bottom Hole segment top (through hole)= counterbore bottom CounterboreThrough holeHole top / bottom: the whole hole. Segment top / bottom: only the selected segment.
Hole references for drilling and boring

Safe retract

A safe retract is the move that takes the tool clear of the part before something big happens: a tool change, the rotary axes turning, the next operation, or the end of the program. Every machine has one, set once in the machine setup; every operation uses it unless you change it on its Heights tab.

The retract is always Z first, then the rotary axes, then X Y. A G28 reference return in X Y is never written while a rotary axis is still turned: the rotaries go home first.

Rotary table 1 Z up first 2 then the rotaries 3 then X Y A G28 X Y return is never written while a rotary axis is still turned.
The order of a safe retract

Machine setup (Machine settings, Controller and post)

Safe retract
"As in the post" writes the post's own retract line (unchanged programs). "Machine home Z" writes this control's machine-coordinate move (table below) to the height you type: 0 is the home position, -10 stays 10 mm below it. "Fixed work Z" is a G0 Z in work coordinates.
Retract order
Z first, then the rotary axes, then X Y; or Z, then X Y in machine coordinates, then the rotaries.
Rotary axes after the retract
At tool changes: stay, unwind whole turns, or go to their home angles. At the end of the program a turned rotary goes home after a machine-coordinate retract, in absolute (G90); after a work-Z retract it is left where it is, with a warning.
Between operations
Stay at the clearance height (as before), or a full safe retract between every two operations.
ControlMachine home Z (machine coordinates)
Fanuc, Haas, Mazak, Hurco, Mach3 / Mach4, LinuxCNC, MASSO, Grbl, HOMAG ISOG53 G0 Z0.
Siemens 840D / 828DSUPA G0 Z0. D0
Heidenhain TNCL Z0. R0 FMAX M91
Heidenhain TNC (ISO)G00 G40 Z0. M91
Fagor 8070 / 8065G0 G53 Z0.
OSAIG79 Z0.
Okuma OSPnone - use Fixed work Z (posting is blocked with "Machine home Z")
ShopBot (OpenSBP)none - use Fixed work Z (posting is blocked with "Machine home Z")

Per operation (Heights tab, Safe retract)

From machine
Use the machine setup. The offset is added to the machine height (Machine home Z or Fixed work Z).
Clearance height
Retract to this operation's clearance height plus the offset, in work coordinates.
Fixed Z (from the work origin)
Retract to this Z from the work origin.
Before
Safe retract from the machine: the post's own line
Figure 22. Safe retract from the machine: the post's own line
  1. G91 G28 Z0. at the tool change
After
Safe retract at a fixed Z
Figure 23. Safe retract at a fixed Z
  1. G0 Z3. at the tool change

Between two operations the safer of their two safe retracts is used: the machine retract beats a work Z, and of two work Zs the higher one.

Worked example

The demo plate in inches: a 2D pocket, an outside contour and the drilled holes, posted for a Fanuc mill.

  1. Contour bottom: Bottom height From "Selected contour(s)", offset -0.01 in, so the contour cuts just through the bottom face and leaves no skin.
  2. Drilling: Retract height From "Hole top", offset 0.1 in. Every hole gets its own R plane 0.1 in above its top.
  3. Safe retract: the machine is set to "Machine home Z" at Z 0 with "Full safe retract between operations"; the pocket keeps "From machine".
  4. Post: each tool change and the move from the pocket to the contour starts with G53 G0 Z0 instead of the incremental G28.
Example step 1: contour bottom -0.01 in
Figure 24. Example step 1: contour bottom -0.01 in
  1. The contour cuts just through
  2. Bottom height
  3. The contour in the tree
Example step 2: drilling retract from each hole top
Figure 25. Example step 2: drilling retract from each hole top
  1. R plane per hole
  2. Retract height
  3. The drilling operation
Example step 3: the pocket uses the machine safe retract
Figure 26. Example step 3: the pocket uses the machine safe retract
  1. The planes of the pocket
  2. Safe retract From machine
Example step 4: the posted program
Figure 27. Example step 4: the posted program
  1. Post dialog
  2. G53 G0 Z0 before each tool change

Messages and how to fix them

Height messages appear at the top of the Heights tab; safe retract messages in the post dialog.

MessageWhat to do
The retract height is above the clearance height.Raise the clearance height or lower the retract height.
The feed height is above the retract height.Lower the feed height offset, or measure it From the top height.
The top height is above the retract height: the tool would rapid into the cut.Raise the retract height above the top height.
The bottom height is above the top height: nothing is cut.Check the From of both heights and the sign of the offsets.
The heights refer to each other in a loop (…): it uses the stock top instead. Choose another From.Choose a From that is not one of the heights in the loop (the stock, the model or the selection).
This control (…) has no machine-coordinate retract, so "Machine home Z" cannot be posted. Choose "Fixed work Z" for the Safe retract in the machine setup.Okuma and ShopBot: open Machine settings, Controller and post, and choose Fixed work Z with a height that clears the part and the fixtures.
The rotary axes turn after a retract to a work Z (…): check that the part and fixture clear the tool.Use "From machine" with Machine home Z for operations that turn the rotary axes, or raise the fixed Z.

Tips

  • Measure heights from the stock or model, not from the origin: they follow the part when the setup changes.
  • Use From "Hole top" for the drilling retract height on parts with holes at different levels.
  • Shift-drag a plane for a quick look, then type the exact offset.
  • On machines with rotary axes, set the machine safe retract to Machine home Z: the rotaries turn only after the spindle is at the top.

Related topics