Use Beacon values in Macros

Basic Information:

Printer Model: Coustom Cartesian Printer
MCU / Printerboard: Rambo
Host / SBC Raspberry Pi 4
klippy.log

I need some values measured by the Beacon sensor in my makros to do some further calculations. Is it possible to get them?

After i use the PROBE command of the beacon sensor this is displayed in the console:

Recv:13:25:17.734: // probe at 200.000,200.000 is z=-1.402500 (3)
Recv:13:25:17.735: // Result is z=-1.402500

The Result value would be really usefull, but I can’t find a way to get it into my macros.

I’m not using a Beacon, so I can’t tell for sure. The best place to ask would be the Beacon support locations.

What you could do is using Example: Search Printer Objects and see if anything is returned.

2 Likes

Found it, thanks.

The right variable name is:

{% set probe_result = printer.beacon.last_z_result %}