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

Page 703

Advertising
background image

Paramacros

Chapter 20

20-59

The rule to follow for Table 20.K is that an AMP-assigned macro
cannot 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 the following 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 can
be output to an RS-232 compatible device). The port used to output
information from the control is selected in AMP by your system installer.

POPEN

This command affects a connection to the output device by sending a DC2
control code, and a percent character “%”, to the RS-232 interface. This
command must be specified prior to outputting any data. After this
command, the control outputs any following program blocks including the
parameter values that are used in them.

The format for a POPEN block is:

POPEN;

PCLOS

This command disconnects the control from the output device by sending a
DC4 control code, and a percent character “%”, to the RS-232 interface.
This command must be specified after all data has been output. This
command only executes provided that the corresponding POPEN
command has previously been executed.

The format for a PCLOS block is:

PCLOS;

20.7
Macro Output Commands

Advertising