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

Page 156

Advertising
background image

5–45

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

RESTART_PART_PROGRAM (restart_action)

Use this command to restart your part program.

restart_action enumeration is used to control the restart search
operation. This enumeration is:

Enumeration

Result:

1

Continue

2

Top of Program

3

Quit

4

Exit

5

Exit and Move

For example:

[RESTART_PART_PROGRAM(5)]

would select the current block as the next active program block and
generate axis motion to place the axis at the calculated start point for
this program block (refer to your operation and programming manual
for details).

SEQUENCE_STOP_PART_PROGRAM (block_num)

This command activates or deactivates the sequence number stop
feature and also specifies the block number that program execution
will halt at. Refer to your operation and programming manual for
details on the “Sequence Number Stop” feature.

The block_num argument with this command specifies the sequence
number (block number N word). This numeric must be a whole
number numeric ranging from 0 to 99999. Passing the argument
value of 0 to the OCI server disables the sequence number stop
feature. For example:

[SEQUENCE_STOP_PART_PROGRAM(0)]

disables the sequence number stop feature until the command is
issued again with a valid block number.

Advertising