Tools¶
Tool Change¶
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.
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 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.
Control Function |
Object Type |
Object Name |
Tool Touch Off Value |
QLineEdit |
tool_touchoff_le |
Tool Touch Off |
QPushButton |
tool_touchoff_(axis letter) |