3 g-code paramacro calls – Rockwell Automation 8520-ARM2 9/Series CNC AMP Reference Manual Documentation Set User Manual
Page 460
![background image](/manuals/580257/460/background.png)
Paramacro Parameters
Chapter 21
21-6
This feature lets you define your own G-codes to be used in a part
program. When executed, these G-codes call a specific paramacro
program that you have previously written and stored in control memory.
There are two types of AMP-defined G-codes: Type I and Type II. These
two types of G-codes are functionally identical. The only differences are:
Type I -- This type of AMP-defined G-code is restricted to calling
specific program numbers ranging from 9010 through 9019. G-code
numbers defined here to call a macro program must be integers; no
decimal points are allowed in the G-code.
Type II -- This type of AMP-defined G-code allows selectable program
numbers ranging from 1 through 8999. G-code numbers defined here to
call a macro program can optionally contain a decimal point (for
example, G120.1).
When creating a G-code to call a paramacro program, you must define:
Define
Using Type 1 Parameter
Using Type 2 Parameter
What G-code is to be used
G-code for Macro Call to
9010 -- 9019
Select from: 1 -- 255
G-code for Macro Call 1 -- 15
Select from: 1.0 -- 255.9
If G-code is modal or
non-modal
Type of Macro Call to
9010 -- 9019
Select from: not
used/modal/not modal
Type of Macro Call 1 -- 15
Select from: not
used/modal/not modal
If modal, select a modal type
1
(G66 or G66.1)
Modality of AMP G-Codes
Modality of AMP G-Codes
What part program number
not configurable; fixed at 9010
through 9019
configurable; select from: 1 --
8999; Program Number for
Macro Call 1 -- 15
1
non-modal macro calls are always executed in the same fashion as a G65 macro call
21.3
G-Code Paramacro Calls