4 amp-defined g-code macro call – Rockwell Automation 8520 9/Series CNC Lathe User Manual

Page 722

Advertising
background image

Paramacros

Chapter 28

28-48

Use this format for calling an AMP-defined macro:

G_ A_ B_;

Where :

Is :

G_

Programs an AMP-defined G-code command (from G1 to G255.9).

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 (see NO TAG). Arguments may be specified as any valid parametric

expression.

An AMP-defined G-code macro is a G-code that is specified in AMP by

the system installer. When one of these AMP-defined G-codes is executed

in a part program, execution is transferred to the macro with the program

number associated to that G-code.
G-code values for paramacro calls may range from 1 to 255.9. The system

installer may define a maximum of 25 AMP-defined G-codes to call

specific paramacro programs. The paramacro program name called with

the AMP-defined G-code is a program number from 1 to 8999 or 9010 to

9019. Refer to the system installer’s documentation for details.

Important: The system installer may disable the use of AMP-defined G

and M-code macro calls when in MDI mode. Refer to the 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

execute using either G66 modality or G66.1 modality. This modality type

for AMP defined G-codes is also determined by the system installer in

AMP.

Any optional argument statements following an AMP-defined G-code may

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 will be 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

any other AMP-defined macro call.

28.5.4

AMP-defined G-Code Macro

Call

Advertising