Tools

Tools Tutorial

Tool Change

_images/tools-01.png

A tool change QPushButton, with a QComboBox to select the tool number to change to, is done with QPushButton named tool_change_pb and a QComboBox named tool_change_cb. The tool change combobox will automatically be populated with all the tools found in the tool table.

Tool Change Controls

Control Function

Object Type

Object Name

Tool Change

QPushButton

tool_change_pb

Tool Selector

QComboBox

tool_change_cb

Manual Tool Change requires at least the following HAL code in the main hal file if the hal connections are not done in another manner.

# manual tool change
loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared

Tool Change Button

Tool change QPushButtons can be used to change tools without a spinbox by adding up to 99 QPushButtons named tool_change_pb_n. With n being the number of the tool you wish to change to using that button

Tool Change Buttons

Control Function

Object Type

Object Name

Tool Change Button

QPushButton

tool_change_pb_(n)

Tool Touchoff

To touch-off a tool to an axis, use a tool-touch-off QPushButton and a QLineEdit to enter the value of the touch off.

Tool Touchoff Controls

Control Function

Object Type

Object Name

Tool Touch Off Value

QLineEdit

tool_touchoff_le

Tool Touch Off

QPushButton

tool_touchoff_(axis letter)