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

Page 153

Advertising
background image

5–42

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

For example:

[COPY_PORTA_TO_MEM (“SOURCE”,“MAIND

:DSTIN.PPG ”, 1)]

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

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

COPY_PORTB_TO_MEM (`src_name", dest_filename_string",

mode)

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

The

src_name string is the name of the part program you are copying

from the peripheral device on port B. The dest_filename_string is
the same as the file name string given on page 6–19 and includes
specific directory information.

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_PORTB_TO_MEM (“SOURCE”,“MAIND

:DSTIN.PPG ”, 1)]

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

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

Advertising