Dernière activité 1 month ago

Révision ef5e121938d3bbb4806db428ebbb6e7ceb0ebcd2

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