Error on 'M109 S[material_print_temperature_layer_0]': unable to parse [
I’ve searched high and low and tried a few different things and still running into problems. New to this!
Logs attached. At first I was getting an M420 command not found issue, but I nixed that from cura start script and set it to get a new mesh every time. Fixed.
This variable should not be in the final gcode but substituted with the corrected value by your slicer.
Depending on your slicer this might be named differently.
Normally you pass this variable to the START_PRINT macro in your slicer start code and this generates the correct gcode.
But it looks like you bypassed this and have the codes in your slicers start code?
Can you please post your slicers start and end code here using preformatted text tags?
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
G28 ;Home
BED_MESH_CALIBRATE
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
M109 S[material_print_temperature_layer_0]
G1 X10.1 Y145.0 Z0.28 F1500.0 E15 ;Draw the first line
G1 X10.4 Y145.0 Z0.28 F5000.0 ;Move to side a little
G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0 ;Reset Extruder
G1 E-1.0000 F1800 ;Retract a bit
G1 Z2.0 F3000 ;Move Z Axis up
G1 E0.0000 F1800
Oh I bet thats it! I read somewhere that ender firmware requires square brackets and klipper requires curly braces. Ill give that a whirl and report back, thanks!
It has nothing to do with the firmware. It’s the slicer that uses these variables when generating the gcode before the printer firmware even sees it. The slicer replaces the variable with the actual value, but only if you format it correctly. Cura expects curly braces. This gcode file wouldn’t work on any firmware.
Yes, correct. What I’m saying is that when you add the Ender V3 SE in Cura, it defaults to square brackets (because I think thats what ender firmware requires) but after reflashing klipper, I used the same printer profile but needed to swap the brackets for braces.
In any case, this is now resolved (by swapping the square brackets w/ curly braces.) Thank you all!