7 macro output commands – Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual

Page 755

Advertising
background image

Paramacros

Chapter 28

28-55

Table 28.J

Works as the System-defined Code

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

No

No

AMP M-code

Yes

No

No

No

AMP-T--, S--, or B--code

Yes

No

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 will execute any other operation that would normally be
performed by that G--, M--, T--, S--, or B--code (as defined by the system as a standard code, PAL, or
some other AMP feature) and the paramacro call normally made by that code is not performed.

Important: If the nesting is invalid (No in one of the above tables), the
control will execute the programmed code as some other function (as
defined by the control as a standard code, PAL, or some other AMP
feature) and the macro call is not made. If no other function is found that
uses that G--, M--, T--, S--, or B--code, the control generates an error.

The rule to follow for Table 28.J is that an AMP-assigned macro may not
call an AMP-assigned macro.

For example, if the calling program is an AMP-assigned M-code
macro, then G65, G66 and G66.1 macro calls are allowed; but no
other types of macro calls are allowed, including an M-code macro.

Paramacros have the ability to force the control to output selected
parameter values to a device attached to the RS-232 port. This is done by
using one of these commands in any macro or MDI program block:

POPEN
PCLOS
BPRNT
DPRNT

Upon execution of these commands in a program block, the control outputs
the appropriate data (in the form of part program blocks such that they may
be output to an RS-232 compatible device).

28.7
Macro Output Commands

Advertising