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

Page 152

Advertising
background image

5–41

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

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_PORTB (“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
B. Note the .PPG extension is not necessary for most devices
connected to port B.

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_PORTA_TO_MEM (src_name",`dest_filename_string",

mode)

Use this command to copy your part program file from port A to
memory, either the main or protected directories (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 A. 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

Advertising