Rockwell Automation 8520-9API 9/Series OCI API Developer's Guide User Manual
Page 101
![background image](/manuals/580453/101/background.png)
4–53
OCI Data Server Data Items
Publication 8520-6.6 - August 1999
NUM_FILES, cnc_directory_id
Data Type
UINT
Read/Write
Read only
Array Index
cnc_directory_id
Control Type
Lathe/Mill/Grinder
1
1
Grinder Control Type is not available for Release 1 of 9/PC.
Use this data item to determine the number of part programs
currently stored on the CNC in the specified directory. This item can
not be used for part programs stored on the OCI hard drive or
network drive. The index for this item identifies the directory on the
CNC in which you want the total number of part programs stored
there. Valid values for cnc_directory_id are:
1 – main directory.
2 – protected directory.
Excluding the index for this item provides the total number of part
programs in both the main and protected directories.
PART_PROGRAM_COMMENT, directory_spec, file_num
Data Type
String
Read/Write
Read only
Array Index
Program directory, and file number
Control Type
Lathe/Mill/Grinder
1
1
Grinder Control Type is not available for Release 1 of 9/PC.
Use the PART_PROGRAM_COMMENT data item to receive the
comment string from a specific directory for a specific file. The
directory_spec index is enumerated as follows:
1 – Main CNC directory
2 – Protected CNC directory
The file_num index identifies the specific file in the directory. This
index is the position of the file in the directory, the first file being file
1. Files are placed in the directory in alpha/numeric order.
Requesting multiple part program comments will return the comment
strings separated by the Tab character. If a request is made for a
comment name string of a directory that is currently empty, the
server error code #29 is returned.