I'm back to post the probe macros as stated above. I kind of got lost trying to do all axes in one macro and ran into trouble with the the offset, end-mill radius, saving and restoring a tool position with the G60 command, DWC workstation coords were not making sense, and I couldn't figure out why the G38.2 only ran in a negative direction on some macros, etc... Then applied the tried and true K.I.S.S. technique and then the DWC showed me zeros on all axes at the workpiece origin. Yeah baby!
The macros below are a jog to an axis position before you start the probe macro. This should be a easy start for all of us CNC noobs out there trying to get started cutting some material and making stuff.
The macros are simple straight forward easy to edit starting point. When your are ready to make a "do-all axes at once" macro, I found that calling each separate axis macro within a single macro with the M98 command the best way to prevent an error message from the DWC stating that the probe was already triggered after probing the first axis in the code.
I hope this helps to get you started.
Jog-Q-X-Probe.g The Q stands for a 1/4 (quarter) inch end-mill. The macro needs to be edited for 1/8 or any other size.
; Jog-Q-X-Probe.g - Quarter (6.4mm) end-mill X Probe, jog tool in position to touch plate B4 starting this macro
; For use with Openbuilds XYZ Touch Probe Plus (10mm edge thickness, 9mm top thickness).
;
G21 ; Metric
G38.2 X-50 F100 ; Seek along X until contact with probe plate
G10 L20 P1 X13.2 ; Store probe offset's in co-ordinates system for X
G91 G1 X5 F300 ; Back away from touch plate
G91 G0 Z15 ; Move Z quickly up
Jog-Q-Y-Probe.g
; Jog-Q-Y-Probe.g - Quarter (6.4mm) end-mill Y Probe, jog tool in position to touch plate B4 starting this macro
; For use with Openbuilds XYZ Touch Probe Plus (10mm edge thickness, 9mm top thickness).
;
G21 ; Metric
G38.2 Y50 F100 ; Seek along Y until contact with probe plate
G10 L20 P1 Y-13.2 ; Store probe offset's in co-ordinates system for Y
G91 G1 Y-5 F300 ; Back away from touch plate
G91 G0 Z15 ; Move Z quickly up
Jog-Q-Z-Probe.g
; Jog-Q-Z-Probe.g - Quarter (6.4mm) endmill Z Probe, jog tool in position to touch plate B4 starting this macro
; For use with Openbuilds XYZ Touch Probe Plus (10mm edge thickness, 9mm top thickness).
;
G21 ; Metric
G38.2 Z-50 F100 ; Seek along Z until contact with probe plate
G10 L20 P1 Z9 ; Store probe offset's in co-ordinates system for Y
G91 G1 Z5 F300 ; Back away from touch plate
XYZ-Probe.g This is an example of how to use the M98 gcode command to run a set of macros using the Openbuilds touch probe plus. The touch plate has a 14mm hole at the X0, Y0, Z0 coords of the touch plate that can be used as a start and end point for each individual axis macro so you can call them all in a single macro. When I tried to run a macro that triggered the probe more than once I received an error from the DWC. I am not sure if the error was significant enough to cause the a problem with the coordinate system since I abandoned the hack for the M98.
; Calls all macros for quarter size bits on all axes
M98 P"/macros/XY-Probe-center.g" ; run XY-Probe-center.g from Macros directory in the DWC
G4 S1 ; dwell (pause) for 1 sec
M98 P"/macros/Z-Probe.g" ; run Z-Probe.g from Macros directory in the DWC
G4 S1 ; dwell (pause) for 1 sec
M98 P"/macros/Y-Probe.g" ; run Y-Probe.g from Macros directory in the DWC
G4 S1 ; dwell (pause) for 1 sec
M98 P"/macros/X-Probe.g" ; run X-Probe.g from Macros directory in the DWC