Actions

Difference between revisions of "Z Touch-off Puck"

From PROBOTIX :: wiki

(Code)
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
http://www.ebay.com/itm/271301429710
+
[[File:Z-puck_usage.jpg|thumb]]
  
 +
To set the Z origin using the Z-puck, attach the alligator clip to the tool by either clipping it or using the magnet. It's a good idea to touch the puck to the tool and watch the [PROBE] indicator on the screen to make sure the software is recognizing the probe. After the initial configuration, it should always function, but it never hurts to check in the event the puck was disconnected, broken wire, etc. If the puck is not functioning the probe operation will most likely break your end mill.
  
<pre>
+
'''TO USE:'''
( tool-length-probe.ngc )
+
Place the puck under the tool, then click the {{AxisButton|Set Z Origin w/ Puck}} button (found in the [[Probotix Axis Interface]]). Be careful to keep your fingers out of the way. The Z-axis will probe down at 10IPM until contact with the puck is made. At that point the Z origin for the height of the puck will be subtracted from the Z height, and the '''current coordinate system''' Z origin will be set to zero at the base of the puck. You view or set the current coordinate system in the MDI tab.
(this program demonstrates how to measure tool lengths automatically using)
+
(a switch hooked to the probe input. this is useful for machines without)
+
(tool holders, where the length of a tool is different every time it is)
+
(inserted.)
+
  
(g30 should already be set to a position safely above the switch)
+
Our [[ATLaS]] makes use of the built-in tool table system to handle multiple tools but you may want to read here if you want to try achieving similar results with the Z-puck.
 +
* http://www.linuxcnc.org/docs/2.5/html/gcode/tool_compensation.html
  
(start with the first tool loaded, and g54 work offsets set with it)
+
== Retrofitting an Existing Machine ==
(when you touch off the work with this reference tool, be sure length)
+
(comp is off {use g49})
+
  
g20 g90
+
Here is the inside of the connector for machines without the ATLaS Tool Length Sensor:
g49
+
g0 x0 y0 z1
+
  
(measure reference tool)
+
[[File:Z-puck_wiring_no_atlas.jpg|500px]]
g30 (above switch)
+
g38.2 z0 f15 (measure)
+
g91 g0z.2 (off the switch)
+
#1000=#5063 (save reference tool length)
+
(print,reference length is #1000)
+
g90 (done)
+
  
(cut with first tool...)
+
In order to use both the touch-off puck and the tool length sensors, you will need to cut off the existing DB25 connector for the tool length sensor and wire it in to the DB25 connector for the touch-off puck, as seen here:
g0 x0 y0 z1
+
g1 z0 f20
+
g2 x0 y0 i0 j.05
+
  
g0 z2
+
[[File:Z-puck_wiring_atlas.jpg|500px]]
(msg,insert another tool)
+
* ATLaS signal on pin 15
(use TxM6 here if you want to be able to use radius comp too)
+
* Z-puck signal on pin 13
m0
+
 
 +
After installing the puck, you will need to reconfigure the software to recognize it: [[LinuxCNC Configurator]]
 +
 
 +
== Code ==
 +
 
 +
Below is the Z-puck routine and must be kept in the <code>/nc_files</code> directory and be named <code>102.ngc</code>
 +
 
 +
<pre>
 +
o102 SUB
  
(measure next tool)
+
#<_ZP_HEIGHT> = NN                          (NN is the height of your z-puck)
g30 (above switch)
+
#<_MULTIPLIER> = 1 (1 for INCH, 25.4 for MM)
g49 (measure without the last tool's offset)
+
#<_Z_MIN> = nn                 (nn is the maximum Z- probe search distance)
g38.2 z0 f15 (measure)
+
g91 g0 z.2 (off the switch)
+
g43.1 z[#5063-#1000] (set new tool offset)
+
(print,new length is #5063)
+
g90 (done)
+
  
(cut in the same place with this next tool...)
+
M5 M9 (turn off spindle and shop vac)
g0 x0 y0 z1
+
REPLACE_GUNITS (set units)
g1 z0 f20
+
G53 G90 G0 Z0 (retract z)
g2 x0 y0 i0 j.05
+
  
g0 z1
+
G10 L2 P9 Z0 (remove Z offset in G59.3)
 +
G91 G38.2 Z-#<_Z_MIN> F[10 * #<_MULTIPLIER>] (feed down until probe is active)
 +
G10 L20 P0 Z#<_ZP_HEIGHT>
 +
G53 G90 G0 Z0 (retract most of the way up)
  
(exit with tool length offset still in effect, in case we want to use MDI)
+
o102 ENDSUB
m2
+
 
</pre>
 
</pre>

Latest revision as of 11:27, 8 April 2019

Z-puck usage.jpg

To set the Z origin using the Z-puck, attach the alligator clip to the tool by either clipping it or using the magnet. It's a good idea to touch the puck to the tool and watch the [PROBE] indicator on the screen to make sure the software is recognizing the probe. After the initial configuration, it should always function, but it never hurts to check in the event the puck was disconnected, broken wire, etc. If the puck is not functioning the probe operation will most likely break your end mill.

TO USE: Place the puck under the tool, then click the Set Z Origin w/ Puck button (found in the Probotix Axis Interface). Be careful to keep your fingers out of the way. The Z-axis will probe down at 10IPM until contact with the puck is made. At that point the Z origin for the height of the puck will be subtracted from the Z height, and the current coordinate system Z origin will be set to zero at the base of the puck. You view or set the current coordinate system in the MDI tab.

Our ATLaS makes use of the built-in tool table system to handle multiple tools but you may want to read here if you want to try achieving similar results with the Z-puck.

Retrofitting an Existing Machine

Here is the inside of the connector for machines without the ATLaS Tool Length Sensor:

Z-puck wiring no atlas.jpg

In order to use both the touch-off puck and the tool length sensors, you will need to cut off the existing DB25 connector for the tool length sensor and wire it in to the DB25 connector for the touch-off puck, as seen here:

Z-puck wiring atlas.jpg

  • ATLaS signal on pin 15
  • Z-puck signal on pin 13

After installing the puck, you will need to reconfigure the software to recognize it: LinuxCNC Configurator

Code

Below is the Z-puck routine and must be kept in the /nc_files directory and be named 102.ngc

o102 SUB

#<_ZP_HEIGHT> = NN                          (NN is the height of your z-puck)
#<_MULTIPLIER> = 1				(1 for INCH, 25.4 for MM)
#<_Z_MIN> = nn			                (nn is the maximum Z- probe search distance)

M5 M9						(turn off spindle and shop vac)
REPLACE_GUNITS					(set units)
G53 G90 G0 Z0					(retract z)

G10 L2 P9 Z0					(remove Z offset in G59.3)
G91 G38.2 Z-#<_Z_MIN> F[10 * #<_MULTIPLIER>]	(feed down until probe is active)
G10 L20 P0 Z#<_ZP_HEIGHT>
G53 G90 G0 Z0					(retract most of the way up)

o102 ENDSUB