Working on a Klipper Module. G1 Command is not working!


iam currently working on a Klipper moldule and i need to send a gcode command directly to klipper from my module.

I was looking in the and there the “run_script_from_command” method is in use.

And i was already able to set the temperature with this method.

self.gcode.run_script_from_command("SET_HEATER_TEMPERATURE HEATER=extruder TARGET=200\n")

But i am not able to send a G1 command like this.

self.gcode.run_script_from_command("G1 E20 F900\n")

I always get a internal error with G1 command.

I would appreciate some help.

Best regards!