3D CRC: Difference between revisions
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
==What is 3D CRC?== | ==What is 3D CRC?== | ||
TODO. | TODO. | ||
==Post Changes== | ==Post Changes== | ||
| Line 31: | Line 27: | ||
3D CRC requires GibbsCAM 12.8.4, or later. | 3D CRC requires GibbsCAM 12.8.4, or later. | ||
==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. | |||
==3D CRC Support== | ==3D CRC Support== | ||
Revision as of 19:14, 1 March 2018
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?
TODO.
Post Changes
The changes that need to be made to a post to support 3D CRC are relatively easy, and can be applied to all mill posts:
- Add the new Output3DCRCNormal command after the MoveAllAxes command (or its equivalent) inside the Line/Rapid/Arc 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.
3D CRC requires GibbsCAM 12.8.4, or later.
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.
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.