Professional Documents
Culture Documents
You can set the pcomment postblock to output comments with different formats by checking the Gcode
numbers. In the NCI file:
! Gcode 1005 outputs the comment before the current NC block.
! Gcode 1006 outputs the comment after the current NC block.
! Gcode 1007 outputs the comment with the same line as the next arc or linear move.
! Gcode 1008 is a comment from the Comment box on the current toolpath operation. It is handled
internally like a Gcode 1005 comment.
pcomment postblock must first call a user-defined postblock where the Boolean is performed to avoid
clearing the contents of scomm.
The rules for using the comment command are complicated, but keep in mind that the main purpose of
the command is to save comments that appear before a tool change until after the tool change block has
been read.
! If the comment command is not used, the array of comments will be output when the start-of-file
postblock (psof, lsof, msof) is executed but before it is processed.
! If the comment command is used, the comments will be output at the location of the comment
command when the start-of-file postblock is executed and not before.
Note: The function of the postblock pscomm0 is rarely needed. If you use the pscomm0 method, you
would not usually also use the comment command method.