Unable to parse move 'G1 X189.5 \ Y210.0 \ Z10 F6000'

Basic Information:

Printer Model: BLV Cube
MCU / Printerboard: Octopus pro
Host / SBC Rasperbery Pi4B
klippy.log

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

I created this macro with the help of AI. The macro basically makes sure my extruder is in the centre of the bed before trying to calibrate

the G1 is all on 1 line

klippy.log (2.6 MB)

gcode_macro CALIBRATE_Z

description: Move to bed centre, ensure probe deployed, then run calibration
gcode:
G90

#Move to the centre of the bed at safe Z height

G1 X{printer.configfile.settings.bed_mesh.mesh_min[0] + (printer.configfile.settings.bed_mesh.mesh_max[0] - printer.configfile.settings.bed_mesh.mesh_min[0]) / 2} Y{printer.configfile.settings.bed_mesh.mesh_min[1] + (printer.configfile.settings.bed_mesh.mesh_max[1] - printer.configfile.settings.bed_mesh.mesh_min[1]) / 2} Z10 F6000

# Safety check: deploy probe if not already deployed
{% if printer.probe.last_query == False %}
    RESPOND PREFIX="info" MSG="Probe not deployed. Deploying now..."
    PROBE_DEPLOY
{% else %}
    RESPOND PREFIX="info" MSG="Probe already deployed."
{% endif %}

# Run the probe calibration
PROBE_CALIBRATE

thanks

Can you please format this:


also as Preformatted text. It looks a bit messy.

Have you asked the AI what is going wrong?

BTW: What are the backslashes \ doing in that macro?

3 Likes

I removed the \ thanks for that. Will rerun. Hopefully that will have sorted it.