gcode:macros:macro-o131

o131 - Measure Outside Edge

Locate and measure an outside edge.

First, the macro probes a surface to obtain a reference (Z position of the part).

Then, it moves in the specified axis and direction until the edge is detected.

Syntax

G65 P131 H<axis> E<direction> D<distance>

Parameters

H Axis number to probe:
  • 0 = X
  • 1 = Y
E Probe direction:
  • 1 = positive direction
  • -1 = negative direction

Must be either +1 or −1.

D Approximate Distance to Edge
  • A positive number that gives an estimated travel distance to the edge from the starting point.
J Overedge
  • This parameter (if provided) defines how far past the expected edge the probe should move.
  • If not provided, it defaults to the variable _probe_overedge.
gcode/macros/macro-o131.txt · Last modified: by andrej

Page Tools