Jump to content

Post Processing Scripts


WillyM

Recommended Posts

I would like to disable my filament run out and motion sensors for certain prints. My sensor is remote from the toolhead and I would like to directly feed filament to the toolhead on occasion. If I insert the necessary disable scripts as Prusaslicer post processing scripts, would they override the enable scripts in my START macro, or does the START macro have the last say?

Link to comment
Share on other sites

Thank you. I'll have to figure something else out or goo with status quo. I was hoping to feed TPU direct to the toolhead, bypassing the filament sensor (which on my 2.4 is mounted at the top of the back panel, and the Bowden tubing to the toolhead. I have printed TPU successfully in my present set up, I just wanted to improve the feed path. I also use a 3mm ID Bowden and wanted to change to a 2mm ID and tighten up the allowance on the motion sensor, right now I have to use 10mm. I find that 2mm ID tubing is too restrictive for TPU.

 

I guess that I could set a flag in the post processing script for the TPU profile, and then disable the sensors using an "If" statement in the START macro.

Link to comment
Share on other sites

10 hours ago, claudermilk said:

That should work. I do a similar thing for ABS vs PLA and warming up. If it's ABS I force it to wait for the chamber temp to come up, if it's PLA I don't.

Would it be possible for you to post an example of how you do this in your Slicer and START macro?  Thank you.

Link to comment
Share on other sites

Here's my slicer start g-code (from Orca)

PRINT_START BED=[first_layer_bed_temperature] HOTEND={first_layer_temperature[initial_extruder]} CHAMBER=[chamber_temperature] SIZE={first_layer_print_min[0]}_{first_layer_print_min[1]}_{first_layer_print_max[0]}_{first_layer_print_max[1]} FILAMENT={filament_type[0]}

Here's the relevant section of the print_start macro:

    ## Do heatsoak
    {% if printer["temperature_fan chamber"].temperature < chambertemp %}
		  _HEATSOAK TEMP={bedtemp} MOVE=1                        # Set up to heat soak if chamber temp is set higher than current reading
      M190 S{bedtemp}                                        # Set target bed temp & wait for it
      TEMPERATURE_WAIT SENSOR="temperature_fan chamber" MINIMUM={chambertemp}   # Do the actual heat soak wait, until chamber temp is at target
		{% else %}
			{% if printer.heater_bed.temperature < (bedtemp-2) %}
        _HEATSOAK TEMP={bedtemp} MOVE=1	        						# Bed is below target temp, get it heating & safely park toolhead
        M190 S{bedtemp}                                     # Set bed target temp & wait for it
			{% else %}
				_HEATSOAK TEMP={bedtemp} MOVE=0                     # Just do a bed heat, no champer temp (open case for PLA)
			{% endif %}
		{% endif %}
		M106 S0                                                 # Turn off part cooling fan from heatsoak

And the heatsoak macro that calls:

[gcode_macro _HEATSOAK]
description: Helper: Set up to heat soak printer. Usage: _HEATSOAK [TEMP=temp(110)] [MOVE=move(1)]
gcode:
  {% set temp = params.TEMP|default(110)|int %}
  {% set move = params.MOVE|default(1)|int %}
	
	LED_HEATING
  RESPOND MSG="Warming up"
	M141 S0                                                 # Turn off exhaust fan
	M140 S{temp}                                            # Heat the bed
  M104 S150                                               # Set hotend to no-ooze temp & for Tap warm probing
	{% if temp >= 100 %}                                    # It's ABS or other high-temp plastic, closed case
		M106 S205                                             # Turn on part fan to 80% for 
		SET_FAN_SPEED FAN=nevermore_fan SPEED=1                   # Turn on Nevermore fans to circulate & accelerate chamber soak
	{% else %}
    M106 S0                                               # Turn off part fan. Open case, no need
		SET_FAN_SPEED FAN=nevermore_fan SPEED=0                   # Make sure Nevermore is off
	{% endif %}

	{% if move == 1 %}
		_CG28                                                 # Conditional home
		PARK P=bed                                            # Park toolhead in safe location (center volume)
		LED_HEATING
	{% endif %}

 

  • Like 2
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...