Dprnt – Rockwell Automation 8520 9/Series CNC Lathe User Manual

Page 728

Advertising
background image

Paramacros

Chapter 28

28-54

Example 28.22 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 in binary

as a 32-bit string with the most significant bit output first. Negative values

are output in 2’s complement.

Example 28.23

BPRNT Program Example

#123=0.40936;

#124=-1638.4;

#10=12.34;

POPEN;

BPRNT[____________________________________________];

BPRNT[COMMENT*HERE*X#123[3]**Y#124[3]**Z#10[0]];

BPRNT[____________________________________________];

PCLOS;

M30;

The output from Example 28.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 will

not be executed if the POPEN command has not been issued.

The format for the DPRNT block is:

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

Where :

Is :

s

Is 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

This is any valid parameter number. Note that the parameter number must have

the # sign before it.

i

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

d

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

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

Advertising