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

Page 158

Advertising
background image

5–47

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

SET_PART_PROGRAM_INPUT_DEVICE (pp_source)

This command selects the input source for part programs. The
pp_source argument is an enumeration as follows:

PP_Source – is used to select the source device for part programs.
For example use this enumeration to specify the port name of a
program you intend to execute from a tape reader. The PP_Source
enumeration is:

Enumeration

Result:

0

Control Memory

2

Port A

4

Port B

Selecting enumeration 0 (control memory) allows the selection of a
program directory (either main, protected, or hard drive) using the
SET_DIRECTORY command. For example:

[SET_PART_PROGRAM_INPUT_DEVICE(0)]

selects control memory for program selection.

Important: This command does not apply to the 9/PC CNC.

SET_PART_PROGRAM_SEARCH_PATTERN (text_string")

Use this command to set your part program search string. This
command specifies the text to be searched for in the part program.

Use this command in conjunction with the
ENTER_PART_PROGRAM_SEARCH_MODE and the
EXECUTE_PART_PROGRAM_SEARCH commands. The actual
string required for this search depends on these other commands.

For example:

[SET_PART_PROGRAM_SEARCH_PATTERN(”100”)]

If the command ENTER_PART_PROGRAM_SEARCH_MODE is
set to N–Search (1) the search will find program block number
N100. If ENTER_PART_PROGRAM_SEARCH_MODE is set to
string search (5) any text with the string 100 will be found.

Advertising