Rockwell Automation 8520-9API 9/Series OCI API Developer's Guide User Manual

Page 55

Advertising
background image

4–7

OCI Data Server Data Items

Publication 8520-6.6 - August 1999

SETUP_BUFFERS

This array index is dimensioned by the currently available part
program setup buffers. This number is dependent on several factors
including complexity of the current part program and number and
type of features active at any given time. This number will range
from a minimum of 1 to a maximum of 21.

For example the data item ACTIVE_PART_PROGRAM_BLOCKS,
which allows you to identify blocks that have been read into the
setup buffer uses this array index:

ACTIVE_PART_PROGRAM_BLOCKS,2

NUM_PP_FILES

This array index is dimensioned by the number of part programs
currently in the directory. Not to be confused with the part program
name (proceeded with the O word and often a number) this integer
value is the number in the directory of the program you want to
investigate. For example if the main directory has three part
programs in it:

O123456
DRVSHAFT
RRIGHT47

O123456 would be program one. DRVSHAFT would be program 2
and RRIGHT47 would be program 3. The maximum size of this
array index is dependent on the number of programs in the directory.

For example the data item FILE_NAME, which returns a string of
the part program name, uses this array index to determine which
program name you want. Note this data item also uses the
NUM_CNC_DIRECTORIES array index. Format is:
FILE_NAME,

NUM_CNC_DIRECTORIES, NUM_PP_FILES

FILE_NAME,1,3

returns the STRING of “RRIGHT47” assuming RRIGHT47 is the
third program in the main part program directory.

Part programs are stored in alphabetical order in the CNC
directories.

Advertising