3D CRC

From Compost Wiki
Revision as of 19:40, 1 March 2018 by Dannym (talk | contribs)
Jump to navigation Jump to search

Overview

GibbsCAM 13 adds a new feature to its 5-axis mill module. The feature is 3D CRC, which is toggled in the General tab of the 5-axis process dialog. 3D CRC appends data to the toolpath inside the software and requires a post change to support. This article describes the required changes to the post processor in order to support 3D CRC.

What is 3D CRC?

3D CRC is three-dimensional tool compensation for straight-line blocks. Apart from the X, Y and Z coordinates of the straight-line end point, these blocks must also contain the IJK (or Nx/Ny/Nz for Heidenhain) components of the surface-normal vector.

A normalized vector is a mathematical quantity with a value of 1 and a direction. The direction of a surface normal vector is determined by the IJK (or Nx/Ny/Nz for Heidenhain). With an end mill and a radius mill, this direction is perpendicular from the surface to be machined to the tool center.

Applications

  • Use of tools with dimensions that do not correspond with the dimensions calculated by the CAD system.
  • Face milling: compensation of the milling machine geometry in the direction of the surface-normal vector. Cutting is usually with the end face of the tool.
  • Peripheral milling: compensation of the mill radius perpendicular to the direction of movement and perpendicular to the tool direction. Cutting is usually with the lateral surface (side) of the tool.

Post Changes

The changes that need to be made to a post to support 3D CRC are relatively easy:

  • Add the new Output3DCRCNormal command after the MoveAllAxes command (or its equivalent) inside the Line/Rapid/Arc-segmentation toolpath sub-routines. For example:
tpRapidFeat:
 ...
 SeqC AbsOrInc CRCC RapidC MoveAllAxes Output3DCRCNormal CRCOffsetC SpeedC ToolOffsetC EOL
 ...
RETURN

Notice that the CRCC and CRCOffsetC commands are used. These are existing 2D CRC commands that have been updated to work with 3D CRC as well. For example, the CRCC command will output G141 for Haas 3D CRC-On if the current operation is using 3D CRC, or it will output G41/G42 if it's regular 2D CRC.

  • If you need to format the surface normal vectors in a way not supported by the controls in the Form dialog, then you can use the 3DCRCNormalI# commands. For example:
3DCRCSurfaceNormals:
  IF 3DCRC? AND NOT CRCOff?
    'I' Output('I', 3DCRCNormalI#) 'J' Output('J', 3DCRCNormalJ#) 'K' Output('K', 3DCRCNormalK#)
  END
RETURN

Then you can call the 3DCRCSurfaceNormals sub-routine instead of Output3DCRCNormal within toolpath.

Form Changes

  • To output 3D CRC, you must enable it within the post processor's Form: Program Options > Options > Operation Support tab, "3D CRC" checkbox.
  • To specify the 3D CRC output g-codes, edit the Form: Offsets and Workplanes > Tool Offsets > 3D CRC section.
  • It is recommended to set the post's Segmentation Tolerance to 0 (found in Form > Movement > Rotary > Rotary Toolpath Options) to avoid additional segmentation while using 3D CRC with 5-axis.
    • GibbsCAM does its best to interpolate the surface normal vector during segmentation, but it's a best-guess calculation that may not be accurate around certain curves or sharp corners.

3D CRC Support

There are two types of 3D CRC output that are common among machine controllers, only one of which is supported by the 5-axis process in GibbsCAM 13. The two types can be described as Automatic 3D CRC and Explicit 3D CRC.

Automatic 3D CRC (Unsupported)

The automatic 3D CRC output type means the CNC automatically calculates the tool compensation plane that is perpendicular to the tool vector. This output type is useful in limited 5-axis machining situations, specifically in Swarf milling where the side of the tool makes contact with the material and follows a guide curve. Automatic 3D CRC output is similar to 2D CRC where a CRC-left or CRC-right g-code indicates the cutter side relative to the cutting direction.

The automatic 3D CRC output type is not supported with 5-axis 3D CRC in GibbsCAM 13 because the cutter side (CRC-left vs CRC-right) is not known and therefore cannot be output.

Explicit 3D CRC (Supported)

The explicit 3D CRC output type means the g-code block must output the three dimensional cutter compensation vector, aka surface normal vector. This output type is used in 5-axis machining situations where a surface is used for machining, including Swarf milling. Explicit 3D CRC requires surface normal vectors to be output, but it also does not use CRC-left and CRC-right g-codes to dictate cutter side compensation. Instead, the CNC uses g-code just to turn explicit 3D CRC on or off.

The explicit 3D CRC output type is supported with 5-axis 3D CRC in GibbsCAM 13.

Example CNC Output Formats

Here are some sample output codes for various machine controllers.

  • Fanuc/Mazak
    • G41 (G42) X Y Z I J K D
    • The G41 or G42 turns 3D CRC on. When G42 is used, the CNC interprets the surface normal I J K vector in the opposite direction. GibbsCAM will not indicate when a post should use G41 versus G42, and therefore the post should always output in G41 (or output G42 and the post can invert the I J K surface normal).
    • The I J K parameters represent the surface normal vector.
  • Haas
    • G141 X Y Z D I J K
    • G141 turns 3D CRC on and G142 is not used. G40 cancels 2D and 3D CRC.
    • The I J K parameters represent the surface normal vector.
  • Heidenhain TNC
    • LN X Y Z NX NY NZ TX TY TZ R0
    • LN, as opposed to L, represents a 3D CRC feed move (i.e. turns 3D CRC on).
    • The NX NY NZ parameters represent the surface normal vector.

Notes

All existing regular CRC commands have been updated to work in parallel with 3D CRC, if applicable. For example, the CRCLeft? command doesn't make sense to use to output 3D CRC surface normal vectors because the this feature doesn't rely on cutter side g-codes (G41 vs G42). For this reason, if you use the CRCLeft? command with 3D CRC, and if 3D CRC is on (3DCRC? returns true), then the CRCLeft? and CRCRight? commands will both return true.

3D CRC requires GibbsCAM 12.8.4, or later.

5-axis Programming Tips

When you activate "3D Cutter Radius Comp." in the 5-axis process, you will need to consider the type of toolpath being generated and determine if it's 3D CRC friendly. Some scenarios to consider:

  • Make sure the toolpath has sufficient lead-in and lead-out moves when CRC is turned on and off, otherwise it will gouge.
  • The machining surface might have an acute concave corner where the tool will gouge the opposite surface while machining the current surface, because the corner is too acute for the tool.