beautypg.com

5 amp-defined m-code macro call – Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual

Page 699

background image

Paramacros

Chapter 20

20-55

Important: Your system installer can disable the use of AMP-defined G
and M-code macro calls when in MDI mode. See your system installer’s
documentation to determine if this feature is functional in MDI.

AMP-defined G-code macros can be executed as either modal or
non-modal macros as selected in AMP. If selected as modal, they can be
executed using either G66 modality (see page 20-50 for details) or G66.1
modality (see page 20-53 for details). This modality type for
AMP-defined G-codes is also determined by your system installer in AMP.

Optional argument statements following an AMP-defined G-code can
contain any valid parametric expression. For example:

G255A[12*6]B[SIN[#101]];

In a part program, if more than one digit is entered after the decimal point,
the value is truncated. For example:

231.18 is 231.1, and 231.14 is 231.1.

Important: Certain AMP-defined G-code Macro calls cannot be called by
other AMP-defined macro calls (see page 20-57 for details).

Use this format when calling an AMP-defined M-code macro:

M255 A_B_

Where :

Programs :

M255

an AMP-defined M-code command.

A-Z

Optional argument statements. May be programmed using any letter from A to Z
excluding G, L, N, O, or P. Used to assign numeric values to parameters in the
paramacro. Arguments may be specified as any valid parametric expression.

These macros are executed only as non-modal macro.

The term AMP-defined M-code macro comes from the fact that the
M-code that calls a specific macro program is specified in AMP by your
system installer. Your system installer can define M-codes that call
paramacro programs with program names ranging from 9001 to 9009. See
your system installer’s documentation to determine which M-codes call
which paramacro program name.

When one of these AMP-assigned M-codes is specified in a part program,
execution is transferred to the macro associated to that specific M-code.

M-code values for paramacro calls can range from -1 to 999. Your system
installer can define a maximum of 9 AMP-defined M-codes to call specific
paramacro programs.

20.6.5
AMP-Defined M-Code
Macro Call