Comments
DIN 66025 Comment
<g-code
> ( <comment
> ) <g-code
>
Text that is enclosed in round parentheses is treated as comment in G
-Code (according to DIN 66025). The comment must not include further parentheses. A comment within round parentheses can extend for multiple blocks or lines and therefore may skip a carriage return, too.
Example:
The following example demonstrates the notation of comments in G
-Code.
N10 G01 X0 Y-10 F3000
N20 G01 (activate linear interpolation) X10 (set X-coordinate to
10) Y0 F6000
(the next block results in a semicircle with center point
X10 Y10)
N30 G02 (activate clockwise interpolation) Y20 U10 (radius is 10)
M02
Line Comment
<g-code> // <comment>
Text between ‘//
’ and the end of line is treated as a comment in G
-Code.
Example:
The following example demonstrates the notation of line comments in G
-Code.
N10 G01 X10 F6000 // perform a linear movement to X10 Y0
// the next block results in a semicircle with center point X10 Y10
N20 G02 Y20 U10
M02