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

Page 149

Advertising
background image

5–38

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

ACTIVATE_PART_PROGRAM ("Filename_string")

Use this command to activate a part program for automatic
execution. This command typically follows the
SET_PART_PROGRAM_INPUT_DEVICE command which identifies the
input device for the part program. In the event that either port A or
port B are selected as the input device, the filename_string argument
does not require a source directory, only the file name is necessary.

The argument for this command is the filename_string (as discussed
on page 6–19) which will specify the directory and filename for the
backup program. The directory for this program must be either the
main (MAIND), protected (PROTD), on the CNC or the file servers
configured directory on a local or networked drive (HARDD).

For example:

[ACTIVATE_PART_PROGRAM(”HARDD:test1.ppg”)]

activates the part program test1 on the OCI stations configured file
handler drive.

The use of any hard drive or networked drive from the PC is a valid
part program storage devices however, this path must be the same
path specified in the OCI file handler configuration file
(OCIFHCFG.INI for the 9/Series or the Configuration Manager for
the 9/PC) as the file handlers working directory (see your OCI
installation manual for details).

Important: On CNC’s connected to multiple OCI stations the

controlling file handler can directly impact the success
or failure of this command. Note this may or may not
be the same as the controlling data server. Refer to your
OCI installation manual for details.

COPY_PART_PROGRAM (`src_filename_string",

dest_filename_string")

Use this command to copy your part programs to/from your Pc’s
hard drive to/from either the protected or main CNC directories.
Valid devices in the filename string include the CNCs main directory,
the CNCs protected directory, and the OCI file handlers configured
PC directory.

Part Program Commands

Advertising