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

Page 142

Advertising
background image

5–31

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

COPY_OFFSET ("source_axis, destination_axis")

This command copies all of the tool offset values from the tool
geometry and wear tables from a source axis, to a destination axis.
All tool offset values for the source axis are copied to the destination
axis.

For example:

[COPY OFFSET (“X, Y”)]

copies the geometry and wear tables for the X axis to the Y axis
values.

MEASURE_TOOL_GEOM (tool_number, axis_number, ref_pos)

This command performs the tool measure function (refer to your
operation and programming manual for details on measure). When
executed, this command compares the actual axis position to the
entered ref_pos to determine the geometry offset. Three arguments
are specified with this command.

tool_number – the tool geometry offset number you are changing
with this measure command.

axis_number – the logical axis number as defined in AMP.

ref_pos – the fixed reference position (with no geometry or wear
offsets active) of the tool. Refer to your operation and programming
manual for details on determining this fixed machine position. This
is the position the control compares to the actual axis position to
determine the geometry amount.

Important: On Lathe and Cylindrical Grinder control types this

position (ref_pos) value is always entered as a radius
value.

For example:

[MEASURE_TOOL_GEOM (2, 1, 1.777)]

would perform a measure operation to calculate the geometry offset
amount for tool offset 2, axis 1. If no tool geometry or wear offsets
were present the current tool position should be 1.777. The control
then compares the actual tool position to 1.777 and uses the
difference to create the appropriate geometry offset.

Advertising