Love this macro feature! Seems like the community could make a more complete library – is there somewhere else I should be looking? Supposing this is it so far, I’m attaching the few quickies I made which have proven useful (not all have been tested much, so caveat emptor). Also note that these probing macros don’t have the benefit of being able to read machine configuration or present UI for picking tool diameters &c, so there are hardcoded values, e.g., for the size of the probing block, that you may need to update. I recommend setting each to show a warning when started, in case they’re activated by accident – they don’t have confirmations built-in. One final warning: running a macro seems to replace the currently loaded file, so I frequently find myself loading a file, running a probing macro, then getting confused by “Over” or “Under” errors, before realizing I need to reload the toolpath.
I use 3 super-simple “Park” macros that send the cutter to the back, either left, right, or wherever it happened to be in x already. (These are specific to the 32+" Woodworker, and don’t quite go ALL THE WAY to the corners, as I had problems with homing a machine that started right at X0, so these go 5mm from back & corners, e.g. X5 Y811 in mm)
ParkRearLeft.ngc (19 Bytes)
ParkRear.ngc (16 Bytes)
ParkRearRight.ngc (21 Bytes)
A series of probing routines for 1/4 or 1/8" bits that permit the probe block to be in upper-left or lower-right corners, in addition to the built-in lower-left functionality:
ProbeUL_1-4.ngc (759 Bytes)
ProbeUL_1-8.ngc (759 Bytes)
ProbeLR_1-4.ngc (948 Bytes)
Note that all the probing macros start with the familiar requirement to touch off the bit to the block before starting, to confirm connections are good – careful watchers may notice that the probe is moving extremely slowly upwards while waiting for this “test contact.” (Not sure if I could use M66 or something to avoid this motion, but works well as is, so I’m trying not to be a perfectionist.)
Next, a couple of Z probe routines designed to make it faster to deal with a tool change where the 0 is no longer easily probe-able – you put the probe block anywhere, do a quick Z probe with the “before” tool using the:
ProbeZsave.ngc (458 Bytes)
macro, then change tools and probe the “after” tool with:
ProbeZrestore.ngc (420 Bytes)
That should adjust coordinates appropriately as long as the probe block was at the same Z for both. (Haven’t tested this much, made it after I accidentally used top of stock for a reference where the stock gets carved into an uneven surface and then the tool is changed.)
Finally, in order to get the most Z travel I can on my Woodworker I have the Z carriage mounted pretty high, so I sometimes get in trouble with short bits not being able to go much below the wasteboard, or even reach it sometimes. There’s a related problem where, even when my tool can make it everywhere it needs to go, using the built-in probing dialogs generates an error because they ask the probe to move way farther down than it needs to to find the block. Probing fails even though the probe would stop long before it gets to the unreachable Z depth. For these situations I created
ProbeZshallow.ngc (413 Bytes)
which does a regular Z probe, except it only probes 1cm down looking for the block, so it should be started with the bit pretty close.
Hope some of those are useful to someone, and that my first go at CNC macros aren’t too bad!