Owner's manual
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
SorB
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--,orB--code Yes No No No
1
WhatYes/Nomeans:
Yes ---- the macro ty pe across the top row m ay be called from the macro type down the left column.
No ---- the macro type across the top row may not becalledfromthemacrotypedowntheleftcolumn.
When this nesting is attempted, the control will ex ecute any other operation that w ould normally be
performed by thatG-- , M-- , T--, S-- , or B-- code(as defined by the systemas 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 t o follow for Table 28.J is that an AMP-assigned macro may not
call an AMP-assigned macro.
For example, i f 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 a bility 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