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

Page 166

Advertising
background image

5–55

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

RT_CUSTOMIZE_TOOL (pocket_number, pockets_needed,

shaft_pocket)

Use this command after you have already entered a tool number in
the pocket (using the RT_SET_TOOL_NUM command) and you
need to make this a custom tool by adding additional pocket spaces
and defining the shaft pocket for the tool.

This command tells the control how many pockets a tool requires
and the location of the shaft pocket with respect to the first pocket
for the custom tool. Refer to your operation and programming
manual for details on using the random tool feature.

There are three argument for this command. They are:

pocket_number – the pocket number you are defining for the custom
tool. Note there must be a tool already assigned to this pocket. This
pocket number is the shaft pocket for the tool.

pockets_needed – the number of pockets required to hold this tool.
(Include any pockets that the tool fixture overlaps).

shaft_pocket – the shaft pocket is always the pocket number used in
the first argument for this command. This argument identify the
location of this shaft pocket with respect to the total number of
pockets needed. (always one for single pocket tools). This argument
ranges from 1 to the value entered for pockets_needed.

These argument are integers. For example:

[RT_CUSTOMIZE_TOOL(16, 4, 2)

would identify the tool currently in pocket 16 as a custom tool. The
shaft pocket is pocket 16 and the tool fixture overlaps pockets 15, 16,
17, and 18.

[RT_CUSTOMIZE_TOOL(4, 3, 1)

would identify the tool currently in pocket 4 as a custom tool. The
shaft pocket is pocket 4 and the tool fixture overlaps pockets 5 and 6.

Advertising