Probes axis and takes measurement.
By customizing parameters like H, E, D, F, I, etc., you can measure surfaces or edges in any axis direction and have the macro automatically compute and store the final position for further CNC operations.
G65 P110 H<axis> E<direction> Q<check_probe> D<distance> K<back> J<probe_size> F<probe_speed> I<low_speed> R<return_flag>
| H | Axis number to probe:
| |
| E | Probe direction:
| Must be either +1 or −1. |
| Q | Probe check mode:
| Default: 1 (in the macro, it calls G65 P109 Q…) |
| R | Return to start position:
| Default: If omitted, macro does not return. |
| D | Maximum probing distance in the specified direction | Default: 10000 If Z‐axis negative direction then default is #<_probe_length>. |
| K | Back‐off distance after initial probe contact | Default: #<_probe_swdist> |
| J | Probe tip size (used to offset the measured position) | Default: #<_probe_size_axis> |
| F | Probe feed rate (speed) for the first pass | Default: #<_probe_speed> |
| I | Low‐speed feed rate for a second, more precise pass (If I > 0, a second slow probe pass is performed) | Default: #<_probe_speed_low> |
The macro also uses certain global parameters. These are defined in settings.
Use G65 P110 … with the parameters you need. For example:
( Probe the top of a part along Z- ) G65 P110 H2 E-1 D20 F100 I50 R1
G10 L20 P1 Z[#<_measure_z>] (set work offset so that measured point is Z=0)
(Probe an edge along +X) G65 P110 H0 E1 D10 F100 K1 R1
(No Return, Single Pass)
(Probe an edge along -Y) G65 P110 H1 E-1 R0 D5 F50
(Using default distances)
(Probe downward in Z with default _probe_length) G65 P110 H2 E-1 R1