gcode:macros:macro-o130

o130 - Measure Inside Edge

Measures inside edge.

Syntax

G65 P130 H<axis> E<direction>

Parameters

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

Must be either +1 or −1.

Examples

Measure the Inner Edge on the X-Axis in the Positive Direction

G65 P130 H0 E1
  • H0: Selects the X-axis.
  • E1: Probes in the positive X direction.

This command:

  • Checks that your probe is active,
  • Validates the parameters,
  • Prepares the machine,
  • Calls the o110 macro to perform the actual probing move,
  • And finally, resets the return variable.

Measure the Inner Edge on the Y-Axis in the Negative Direction

G65 P130 H1 E-1
  • H1: Selects the Y-axis.
  • E-1: Probes in the negative Y direction.

Key Points and Tips

Ensure Probe Readiness

Always verify that your probe is correctly installed, calibrated, and active before using this macro.

Parameter Accuracy

Make sure that the axis and direction values are correct (0–2 for axis; -1 or 1 for direction). Incorrect parameters will abort the macro.

Machine State

The macro sets the machine to a known state before probing. Ensure your machine’s modal settings (absolute vs. incremental, etc.) are appropriate for your overall program.

Error Handling

The macro uses error messages and aborts the process (M2) if critical conditions are not met. Check your machine's log or console for these messages if probing fails.

Integration

This macro is designed to be a higher-level interface that simplifies the process of measuring an inner edge by calling the more detailed o110 probe routine. Ensure that o110 is correctly configured and accessible within your CNC environment.

gcode/macros/macro-o130.txt · Last modified: 2025/03/08 21:31 by andrej

Page Tools