2 func of called amp macro – Rockwell Automation 8520-ARM2 9/Series CNC AMP Reference Manual Documentation Set User Manual
Page 470
Paramacro Parameters
Chapter 21
21-16
Notes
This is a global parameter; the value set here applies to all axes.
Note that T--, S--, and B--codes that are defined to call paramacros always
call the paramacro, and ignore the system-defined function in MDI unless a
nesting violation has occurred as shown in Table 21.A and Table 21.B.
When a nesting violation occurs, the control executes the system-defined
function if one is defined. A system-defined function is any G- or M-code
that is inherently defined on the control, defined in AMP, or in the
PAL ladder.
Function
This parameter impacts the nesting of AMP-defined G--, M--, T--, S--, or
B--codes that call a paramacro program (see previous parameters in this
chapter). The two options for this parameter are:
Works as a macro call -- When “works as a macro call” is selected, G--,
M--, T--, S--, or B--code macro calls that are nested and called by other
G--, M--, T--, S--, or B--code macro calls allow nesting as shown in
Table 21.A.
Table 21.A
Works as a Macro Call
CALLING-PROGRAM
TYPE OF MACRO NESTED
1
G65,
G66,or
G66.1
AMP-G
AMP-M
AMP-T
S or B
G65, G66 or G66.1
Yes
Yes
Yes
Yes
AMP-G-code
Yes
No
Yes
Yes
AMP-M-code
Yes
Yes
No
No
AMP-T, S or B code
Yes
yes
No
No
1
What Yes/No means:
Yes
---- the macro type across the top row may be called from the macro type down the left column.
No
---- the macro type across the top row may not be called from the macro type down the left column.
When this nesting is attempted, the control executes any other operation that would normally be
performed by that G, M, T, S, or B code (as defined by the control as a standard code, PAL, or
some other AMP feature), and the paramacro call normally made by that code is not performed.
Works as the system defined code -- When “works as the system
defined code” is selected, G, M, T, S, or B code macro calls that are
nested and called by other G, M, T, S, or B code macro calls allow
nesting as shown in Table 21.B.
21.5.2
Func of Called AMP Macro