10. PROGRAM CONFIGURATION
Any information enclosed by the control–out and control–in codes is
regarded as a comment.
The user can enter a header, comments, directions to the operator, etc. in
a comment section.
Table 10.1 (c) Codes of a control–in and a control–out
Notation in this
Control–out ( 2–4–5 ( Start of comment section
Control–in ) 2–4–7 ) End of comment section
When a program is read into memory for memory operation, comment
sections, if any, are not ignored but are also read into memory. Note,
however, that codes other than those listed in the code table in Appendix
A are ignored, and thus are not read into memory.
When data in memory is output on external I/O device(See III–8), the
comment sections are also output.
When a program is displayed on the screen, its comment sections are also
displayed. However, those codes that were ignored when read into
memory are not output or displayed.
During memory operation or DNC operation, all comment sections are
The TV check function can be used for a comment section by setting
parameter CTV (bit 1 of No. 0100).
If a long comment section appears in the middle of a
program section, a move along an axis may be suspended
for a long time because of such a comment section. So a
comment section should be placed where movement
suspension may occur or no movement is involved.
1 If only a control–in code is read with no matching
control–out code, the read control–in code is ignored.
2 The EOB code cannot be used in a comment.
A tape end is to be placed at the end of a file containing NC programs.
If programs are entered using the automatic programming system, the
mark need not be entered.
The mark is not displayed on the screen. However, when a file is output,
the mark is automatically output at the end of the file.
If an attempt is made to execute % when M02 or M03 is not placed at the
end of the program, the P/S alarm (No. 5010) is occurred.
Table 10.1 (d) Code of a tape end
Notation in this
Tape end % ER %
D Comment section
D Tape end