6 macro call commands – Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual

Page 745

Advertising
background image

Paramacros

Chapter 28

28-45

2.

Enter a name for the backup file and press

[TRANSMIT]

.

The system verifies the file name and backs up the selected
parameters into a part program. You can restore these parameters by
selecting and executing that part program.

Important: If part program calculations cause an overflow value, then the
generated backup file contains an M00 and the parameter number followed
by the word “OVERFLOW” as a comment.

When a paramacro is called, execution of the currently active part program
is halted, and execution is transferred to the macro program. Call
paramacros in the following ways:

Programming G65 in a part program

Programming G66 or G66.1 in a part program

Setting the proper AMP data can call a paramacro with the
programming of specific G--, T--, S--, M--, and B--codes

You can use a paramacro call to call any program that has a program name
of up to 5 numeric digits following the letter O (see chapter 10 on program
names). This program must also contain an M99 end of subprogram or
macro code somewhere in the program before an M02 or M30 is read.
This M99 code causes control to return to the main program or restarts the
paramacro if it is to be executed more than one time.

Important: The M99 code may be programmed anywhere in a paramacro
program block provided no axis words are programmed to the left of the
M99. Any information (other than axis words) programmed to the left of
M99 is executed as part of the paramacro. Any information (including axis
words) programmed in the block to the right of the M99 command is
ignored.

M99X10;

X10 is ignored

X10M99;

Error is generated

M03M99;

M03 is executed

After the control has executed the macro the specified number of times (as
specified by the L--word), execution is returned to the block following the
paramacro call in the calling program.

28.6
Macro Call Commands

Advertising