Rockwell-automation 8520-GUM 9/Series CNC Grinder Operation and Progra Manual de usuario Pagina 704

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 820
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 703
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 t he POPEN command has not been issued.
The format for the BPRNT block is:
BPRNT [ s #p[d]...];
Where: Is :
s isanyalpha-numericstring ofcharacters, including all letters,+, -,*, and /
symbols. Note thatthe*isoutputasa space character. This stringisoptional
and doesnotneed to be programmed in theblock.
#p T his is any validparameter number. Note thatthe parameternumbermusthave
the#signbeforeit.
d This indicatesthe numberof digitsafterthe decimalpointto 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;
Vista de pagina 703
1 2 ... 699 700 701 702 703 704 705 706 707 708 709 ... 819 820

Comentarios a estos manuales

Sin comentarios