Print_Start error

Basic Information:

Printer Model: LulzBot Taz6
MCU / Printerboard: BTT Octopus v1.1
klippy.log

Describe your issue:

Have this error when trying to use the print_start macro,

Error evaluating ‘gcode_macro START_PRINT:gcode’: jinja2.exceptions.UndefinedError: ‘dict object’ has no attribute ‘HOTEND’

Tried different names for ‘Hotend’, EXTRUDER, EXTRUDER_TEMP. I know i’m missing something obvious. Any help appreciated.

klippy(9).log (86.3 KB)

Hello @Four7 !

I think the issue can be here:

	{% set BED_TEMP = params.BED|int %}
	{% set EXTRUDER_TEMP = params.HOTEND|int %}
	{% set SOFTEN_TEMP_OFFSET = 60 %}

The value SOFTEN_TEMP_OFFSET should be 60%. 60% of what?

How are you calling the macro? Are you providing the HOTEND parameter that it expects?

No, that’s completely unrelated. And it’s not a percentage, it’s an offset in degrees.

1 Like

Ooops - I’ve overseen that.

This is the start gcode in Prusa

START_PRINT BED=[first_layer_bed_temperature] HOTEND=[first_layer_temperature[initial_extruder]

At the very least, there has to be a bracket missing at the end of that start gcode. If you are not using multiple extruders, use only [first_layer_temperature] and it should work.

Have you looked at a sliced gcode file to see how the START_PRINT line is actually inserted by Prusaslicer?

At the very least, there has to be a bracket missing at the end of that start gcode. If you are not using multiple extruders, use only [first_layer_temperature] and it should work

That was it, I removed the [initial_extruder] and it works. I knew it was something simple.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.