I am including bed and extruder pre-heat commands in my printer start commands, but after slicing, I get the following error message where I have tried to pass temperature variables into my Start Commands: “ERROR unable to evaluate expresion: {print_temperature}”
I am printing on a Creality Ender 3
Using Astrobox on a Raspberry Pi 3
Here is my entire “Start Commands” under my Printer Settings:
; Ender 3 Custom Start G-code
G28 ; home all axes
M104 S{print_temperature} ; Set Hotend Temperature
M140 S{print_bed_temperature} ; Set Bed Temperature
M190 S{print_bed_temperature} ; Wait for Bed Temperature
M109 S{print_temperature} ; Wait for Hotend Temperature
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
; End of custom start GCode
After slicing, here is what I get in my GCODE file:
;FLAVOR:Marlin
;TIME:6666
;Filament used: 0m
;Layer height: 0.1
;Generated with Cura_SteamEngine master
M82 ;absolute extrusion mode
; Ender 3 Custom Start G-code
G28 ; home all axes
M104 S; ERROR unable to evaluate expresion: {print_temperature} ; Set Hotend Temperature
M140 S; ERROR unable to evaluate expresion: {print_bed_temperature} ; Set Bed Temperature
M190 S; ERROR unable to evaluate expresion: {print_bed_temperature} ; Wait for Bed Temperature
M109 S; ERROR unable to evaluate expresion: {print_temperature} ; Wait for Hotend Temperature
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
; End of custom start GCode