Part program execution – Rockwell Automation 8520-9API 9/Series OCI API Developer's Guide User Manual

Page 162

Advertising
background image

5–51

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

ENTER_MIDSTART_SEARCH_MODE(search_type)

Use this command to enter midstart program. Refer to your
operation and programming manual for details on midstart operation.
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_MIDSTART_SEARCH_MODE (1)]

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

Use this command in conjunction with the
EXECUTE_MIDSTART_SEARCH_MODE and the
SET_MIDSTART_SEARCH_PATTERN commands.

EXECUTE_MIDSTART_SEARCH (search_method)

After you have entered a search mode, use this command to execute
a mid 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_MIDSTART_SEARCH (1)]

executes the midstart search in the forward direction.

Part Program Execution

Advertising