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

Page 704

Advertising
background image

Paramacros

Chapter 20

20-60

BPRNT

This command initiates the outputting of a variable number of parameter
values in binary 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 BPRNT block is:

BPRNT [ s #p[d]...];

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.

d

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

There can 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 20.22

Sample of a BPRNT Block

BPRNT[INSTALL*WHEEL*NUM-
BER*1#123[4]*PRESS*CYCLE*STOP**#234[2]];

Example 20.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 20.23 gives an example of a BPRNT program.

Example 20.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;

Advertising