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

Page 138

Advertising
background image

5–27

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

ACTIVATE_WHEEL_RADIUS (offset_number)

This command activates the specified wheel/dresser radius offset.
This command is valid only for grinder control types.

The offset_number argument for this command is the any valid offset
number as entered into the wheel/dresser offset table for this tool.

[ACTIVATE_WHEEL_RADIUS(4)]

Activates the wheel/dresser offset number 4. This command only
activates the offset value (T word). You must still program the
appropriate G code (G40, G41, G42) in the part program to specify
when and how the offset is activated. Refer to your Grinder
operation and programming manual for details on activating
dresser/wheel radius compensation.

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

BACKUP_ALL_OFFSETS ("Filename_string")

This command tells the control to create a backup program of the all
offset tables including, work coordinate system, tool geometry, and
tool wear offset tables. All of these tables are backed up into one
part program file. Refer to your operation and programming manual
for details.

The argument for this command is the filename_string (as discussed
on page 6–19) which will specify the directory and filename for the
backup program. The target directory for this backup program must
be either the MAIND or PROTD. You cannot create the backup
program on the remote OCI hard drive. If the filename specified
with this argument does not exist on the CNC the control will create
it (assuming proper syntax is followed in the command). If the
filename already exists, the control will abort the backup and send an
error return code.

For example:

[BACKUP_ALL_OFFSETS(“maind:allback.ppg”)]

would create the backup program on the CNC’s main directory and
name the backup program allback.

Advertising