
HyTechWorks©2013 – V3.1 45
Finally, script for auto tool setting needs to be updated. Operate the main menu
“Operator”->”Edit Button Script”. Then click on flashing “Auto Tool Zero” button,
as shown below.
Type the following script in the new window.
Declare Sub AutoToolSetting Lib "HyCNC_4P"(ByVal ctool As Integer)
AutoToolSetting(GetOEMDRO(824))
AutoToolSetting is a function define in HyCNC_4P.DLL. The input parameter is the
tool number (the green circle in above figure), provided by GetOEMDRO(824)
standard function. Then click menu “file”->”Save”. When auto tool setting is
required, click on the tool number box (the green circle in above figure). Type in
tool number other 0 followed by return (tool 0 always has 0 offset). Then put tool
setter on the machine bench and jog the tool above center of the tool setter.
Press “Auto Tool Zero” to start tool setting process. After tool setting is finished,
the box indicated by the blue arrow (see above figure) is updated with the
measured tool length. Please pay attention, the new tool length won’t be used
immediately. To use the new value, either type G43 in MDI or click on page
“Offset” of the main interface. There is a button called “Turn Offset on/Off” and a
green indicator beside it. If the indicator is on, click “Turn Offset on/Off” twice to
use the new tool length offset. If the indicator is off, click “Turn Offset on/Off”
once to use the new tool length offset.
Kommentare zu diesen Handbüchern