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

Page 746

Advertising
background image

Paramacros

Chapter 28

28-46

CAUTION: Any edits that are made to a subprogram, or to a
paramacro program (as discussed in chapter 5) that has already
been called for automatic execution, are ignored until the calling
program is disabled and reactivated. Subprograms and paramacros
are called for automatic execution the instant that the calling
program is selected as active (as discussed in chapter 7).

Use this format for calling a paramacro using the G65 command:

G65 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 G65 command is non-modal. The macro is executed only at the time
the control executes the G65 block. The control calls the macro specified
by the G65 block as programmed by the P--word.

The control executes this macro until the control reaches an M99 macro
return code. The macro then returns to the next unexecuted sequential
block in the calling program unless the macro has not been repeated the
number of times as determined by the L--word. If this is the case, the
macro re-executes.

You can define the L--word or any optional argument statements in a G65
block by using any valid parametric expression. For example:

G65 P1002 L[#1+1] A[12*6] B[SIN[#101]];

28.6.1
Non-Modal Paramacro Call
(G65)

Advertising