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

Page 159

Advertising
background image

5–48

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

VERIFY_PART_PROGRAM ("filename1", filename2", mode)

Use this command to perform a compare of two part programs that
both reside in control memory (you can not verify program on the
hard drive with this command). (if you need to verify a part program
from a peripheral see VERIFY_WITH_PORTA or PORTB).

Both the filename1 and filename2 strings are described on
page 6–19. These filename strings contain 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 verification or test the command syntax. The
test option will check the command syntax and in control memory to
memory program checks, will verify the programs exist. The
enumeration for the mode argument is as follows:

Enumeration

Result:

0

test mode

1

execute verify

For example:

[VERIFY_PART_PROGRAM(

”MAIND

:FILE1.PPG”,”MAIND:

FILE2.PPG”,1)]

performs the verification of part programs “FILE1” to “FILE2” in
the controls main program directory. Results of this command come
back as an error code in the command error API item. Test mode
success can be checked using the COMMAND_ERROR_CODE API
item.

Advertising