Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual

Page 279

Advertising
background image

Introduction to Programming

Chapter 10

10-5

(6) Comment
Information punched between the control out code “(” and the control in
code “)” within the program section is considered a comment and is not
handled as significant information (even though it is copied to and from
control memory or tape). Any number of comments can be included in a
part program interspersed with program blocks or words.

Example 10.1

Comments in Part Programs

X1.Z1.(START MOTION);

(CALL SUBPROGRAM 1);

(12345);

Each of the above program blocks contains a comment. The control does
not regard the comment as significant information, except when it appears
in the first block of the program. In this case, the comment is displayed on
the program directory screen as part of the program name.

The comment can be up to 128 characters long (including the control out
and control in codes), and can consist of any alphanumeric characters and
special symbols. However, the comment cannot include the following
codes:

(
)
ER, %

(rewind stop codes)

EOB

(end of block)

Important: If rewind stop codes are included in the comment, the tape
rewind function (M30) causes the rewind to stop in the comment section of
the tape.

(7) Program End
The control stops reading the part program when it reads a program end
code. The following codes can be used as program end codes:

M02 ---- end of program

M30 ---- end of program and tape rewind

M99 ---- end of program, tape rewind, and restart the program

% ---- end of program and end of tape code

PRGRM NAME ---- end of program

(8) Tape End (Rewind, Stop Code)
The tape end code, indicating the end of a tape, is designated with either:

% ---- ASCII format

ER ---- EIA format

Advertising