3D CRC: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Dannym (talk | contribs)
Dannym (talk | contribs)
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Overview==
==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.
GibbsCAM 13 adds a new feature to its 5-axis mill module called 3D CRC (not supported in Lathe). This new feature can be toggled in the General tab of the 5-axis process dialog within GibbsCAM.  Because 3D CRC appends new tool path data to the operation, a small post processor change is required.


==What is 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.
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
A normalized vector is a mathematical quantity with a magnitude (length) of 1 and a direction. The direction of a surface normal vector is determined by the IJK (or Nx/Ny/Nz for Heidenhain) components.
perpendicular from the surface to be machined to the tool center.
 
[[Image:3DCRC.PNG]]
<br>
''As shown in the diagram above, the tool is moved through the tool radius r in the plane-normal vectorial direction of (I, J, K) from the program coordinates (x, y, z) to the offset tool center coordinates (x’, y’, z’). Also, unlike two-dimensional tool radius compensation, which generates vectors perpendicular to the direction of (I, J, K), three-dimensional tool radius compensation generates vectors in the direction of (I, J, K). (The vectors are generated at the ending point of that block.)''


===Applications===
===Applications===
* Use of tools with dimensions that do not correspond with the dimensions calculated by the CAD system.
* Use of tools with dimensions that do not correspond with the dimensions calculated by the CAD system, just like why you might use regular 2D CRC.
* 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.
* 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.
* 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==
==Post Changes==
The changes that need to be made to a post to support 3D CRC are relatively easy:
The changes that need to be made to a post to support 3D CRC are straight-forward:


* Add the new [[Output3DCRCNormal]] command after the [[MoveAllAxes]] command (or its equivalent) inside the Line/Rapid/Arc toolpath sub-routines. For example:
* Add the new [[Output3DCRCNormal]] command after the [[MoveAllAxes]] command (or its equivalent) inside the Line/Rapid/Arc-segmentation toolpath sub-routines. For example:


  tpRapidFeat:
  tpRapidFeat:
Line 26: Line 29:
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.
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:
* If you need to format the surface normal vectors in a way not supported by the input fields in the Form dialog, then you can use the [[3DCRCNormalI#]] commands. For example:
  3DCRCSurfaceNormals:
  3DCRCSurfaceNormals:
   IF [[3DCRC|3DCRC?]] AND NOT CRCOff?
   IF [[3DCRC|3DCRC?]] AND NOT CRCOff?
Line 32: Line 35:
   END
   END
  RETURN
  RETURN
Then you can call the 3DCRCSurfaceNormals sub-routine instead of [[Output3DCRCNormal]] within toolpath.
Then you can call the 3DCRCSurfaceNormals sub-routine instead of [[Output3DCRCNormal]] within the toolpath sub-routines.
 
3D CRC requires GibbsCAM 12.8.4, or later.


==Form Changes==
==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 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.
* 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.
* It is recommended to set the post's Segmentation Tolerance to 0 (found in Form > Movement > Rotary > Rotary Toolpath Options). With a setting of 0, the post will not introduce any additional tool path segmentation, which is important 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.
** If the post introduces more segmentation, GibbsCAM must interpolate the 3D CRC surface normal vector between the segmented points. This interpolation is a best guess at what the CNC needs to machine a smooth tool path, so adding more segmentation increases the uncertainty in the accuracy of the interpolated surface normal vector.


==3D CRC Support==
==3D CRC Support==
Line 51: Line 52:


===Explicit 3D CRC (Supported)===
===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 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 to turn explicit 3D CRC on or off.


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


==Example CNC Output Formats==
==Example CNC Output Formats (Explicit 3D CRC)==
Here are some sample output codes for various machine controllers.
Here are some sample output codes for various machine controllers.


Line 62: Line 63:
** 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 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.
** The I J K parameters represent the surface normal vector.
*** G41 and G42 are also used in regular 2D CRC. The difference on this g-code block is the introduction of the I J K parameters; indicating 3D CRC.
* Haas
* Haas
** G141 X Y Z D I J K
** G141 X Y Z D I J K
Line 72: Line 74:


==Notes==
==Notes==
All existing regular CRC commands have been updated to work in parallel with 3D CRC, if applicable. For example, the [[CRCLeft|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|CRCLeft?]] command with 3D CRC, and if 3D CRC is on ([[3DCRC|3DCRC?]] returns true), then the [[CRCLeft|CRCLeft?]] and [[CRCRight|CRCRight?]] commands will both return true.
* All existing regular CRC commands have been updated to work in parallel with 3D CRC, if applicable. For example, the [[CRCLeft|CRCLeft?]] command doesn't make sense to use to output 3D CRC surface normal vectors because this feature doesn't rely on cutter side g-codes (G41 vs G42). For this reason, if you use the [[CRCLeft|CRCLeft?]] command with 3D CRC, and if 3D CRC is on ([[3DCRC|3DCRC?]] returns true), then the [[CRCLeft|CRCLeft?]] and [[CRCRight|CRCRight?]] commands will both return true.
* 3D CRC surface normal vectors are not always generated by the 5-axis toolpath engine, even if "3D cutter radius comp." is checked in the 5-axis process dialog. This means the checkbox can be checked, but [[3DCRC|3DCRC?]] can still return false because the post commands only work if the toolpath contains surface normal vectors.
* 3D CRC requires GibbsCAM 12.8.4, or later.


==5-axis Programming Tips==
==5-axis Operation 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:
When you activate "3D Cutter Radius Comp." in the 5-axis process, you will need to consider the type of tool path 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.
* Make sure the tool path 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.
* 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.


[[Category:Articles]]
[[Category:Articles]]
[[Category:GibbsCAM v13]]

Latest revision as of 17:54, 17 June 2019

Overview

GibbsCAM 13 adds a new feature to its 5-axis mill module called 3D CRC (not supported in Lathe). This new feature can be toggled in the General tab of the 5-axis process dialog within GibbsCAM. Because 3D CRC appends new tool path data to the operation, a small post processor change is required.

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 magnitude (length) of 1 and a direction. The direction of a surface normal vector is determined by the IJK (or Nx/Ny/Nz for Heidenhain) components.


As shown in the diagram above, the tool is moved through the tool radius r in the plane-normal vectorial direction of (I, J, K) from the program coordinates (x, y, z) to the offset tool center coordinates (x’, y’, z’). Also, unlike two-dimensional tool radius compensation, which generates vectors perpendicular to the direction of (I, J, K), three-dimensional tool radius compensation generates vectors in the direction of (I, J, K). (The vectors are generated at the ending point of that block.)

Applications

  • Use of tools with dimensions that do not correspond with the dimensions calculated by the CAD system, just like why you might use regular 2D CRC.
  • 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 straight-forward:

  • 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 input fields 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 the toolpath sub-routines.

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). With a setting of 0, the post will not introduce any additional tool path segmentation, which is important while using 3D CRC with 5-axis.
    • If the post introduces more segmentation, GibbsCAM must interpolate the 3D CRC surface normal vector between the segmented points. This interpolation is a best guess at what the CNC needs to machine a smooth tool path, so adding more segmentation increases the uncertainty in the accuracy of the interpolated surface normal vector.

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 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 (Explicit 3D CRC)

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.
      • G41 and G42 are also used in regular 2D CRC. The difference on this g-code block is the introduction of the I J K parameters; indicating 3D CRC.
  • 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 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 surface normal vectors are not always generated by the 5-axis toolpath engine, even if "3D cutter radius comp." is checked in the 5-axis process dialog. This means the checkbox can be checked, but 3DCRC? can still return false because the post commands only work if the toolpath contains surface normal vectors.
  • 3D CRC requires GibbsCAM 12.8.4, or later.

5-axis Operation Programming Tips

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

  • Make sure the tool path 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.