So I am new having issues with my PRINT_START macro not taking parameters from the slicer. Here is what I have:
Slicer -Start code
What appears in the gcode:
my PRINT_START macro
When the print starts the bed heats to 61 and the extruder heats to 205, the default values, even though the correct values 60 and 215 are in the gcode. I am fairly sure it is calling the PRINT_START macro, as it does print out a purge line, which is called from the PRINT_START.
Any idea why the gcode values are not getting accepted? This script was working, I do not think I changed anything.....
Thanks!
Slicer -Start code
Code:
PRINT_START EXTRUDER=[nozzle_temperature_initial_layer] BED=[bed_temperature_initial_layer_single]
What appears in the gcode:
; EXECUTABLE_BLOCK_START
EXCLUDE_OBJECT_DEFINE NAME=Voron_Design_Cube_v7.stl_id_0_copy_0 CENTER=128.156,105 POLYGON=[[113.156,90],[143.156,90],[143.156,120],[113.156,120],[113.156,90]]
M73 P0 R55
;TYPE:Custom
PRINT_START EXTRUDER=215 BED=60
G90
G21
my PRINT_START macro
Code:
[gcode_macro PRINT_START]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(61)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(206)|float %}
# Start bed heating
M140 S{BED_TEMP}
# Use absolute coordinates
G90
# Reset the G-Code Z offset (adjust Z offset if needed)
SET_GCODE_OFFSET Z=0.0
# Home the printer
G28
# Move the nozzle near the bed
G1 Z5 F3000
# Move the nozzle very close to the bed
# G1 Z1.15 F300
# Wait for bed to reach temperature
M190 S{BED_TEMP}
# Set and wait for nozzle to reach temperature
M109 S{EXTRUDER_TEMP}
M117 Homing...
CHOME
#BED_MESH_CALIBRATE
NOZZLE_PURGE
G1 Z5.0 ; Lift toolhead
G92 E0 ; zero the extruded length
G1 F9000
STATUS_PRINTING
M117 Printing...
When the print starts the bed heats to 61 and the extruder heats to 205, the default values, even though the correct values 60 and 215 are in the gcode. I am fairly sure it is calling the PRINT_START macro, as it does print out a purge line, which is called from the PRINT_START.
Any idea why the gcode values are not getting accepted? This script was working, I do not think I changed anything.....
Thanks!