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

Page 155

Advertising
background image

5–44

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

Use this command in conjunction with the
EXECUTE_PART_PROGRAM_SEARCH_MODE and the
SET_PART_PROGRAM_SEARCH_PATTERN commands.

EXECUTE_PART_PROGRAM_SEARCH (Search Method)

After you have entered a search mode, use this command to execute
a part program search. The search_method argument is an
enumeration that identifies the direction of the search operation the
control is to perform. The enumerations are as follows:

Enumeration

Result:

1

Forward

2

Reverse

3

Top of Program

4

Cancel

5

Exit Search

For example:

[EXECUTE_PART_PROGRAM_SEARCH (1)]

executes the search in the forward direction.

This command typically follows the
ENTER_PART_PROGRAM_SEARCH_MODE and the
SET_PART_PROGRAM_SEARCH_PATTERN commands. This
search operation is performed on the active part program.

RENAME_PART_PROGRAM (src_filename_string",

dest_filename_string")

This command is used to rename a program that already exists in the
specified directory. The filename string format is given on
page 6–19 and includes specific directory information. Note the
destination file directory and the source file directory must be the
same. You can not use this command as a method of moving files
from drive to drive. Format for the arguments is source filename
followed by destination filename. For example:

RENAME_PART_PROGRAM (”MAIND

:SOURCE.PPG”,

”MAIND

:DESTINATION .PPG”)

renames the program called source.ppg to destination.ppg in the
main CNC directory.

Advertising