beautypg.com

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

Page 154

background image

5–43

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

DEACTIVATE_PART_PROGRAM (no argument)

Use this command to deactivate the currently active part program.
No arguments are required with this command. For example:

[DEACTIVATE_PART_PROGRAM]

would deactivate the part program currently active on the control.

DELETE_PART_PROGRAM (filename_string")

This command deletes the part program from the control or OCI
station. The filename string format is given on page 6–19 and
includes specific directory information. For example:

[DELETE_PART_PROGRAM (“MAIND

:DSTIN.PPG ”)]

would delete the part program DSTIN located in the controls main
directory.

ENTER_PART_PROGRAM_SEARCH_MODE (search_type)

Use this command to access part program search mode. The
search_type argument is an enumeration that identifies the type of
search operation the control is to perform.

The enumerations are as follows:

Enumeration

Result:

1

NĆSearch

2

OĆSearch

3

EOB Search

4

Slew Search

5

String Search

For example:

[ENTER_PART_PROGRAM_SEARCH_MODE (1)]

readies the control to perform an N word search. Exit search mode
using the command [EXECUTE_PART_PROGRAM_SEARCH(5)].