Owner's manual
Paramacros
Chapter 28
28-51
Use this format for calling an AMP-defined macro:
G_ A_ B_;
Where : Is :
G_
Programsan AMP-defined G-code command (from G1 to G255.9).
A-Z
Optional argumentstatements. Maybe programmed using anyletterfromA to Z
excluding G,L,N,O,orP. Used to assign numericvalues to parametersin the
paramacro(seeTable 28.H). Argumentsmaybespecified asany valid parametric
expression.
An AMP-defined G-code macro is a G-code that is specified in AMP by
the system i nstaller. 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 m acros 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.6.4
AMP-defined G-Code Macro
Call