Rockwell Automation 8520 9/Series CNC Lathe User Manual

Page 727

Advertising
background image

Paramacros

Chapter 28

28-53

POPEN

This command affects a connection to the output device by sending a DC2

control code and a percent character “%” to the RS-232 interface. This

command must be specified prior to outputting any data. After this

command, the control outputs any following program blocks including the

parameter values that are used in them.

The format for a POPEN block is:

POPEN;

PCLOSE

This command disconnects the control from the output device by sending a

DC4 control code and a percent character “%” to the RS-232 interface.

This command must be specified after all data have been output. This

command only executes provided that the corresponding POPEN

command has previously been executed.

The format for a PCLOSE block is:

PCLOS;

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 will

not be 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 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.22

Sample of a BPRNT Block

BPRNT[INSTALL*TOOL*NUMBER*1#123[4]*PRESS*CYCLE*STOP**#234[2]];

Advertising