Dprnt – Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual

Page 705

Advertising
background image

Paramacros

Chapter 20

20-61

The output from Example 20.23 would be:

COMMENT HERE

X0.409 Y1638.400

Z12.

If the output went to a punched paper tape, it would be formatted in ISO
code.

DPRNT

This command initiates the outputting of a variable number of parameter
values in decimal format. An end of block character is output at the
completion of outputting all of the specified values. This command is not
executed if the POPEN command has not been issued.

The format for the DPRNT block is:

DPRNT [ s #p[id]...];

Where :

Is :

s

any alpha-numeric string of characters, including all letters, +, -, *, and / symbols.
Note that the * is output as a space character. This string is optional and does
not need to be programmed in the block.

#p

any valid parameter number. Note that the parameter number must have the #
sign before it.

i

the number of digits before the decimal point to be output.

d

the number of digits after the decimal point to be output.

Important: The sum of i + d cannot exceed 8.

There can be as many s and #p in a block as you want provided that the
length of the block does not exceed the maximum block size.

Example 20.24

Sample of a DPRNT block

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

Example 20.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 can be either ASCII/ISO or EIA format as determined in AMP
by your system installer. Leading zero suppression, and/or a leading plus
sign can also be set by AMP parameters.

Advertising