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

Page 752

Advertising
background image

Paramacros

Chapter 28

28-52

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

M255 A_B_

Where :

Is :

M255

Programs 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 (see Table 28.H). 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 the
system installer. The system installer may define M-codes that will call
paramacro programs with program names ranging from 9001 to 9009.
Refer to the system installer’s documentation to determine what M-codes
are used to call what 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 may range from -1 to 999. The system
installer may define a maximum of 9 AMP-defined M-codes to call
specific paramacro programs.

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

Use this format for calling an AMP-defined T--, S--, or B--code macro:

T t ;
S s ;

or

B b ;

Where :

Is equal to the value assigned to parameter:

t

#149

s

#147

b

#146

Important: Programming arguments are not allowed with the
AMP-defined T--, S--, or B--code macro calls.

28.6.5
AMP-Defined M-Code Macro
Call

28.6.6
AMP-Defined T- , S- , and
B- Code Macro Call

Advertising