Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existing command 'CALIBRATE_Z' not found in gcode_macro rename #115

Closed
zsmbrvr opened this issue Jul 30, 2023 · 4 comments
Closed

Existing command 'CALIBRATE_Z' not found in gcode_macro rename #115

zsmbrvr opened this issue Jul 30, 2023 · 4 comments

Comments

@zsmbrvr
Copy link

zsmbrvr commented Jul 30, 2023

After adding

[gcode_macro CALIBRATE_Z]
rename_existing: BASE_CALIBRATE_Z
gcode:
    {% set bed_position = params.BED_POSITION|default('None') %}
    G28                         # can also be a conditional homing macro
    M117 Z-Calibration..
    ATTACH_PROBE                # a macro for fetching the probe first
    {% if bed_position != 'None' %}
      BASE_CALIBRATE_Z BED_POSITION={bed_position}
    {% else %}
      BASE_CALIBRATE_Z
    {% endif %}
    DETACH_PROBE                # and parking it afterwards (or DOCK_PROBE in klicky macros)
    M117

I get the error "Existing command 'CALIBRATE_Z' not found in gcode_macro rename"

Not sure what I am doing wrong.

@TitusLabs
Copy link
Member

That means, that the plugin is not installed. Or, you did not restart the Klipper service after installation/file copy.

@zsmbrvr
Copy link
Author

zsmbrvr commented Jul 30, 2023

I did both, what I also did is adding [z_calibration] in a separate file so the module wasn't loading....
Took me too long to find this:
https://www.klipper3d.org/Code_Overview.html#adding-a-host-module
Now that I have [z_calibration] in the printer.cfg file, the command can be found...

@zsmbrvr zsmbrvr closed this as completed Jul 30, 2023
@TitusLabs
Copy link
Member

Ah, sorry! Yes, you also need to configure it and if you have a separate file, you need to include it into the printer.cfg file. Great, you found it - best learning 👍

@zsmbrvr
Copy link
Author

zsmbrvr commented Jul 30, 2023

Strange. I was including it, but it wasn't working.
I moved the config details into the printer.cfg and all is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants