Unable to parse move 'G1 Z

Basic Information:

Printer Model: Chrion
MCU / Printerboard: SKR3 +EBB42
klippy.log (888.7 KB)


I’m getting the error 'Unable to parse move ‘G1 Z’. Also notice the print head steams off to back right position when no instructions was given to perform this action. I only try to extrude (load filament). Could this be the USB connection I have from the EBB42?

Hard to say without more info, but it seems that the invalid gcode command comes from your M600 macro:

[gcode_macro M600]
description = Change Filament
variable_parameter_x = 0
variable_parameter_y = 0
variable_parameter_z = 20
gcode = 
	G1 E-.8 F2700
	G1 Z{z}
	G1 X{x} Y{y} F3000
	G1 E-50 F1000

The issue is that variable_parameter_z define a gcode state variable named parameter_z, not z. Because z is undefined, G1 Z{z} is rendered as G1 Z which is invalid gcode.

I have no idea why these variable_parameters spread on github, this was never a thing. There once was a default_parameter_* (which is now deprecated and removed) where default_parameter_z defined a default value for the parameter z.

variable_ has a different purpose: it define a variable whose value can be modified with SET_GCODE_VARIABLE. If you only need a fix default parameter, delete these variable_ lines and use the G1 Z{ params.Z|default(20) } syntax.

For your issue of spurious moves, they cannot originate from connection problems, it is most likely a configuration issue.


Thanks, I’ll have to double check all my macros now I know I bit more