Inter-block valid comments
#COMMENT BEGIN Beginning of a comment block
:
: Disabled area. All lines are
: overlooked by the NC-kernel
: without being evaluated.
:
#COMMENT END End of a comment block
Both the commands must be programmed, respectively, in an own NC line, i.e. further NC commands in the same block are impermissible. Exception is line-by-line comment that is to be framed in with "(" and ")".
Comment blocks can be defined within or outside an NC-program, however, are restricted to the current file, since on the one hand calls from, and on the other hand returns from global subroutines included in the comments, are not evaluated.
Nesting of comments can be included application-specifically.
Programming example
Nesting enabled:
:
#COMMENT BEGIN Beginning ofcomment block 1
...
#COMMENT BEGIN Beginning of comment block 2
...
#COMMENT END End of comment block 2
...
#COMMENT END End of comment block 1
:
Nesting disabled:
:
#COMMENT BEGIN Beginning ofcomment block 1
...
#COMMENT BEGIN Beginning ofcomment block 2
...
#COMMENT END End of comment block 1 and 2
:
In the following cases, the NC-kernel generates error messages:
- "End of File" is read in within a comment block. This leads to the message : "read in File end before the end of comments."
- #COMMENT END is read without a comment begin programmed previously. Message: Comment end programmed without corresponding comment begin
- After the comment-commands, further NC-commands programmed in the block. Message: "After #COMMENT BEGIN/END no further NC commands allowed