rene revidoval tento gist 1 month ago. Přejít na revizi
1 file changed, 107 insertions
startcode.gcode(vytvořil soubor)
| @@ -0,0 +1,107 @@ | |||
| 1 | + | M17 ; enable steppers | |
| 2 | + | M862.1 P[nozzle_diameter] A{(filament_abrasive[0] ? 1 : 0)} F{(nozzle_high_flow[0] ? 1 : 0)} ; nozzle check | |
| 3 | + | M862.3 P "COREONE" ; printer model check | |
| 4 | + | M862.5 P2 ; g-code level check | |
| 5 | + | M862.6 P"Input shaper" ; FW feature check | |
| 6 | + | M115 U6.4.0+11974 | |
| 7 | + | ||
| 8 | + | M555 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4)} W{((min(print_bed_max[0], max(first_layer_print_min[0] + 32, first_layer_print_max[0])))) - ((min(print_bed_max[0], first_layer_print_min[0] + 32) - 32))} H{((first_layer_print_max[1])) - ((max(0, first_layer_print_min[1]) - 4))} | |
| 9 | + | ||
| 10 | + | G90 ; use absolute coordinates | |
| 11 | + | M83 ; extruder relative mode | |
| 12 | + | ||
| 13 | + | {if chamber_minimal_temperature[initial_tool]!=0} | |
| 14 | + | M140 S115 ; set bed temp for chamber heating | |
| 15 | + | {else} | |
| 16 | + | M140 S[first_layer_bed_temperature] ; set bed temp | |
| 17 | + | {endif} | |
| 18 | + | ||
| 19 | + | M109 R{((filament_notes[0]=~/.*MBL160.*/) ? 160 : (filament_notes[0]=~/.*HT_MBL10.*/) ? (first_layer_temperature[0] - 10) : (filament_type[0] == "PC" or filament_type[0] == "PA") ? (first_layer_temperature[0] - 25) : (filament_type[0] == "FLEX") ? 210 : 170)} ; wait for temp | |
| 20 | + | ||
| 21 | + | M84 E ; turn off E motor | |
| 22 | + | ||
| 23 | + | G28 ; home all without mesh bed level | |
| 24 | + | ||
| 25 | + | {if chamber_minimal_temperature[initial_tool]!=0} | |
| 26 | + | ; Min chamber temp section | |
| 27 | + | M104 S{idle_temperature[initial_tool]} ; set idle temp | |
| 28 | + | G1 Z10 F720 ; set bed position | |
| 29 | + | G1 X242 Y-9 F4800 ; set print head position | |
| 30 | + | M191 S{chamber_minimal_temperature[initial_tool]} ; wait for minimal chamber temp | |
| 31 | + | M141 S{chamber_temperature[initial_tool]} ; set nominal chamber temp | |
| 32 | + | M107 | |
| 33 | + | M140 S[first_layer_bed_temperature] ; set bed temp | |
| 34 | + | {else} | |
| 35 | + | M141 S{chamber_temperature[initial_tool]} ; set nominal chamber temp | |
| 36 | + | {endif} | |
| 37 | + | ||
| 38 | + | {if first_layer_bed_temperature[initial_tool]<=60}M106 S70{endif} | |
| 39 | + | G0 Z40 F10000 | |
| 40 | + | M104 T{initial_tool} S{if is_nil(idle_temperature[initial_tool])}100{else}{idle_temperature[initial_tool]}{endif} | |
| 41 | + | M190 R[first_layer_bed_temperature] ; wait for bed temp | |
| 42 | + | M107 | |
| 43 | + | ||
| 44 | + | ;G29 G ; absorb heat | |
| 45 | + | ||
| 46 | + | M109 R{((filament_notes[0]=~/.*MBL160.*/) ? 160 : (filament_notes[0]=~/.*HT_MBL10.*/) ? (first_layer_temperature[0] - 10) : (filament_type[0] == "PC" or filament_type[0] == "PA") ? (first_layer_temperature[0] - 25) : (filament_type[0] == "FLEX") ? 210 : 170)} ; wait for MBL temp | |
| 47 | + | ||
| 48 | + | M302 S155 ; lower cold extrusion limit to 155C | |
| 49 | + | ||
| 50 | + | {if filament_type[initial_tool]=="FLEX"} | |
| 51 | + | G1 E-4 F2400 ; retraction | |
| 52 | + | {else} | |
| 53 | + | G1 E-2 F2400 ; retraction | |
| 54 | + | {endif} | |
| 55 | + | ||
| 56 | + | M84 E ; turn off E motor | |
| 57 | + | ||
| 58 | + | ; nozzle cleaning | |
| 59 | + | ;G29 P9 X208 Y-2.5 W32 H4 ; stock nozzle cleaning | |
| 60 | + | M109 S230 ; set temp to 230 | |
| 61 | + | G0 X250 Y-17.5 Z1.5 F5000 ; Move hotend to position | |
| 62 | + | G0 X206 Y-17.5 Z1.5 F150000 ; wipe left | |
| 63 | + | G0 X242 Y-17.5 Z1.5 F50000 ; wipe right | |
| 64 | + | G0 X210 Y-17.5 Z1.5 F150000 ; wipe left | |
| 65 | + | G0 X242 Y-17.5 Z1.5 F50000 ; wipe right | |
| 66 | + | G0 X210 Y-17.5 Z1.5 F150000 ; wipe left | |
| 67 | + | G0 X242 Y-17.5 Z1.5 F50000 ; wipe right | |
| 68 | + | ||
| 69 | + | ||
| 70 | + | M104 S0 ; Temperatur ausschalten | |
| 71 | + | ||
| 72 | + | ; | |
| 73 | + | ; MBL | |
| 74 | + | ; | |
| 75 | + | M84 E ; turn off E motor | |
| 76 | + | G29 P1 ; invalidate mbl & probe print area | |
| 77 | + | G29 P1 X150 Y0 W100 H20 C ; probe near purge place | |
| 78 | + | G29 P3.2 ; interpolate mbl probes | |
| 79 | + | G29 P3.13 ; extrapolate mbl outside probe area | |
| 80 | + | G29 A ; activate mbl | |
| 81 | + | ||
| 82 | + | ; prepare for purge | |
| 83 | + | M104 S{first_layer_temperature[0]} | |
| 84 | + | G0 X249 Y-2.5 Z15 F4800 ; move away and ready for the purge | |
| 85 | + | M109 S{first_layer_temperature[0]} | |
| 86 | + | ||
| 87 | + | G92 E0 | |
| 88 | + | M569 S0 E ; set spreadcycle mode for extruder | |
| 89 | + | ||
| 90 | + | M591 S0 ; disable stuck detection | |
| 91 | + | ||
| 92 | + | ; | |
| 93 | + | ; Extrude purge line | |
| 94 | + | ; | |
| 95 | + | G92 E0 ; reset extruder position | |
| 96 | + | G1 E{(filament_type[0] == "FLEX" ? 4 : 2)} F2400 ; deretraction after the initial one | |
| 97 | + | G0 E5 X235 Z0.2 F500 ; purge | |
| 98 | + | G0 X225 E4 F500 ; purge | |
| 99 | + | G0 X215 E4 F650 ; purge | |
| 100 | + | G0 X205 E4 F800 ; purge | |
| 101 | + | G0 X202 Z0.05 F8000 ; wipe, move close to the bed | |
| 102 | + | G0 X199 Z0.2 F8000 ; wipe, move quickly away from the bed | |
| 103 | + | ||
| 104 | + | M591 R ; restore stuck detection | |
| 105 | + | ||
| 106 | + | G92 E0 | |
| 107 | + | M221 S100 ; set flow to 100% | |
Novější
Starší