Created
November 5, 2022 01:12
-
-
Save stephancom/b69c38d54186479f0865895cabae86cf to your computer and use it in GitHub Desktop.
Cura startup gcode for CR-6 SE with wire brush cleaning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Script based on an original created by tjjfvi (https://github.com/tjjfvi) | |
; An up-to-date version of the tjjfvi's original script can be found | |
; here: https://csi.t6.fyi/ | |
; Note - This script will only work in Cura V4.2 and above! | |
; --- Global Settings | |
; layer_height = {layer_height} | |
; smooth_spiralized_contours = {smooth_spiralized_contours} | |
; magic_mesh_surface_mode = {magic_mesh_surface_mode} | |
; machine_extruder_count = {machine_extruder_count} | |
; --- Single Extruder Settings | |
; speed_z_hop = {speed_z_hop} | |
; retraction_amount = {retraction_amount} | |
; retraction_hop = {retraction_hop} | |
; retraction_hop_enabled = {retraction_hop_enabled} | |
; retraction_enable = {retraction_enable} | |
; retraction_speed = {retraction_speed} | |
; retraction_retract_speed = {retraction_retract_speed} | |
; retraction_prime_speed = {retraction_prime_speed} | |
; speed_travel = {speed_travel} | |
;M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration | |
;M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate | |
;M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration | |
;M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk | |
M220 S100 ;Reset Feedrate | |
M221 S100 ;Reset Flowrate | |
G28 ;Home | |
; Now we know the positions we can move out of the way and happily droop at the side of the bed | |
M104 S{material_print_temperature_layer_0} | |
M140 S{material_bed_temperature_layer_0} | |
G0 Z25 | |
G0 X0 Y0 | |
; Now wait for the temperatures to reach | |
M190 R{material_bed_temperature_layer_0} | |
M109 S{material_print_temperature_layer_0} | |
; Clean the nozzle with the brush | |
M211 S0 ; danger! releases soft endstop! | |
G0 X235 ; move to the edge | |
G0 Z4 ; down to brush level | |
G0 X259 ; move into the brush | |
G0 X235 ; back to the bed | |
G0 X259 ; repeat | |
G0 X235 ; | |
G0 X259 ; third time's the charm | |
G0 X235 ; | |
M211 S1 ; restore soft endstop | |
G0 Z25 ; move back up | |
G28 ;Home | |
; Draw a test line | |
G92 E0 ;Reset Extruder | |
G1 Z2.0 F3000 ;Move Z Axis up | |
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position | |
G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line | |
G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little | |
G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line | |
G92 E0 ;Reset Extruder | |
G1 Z2.0 F3000 ;Move Z Axis up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment