mirror of
				https://github.com/steeb-k/troodonBackup
				synced 2025-05-16 11:23:58 -07:00 
			
		
		
		
	printer.cfg modified - 09/29/2024 - 06:57:11 AM
This commit is contained in:
		
							parent
							
								
									8b187ff2af
								
							
						
					
					
						commit
						5c7c549be9
					
				| @ -611,7 +611,7 @@ gcode: | |||||||
|      M104 S0  ;turn off hotend |      M104 S0  ;turn off hotend | ||||||
|      M140 S0  ;turn off heatbed |      M140 S0  ;turn off heatbed | ||||||
|      M106 S0  ; shut off blower |      M106 S0  ; shut off blower | ||||||
|      #M84  ;motors off -- disabled so that head can still be moved after print finishes |      M84  ;motors off -- disabled so that head can still be moved after print finishes | ||||||
| 
 | 
 | ||||||
| #   Use PRINT_END for the slicer ending script - please customise for your slicer of choice | #   Use PRINT_END for the slicer ending script - please customise for your slicer of choice | ||||||
| [gcode_macro PRINT_END] | [gcode_macro PRINT_END] | ||||||
| @ -852,6 +852,37 @@ gcode: | |||||||
| gcode: | gcode: | ||||||
|       PROBE_CALIBRATE |       PROBE_CALIBRATE | ||||||
| 
 | 
 | ||||||
|  | [gcode_macro CANCEL_PRINT] | ||||||
|  | description: Cancel the actual running print | ||||||
|  | rename_existing: CANCEL_PRINT_BASE | ||||||
|  | gcode: | ||||||
|  |   ##### get user parameters or use default ##### | ||||||
|  |   {% set client = printer['gcode_macro _CLIENT_VARIABLE'] | default({}) %} | ||||||
|  |   {% set allow_park = client.park_at_cancel | default(false) | lower == 'true' %} | ||||||
|  |   {% set retract = client.cancel_retract | default(5.0) | abs %} | ||||||
|  |   ##### define park position ##### | ||||||
|  |   {% set park_x = "" if (client.park_at_cancel_x | default(none) is none) | ||||||
|  |             else "X=" ~ client.park_at_cancel_x %} | ||||||
|  |   {% set park_y = "" if (client.park_at_cancel_y | default(none) is none) | ||||||
|  |             else "Y=" ~ client.park_at_cancel_y %} | ||||||
|  |   {% set custom_park = park_x | length > 0 or park_y | length > 0 %} | ||||||
|  |   ##### end of definitions ##### | ||||||
|  |   # restore idle_timeout time if needed | ||||||
|  |   {% if printer['gcode_macro RESUME'].restore_idle_timeout > 0 %} | ||||||
|  |     SET_IDLE_TIMEOUT TIMEOUT={printer['gcode_macro RESUME'].restore_idle_timeout} | ||||||
|  |   {% endif %} | ||||||
|  |   #{% if (custom_park or not printer.pause_resume.is_paused) and allow_park %} _TOOLHEAD_PARK_PAUSE_CANCEL {park_x} {park_y} {% endif %} | ||||||
|  |   _TOOLHEAD_PARK_PAUSE_CANCEL  | ||||||
|  |   _CLIENT_RETRACT LENGTH={retract} | ||||||
|  |   TURN_OFF_HEATERS | ||||||
|  |   M106 S0 | ||||||
|  |   {client.user_cancel_macro | default("")} | ||||||
|  |   SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=idle_state VALUE=False | ||||||
|  |   # clear pause_next_layer and pause_at_layer as preparation for next print | ||||||
|  |   SET_PAUSE_NEXT_LAYER ENABLE=0 | ||||||
|  |   SET_PAUSE_AT_LAYER ENABLE=0 LAYER=0 | ||||||
|  |   CANCEL_PRINT_BASE | ||||||
|  | 
 | ||||||
| #*# <---------------------- SAVE_CONFIG ----------------------> | #*# <---------------------- SAVE_CONFIG ----------------------> | ||||||
| #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | ||||||
| #*# | #*# | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user