Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual

Page 758

Advertising
background image

Paramacros

Chapter 28

28-58

There may be as many S and #P in a block as desired provided that the
length of the block does not exceed the maximum block size.

Example 28.24

Sample of a DPRNT Block

DPRNT[INSTALL*TOOL*#123[53]*PRESS*CYCLE*STOP**#234[20]];

Example 28.24 would yield an output equal to the character strings with
the * symbols being converted to spaces and the parameter values for
parameters #123 and #234. The value of the parameter is output as a string
of decimal digits. A decimal point is not output if there are no decimal
digits. The most significant digit is output first.

The output may be either ASCII/ISO or EIA format as determined in AMP
by the system installer. Leading zero suppression, and/or a leading plus
sign can also be set by AMP parameters.

Example 28.25

DPRNT Program Example

#12=123.45678;
#4=-98.7;
#30=234.567
POPEN;
DPRNT[___________________________________________]
DPRNT[COMMENT*HERE*X#12[53]*Y#4[53]*T#30[20]];
DPRNT[___________________________________________]
PCLOS;
M30;

The output from Example 28.25 would be:

COMMENT HERE X23.456 Y-98.700 T35

END OF CHAPTER

Advertising