Preprocessing
G-Code: G40, G41, G42, G43, G50, G51, G52, G60, G61, G70, G71
Function: The commands activate preprocessing modules, such as SMC_SmoothPath, SMC_RoundPath, SMC_AvoidLoop, SMC_ToolCorr, SMC_ToolLengthCorr, and SMC_ToolRadiusCorr.
Tip
If the Show preprocessed path option is selected, then the edited path is visible in the graphical editor.
Syntax
G40 G41 D G42 D G50 G51 D G52 D G60 G61
G Code Word | Description |
|---|---|
| Tool radius or overlay radius for |
Note
For versions before 4.18.0.0: The angle rounding/smoothing (G51/G52) and tool radius correction (G41/G42) can influence each other because both preprocesses interpret each D word in the G code. For example, if a tool radius correction with radius=1 is active when an angle rounding starts with D=5, then as a result the tool radius correction also uses a radius of 5.
For version 4.18.0.0 and higher: Angle rounding/smoothing (G51/G52) and tool radius correction (G41/G42) can be used simultaneously without affecting each other. The following behavior applies for this.
For tool radius correction (
G41/G42): By default, the 'Tool' radius used bySMC_ToolRadiusCorris 0. If a D word is specified after the G wordsG41/G42, then the 'Tool' radius is adjusted and taken into account by the function blocks. When no value is specified, the currently set 'Tool' radius is used.For angle rounding/smoothing (
G51/G52): By default, the 'Smooth' radius used bySMC_Round/SmoothPathis 0. If a D word is specified after any G word (exceptG36/G37/G40/G41/G42) or on its own (for example,N00 D5), then this affects the current 'Smooth' radius and is taken into account by theSMC_Round/SmoothPathfunction blocks.
G Code | Description |
|---|---|
| End of tool radius correction |
| Start of tool radius correction to the left of the workpiece |
| Start of tool radius correction to the right of the workpiece |
| Starts the tool length correction The tool offset to be corrected is specified with the For more details, see: Note: The length of the tool must not change during an active tool radius correction because a jump in the path can result. The tool length correction (G43) works in the online decoder only (not in the CNC editor). |
G Code | Description |
|---|---|
| End of angle rounding and smoothing |
| Start of angle smoothing by means of |
| Start of angle rounding by means of |
| End of smoothing of additional axes by means of |
| Start of smoothing of additional axes by means of |
G Code | Description |
|---|---|
| End of function for loop suppression |
| Start of function for loop suppression by means of |
N0 G51 D10 F100 N10 G01 X$g_x$ Y0 F50 E30 E-30 N20 G01 X0 Y$g_y$ N30 G01 X0 Y0 N40 G50