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

Page 157

Advertising
background image

5–46

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

SET_DIRECTORY (target_dir, password_string")

Use this command to select the active part program directory. This
command is only valid when the input device is set to CNC using the
command

SET_PART_PROGRAM_INPUT_DEVICE. The two

arguments for this command are as follows:

target_dir – This argument is enumerated and identifies the directory
to select. The enumeration is as follows:

Enumeration:

Result:

1

Main Directory - Selects the main part program directory on

the control.

2

Protected - Selects the protectable part program directory on

the control.

3

Hard Drive - Selects the local or network drive on the PC as

defined for the OCI file handler (OCIFHCFG.INI for 9/Series or

the Configuration Manager for the 9/PC). Refer to your OCI

installation documentation for details on this file.

password_string – The protected directory of the CNC may be
configured to require a password before allowing access. If a
password is necessary to select the directory use this second
argument to include the password. If no password is required this
argument must still be passed as a NULL character.

For example:

[SET_DIRECTORY(2,”opertr1”)]

would select the protected CNC directory using the password
opertr1.

SET_PART_PROGRAM_COMMENT (`filename_string", text_string")

This command adds a comment to the part program name to help
better identify the part program. The filename string format is given
on page 6–19 and includes specific directory information. The text
string is the program comment as discussed in your operation and
programming manual (max 20 characters).

[SET_PART_PROGRAM_COMMENT(

“MAIND

:FILE1.PPG”,”CUT INSIDE THREAD”)]

would assign the comment “CUT INSIDE THREAD” to the part
program named FILE1 in the main directory.

Advertising