Jump to content

Bed and extruder heater shutting off while executing macros in START_PRINT Macro


dghpc

Recommended Posts

Not sure what I`m doing wrong but I'm using a  START_PRINT Macros which works fine but... every time it executes a sub macro such as QGL or BED_MESH_CALIBRATE, both extruder and bed heater shuts down. It then picks up the next M190 or M109 to bring the temperature back to the expected settings but of course while doing the QGL having the temperature dropping makes the probing very inconsistent. 

 

Anyone have any clues?
 

My Slicer start gcode has the following:
M109 S0 ; Stops PS/SS from sending temp waits separately
M190 S0
SET_PRINT_STATS_INFO TOTAL_LAYER=[total_layer_count]
START_PRINT BED=[first_layer_bed_temperature] HOTEND={first_layer_temperature[initial_extruder]+extruder_temperature_offset[initial_extruder]} CHAMBER=[chamber_temperature]  FILAMENT={filament_type[1]}
 

[gcode_macro START_PRINT]
#   Use PRINT_START for the slicer starting script - please customise for your slicer of choice
gcode:
  # Open LEDs
    SET_PIN PIN=caselight VALUE=.5
    set_nozzle_leds_on
# Parameters
    {% set bedtemp = params.BED|int %}
    {% set hotendtemp = params.HOTEND|int %}
    {% set chambertemp = params.CHAMBER|default(0)|int %}
  # Homing
    G28
  # Start Nevermore
   {% if (chambertemp > 0) %}
    CHAMBER_FAN_ON
   {% endif %}
 
  
# Set and Wait for Bed Temp 
    M117 Waiting on Bed Temp
    SET_TEMPERATURE_FAN_TARGET TEMPERATURE_FAN=board_fans TARGET=48
    G1 X150 Y150 Z25 F5000.0
    M190 S{bedtemp}
    M109 S150
  # # Preheat Hotend to 160 and bring Hotbed to Real Temp
  #   M104 S160
 # Cleaning Nozzle
    M117 Cleaning Nozzle
    CLEAN_NOZZLE
# Quad Gantry Leveling
    M117 Leveling
    G32
    G1 X150 Y150 Z25 F5000.0
   
  # Move Z axis up a little to prevent scratching heat bed
   G1 Z10.0 F3000
  
 # Reset Extruder and Set Real Temp
    G92 E0
    BED_MESH_CALIBRATE
    G1 X150 Y150 Z25 F5000.0
    M117 Waiting on nozzle
    M109 S{hotendtemp}

    M117 Waiting on Chamber
    TEMPERATURE_WAIT SENSOR="temperature_sensor chamber_temp" MINIMUM={chambertemp}
   
    QUERY_AHT10

  # Move to start position
   BED_MESH_PROFILE LOAD=default
# Turn on SB Nozzle LEDS White
   SET_LED LED="sb_leds" RED=0.01 GREEN=0.01 BLUE=0.01 WHITE=1 SYNC=0 TRANSMIT=1
   M117 Purging
   ADAPTIVE_PURGE
   M117 Printing

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...