3 modal paramacro call (g66.1) – Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual

Page 749

Advertising
background image

Paramacros

Chapter 28

28-49

Important: When the control executes block N040, the original value as
set in block N020 for parameter number 1 is ignored, and the most current
value (1.7) is used. The first time macro 1001 is executed, Z moves 1.1
units. The second time macro 1001 is executed, Z moves 1.7 units.

Use this format for calling a paramacro using the G66.1 command:

G66.1 P_ L_ A_ B_;

Where :

Is :

P

Indicates the program number of the called macro. P ranges from 1 - 99999.

L

Programs the number of times the macro will be executed. L ranges from 1 - 9999,
and may be expressed as any valid parametric expression. If not specified, the
control uses a default value of 1.

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.

The G66.1 command is modal and is executed in the same manner as the
G66 with these exceptions:

The macro programmed by the P--word in the G66 block is not executed
when the G66 block is read, whereas the macro programmed by the
G66.1 is executed when G66.1 is read.

The macro is executed in any and all blocks following the G66.1, not
just after motion blocks, except for paramacro command blocks such as
assignment, goto, etc.

Axis motion cannot be generated by normal program blocks. Axis
motion can be generated only in the program called by G66.1.

The following words, when programmed after the G66.1 block, are used
as argument assignments:

N: when programmed after a word other than N or O, is used as
assignment #14.

G: The last G-code programmed in a block will be used as an argument
statement for parameter #10. All other G-codes are interpreted as
normal.

L: Assigns value to parameter #12

P: Assigns value to parameter #16

All other argument assignments are interpreted as listed in Table 28.H.

28.6.3
Modal Paramacro Call
(G66.1)

Advertising