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

Page 151

Advertising
background image

5–40

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

COPY_MEM_TO_PORTA (`src_filename_string", dest_name",

mode)

Use this command to copy your part program file from memory
(either the main, protected, or PC drive) to port A.

The src_filename_string is the same as the file name string given on
page 6–19 and includes specific directory information. The
dest_name string is the name used to store the part program on tape.

The remaining argument with this command is the mode argument
which is an enumeration used to identify that you want to perform
the copy or test the command syntax. The test option will check the
command syntax (including the existence of the source program).
The enumeration for the mode argument is as follows:

Enumeration

Result:

0

test mode

1

execute copy

For example:

[COPY_MEM_TO_PORTA (“MAIND

:SOURCE.PPG ”, “DSTIN”, 1)]

copies the program named SOURCE from the main CNC directory
to a new part program named DSTIN on the device attached to port
A. Note the .PPG extension is not necessary for most devices
connected to port A.

If copying from the hardd directory this path must be the OCI file
handlers configured working directory as specified in the
OCIFHCFG.INI file (see your OCI integration manual).

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

COPY_MEM_TO_PORTB (`src_filename_string", dest_name",

mode)

Use this command to copy your part program file from memory
(either the main, protected, or PC drive) to port B.

The src_filename_string is the same as the file name string given on
page 6–19 and includes specific directory information. The
dest_name string is the name used to store the part program on tape.

Advertising