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

Page 143

Advertising
background image

5–32

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

MEASURE_TOOL_WEAR (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 wear offset. Three arguments are
specified with this command.

tool_number – the tool wear 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 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 wear 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_WEAR (1, 2, 1.777)]

would perform a measure operation to calculate the wear offset
amount for tool offset 1, axis 2. If no tool wear 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 wear offset.

MEASURE_WHEEL_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). This
command is for grinder controls only. 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 wheel/dresser geometry offset number you are
changing with this measure command.

axis_number – the logical axis number as defined in AMP.

Advertising