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

Page 167

Advertising
background image

5–56

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

RT_SET_TOOL_NUM (tool_number, pocket_number)

Use this command to assign a tool number to a pocket in the random
tool tables. This command tells the control the location of a tool
number in the tool changer. Refer to your operation and
programming manual for details on using the random tool feature.

To assign custom tool use the RT_CUSTOM_TOOL command. To
register a tool currently in the tool holder use the
ACTIVATE_RANDOM_TOOL command.

There are two arguments for this command. They are:

tool_number – the tool number you are defining for the tool changer

pocket_number – the number of the pocket currently holding the
tool.

Both of these arguments are integers. For example:

[RT_SET_TOOL_NUM(3, 1)]

would identify in the random tool table that tool number 3 is in tool
changer pocket 1.

TM_DELETE_ALL (no argument)

Use this command to delete all the tool management groups.

For example:

[TM_DELETE_ALL]

deletes all data in the tool management tables.

TM_DELETE_GROUP (tool_group_num)

Use this command to delete all tools from a specified tool group.
The argument tool_group_num is the tool group number to delete.

For example:

[TM_DELETE_GROUP(2)]

deletes all the tools in tool management tool group 2.

Advertising