Difference between revisions of "GCode Header"
| (17 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
| At Hyrel, we believe that you must start with a good GCode header to get a good print. Below are explanations of our standard header files. These can be configured in Slic3r under <code>'''Printer Settings > Custom G-code > Start G-code'''</code> | At Hyrel, we believe that you must start with a good GCode header to get a good print. Below are explanations of our standard header files. These can be configured in Slic3r under <code>'''Printer Settings > Custom G-code > Start G-code'''</code> | ||
| + | |||
| + | == Sample Header == | ||
| * '''BLACK''' entries are for every machine | * '''BLACK''' entries are for every machine | ||
| * <span style="color: forestgreen;">'''GREEN'''</span> entries are recommended, but must be manually entered | * <span style="color: forestgreen;">'''GREEN'''</span> entries are recommended, but must be manually entered | ||
| − | * <span style="color: firebrick;">'''RED'''</span> entries are for the EHR only | + | * <span style="color: firebrick;">'''RED'''</span> entries are for the EHR only, and MUST be edited by hand | 
| − | * <span style="color: navy;">'''BLUE'''</span> entries are for the 16A only | + | * <span style="color: navy;">'''BLUE'''</span> entries are for the 16A only, and MUST be edited by hand | 
| * <span style="color: darkorchid;">'''PURPLE'''</span> entries are explanations | * <span style="color: darkorchid;">'''PURPLE'''</span> entries are explanations | ||
| + | * <span style="color: darkorange;">'''GOLD'''</span> entries are optional, but recommended | ||
| This is what your header recipe will look like in Slic3r: | This is what your header recipe will look like in Slic3r: | ||
| − |   ;  | + |   ; '''REPORTING/ABORTING''' : | 
| − |   N14                ; set line numbers for error logging - Slic3r version | + |   <span style="color: darkorange;">N14                ; set line numbers for error logging - Slic3r version | 
| − |   M772 S1            ; reset metrics and arm automatic reporting   | + |   <span style="color: darkorange;">M772 S1            ; reset metrics and arm automatic reporting   | 
| − |   M627 X0 Y0 Z0 J-500 K5                 ; setup abort action   | + |   <span style="color: darkorange;">M627 X0 Y0 Z0 J-500 K5                 ; setup abort action</span> | 
| + |  <span style="color: navy;">; '''16A PREHEAT TO SAVE ~ 30 SECONDS ON 16A''' : | ||
| + |  M140 S# ; where # is ~15 degrees below print temperature - to start heating 16A bed sooner | ||
| + | |||
| + |  <span style="color: black;">; '''RANGE SETUP''' | ||
|   M107               ; fans/UV           ; off |   M107               ; fans/UV           ; off | ||
|   M106 C255          ; fans/UV           ; set to 0-255 range |   M106 C255          ; fans/UV           ; set to 0-255 range | ||
| + | |||
| + |  <span style="color: black;">; '''OFFSETS and POSITIONING''' | ||
|   G53                ; clear offsets |   G53                ; clear offsets | ||
| Line 30: | Line 39: | ||
|   G0 Z10 	           ; drop bed   |   G0 Z10 	           ; drop bed   | ||
|   G90                ; coordinates       : absolute |   G90                ; coordinates       : absolute | ||
| + |  G28 X0 Y0          ; home, goto        : X and Y | ||
| + |  <span style="color: darkorange;">M229 E1 D1         ; enable E-values (volumetric) - best when slicing for filaments | ||
| − | + |   <span style="color: firebrick;">; '''EHR ADDITIONAL OFFSET''' : | |
| + |  M660 H# Z#         ; sets Z offset on EHR | ||
| + |  G0 X0 Y0 H#        ; applies Z offset on EHR | ||
| − | + |   <span style="color: black;">; '''HEAD DESIGNATION''' : | |
| − |   ;  | + |   T1                 ; use SECOND tool position from the left <span style="color: darkorchid;">- use other recipes for other positions | 
| − | + |   <span style="color: black;">; '''TEMPERATURE CONTROL''' : | |
| − | |||
| − | + |   <span style="color: black;">M190 S[bed_temperature]        ; bed temp     : set and wait <span style="color: darkorchid;">- actual temp is drawn from FILAMENT/EXTRUDER recipe | |
| + |  <span style="color: black;">M109 T12 S[temperature]        ; head temp    : set and wait <span style="color: darkorchid;">- actual temp is drawn from FILAMENT/EXTRUDER recipe</span> | ||
| − | |||
| Line 51: | Line 63: | ||
| − | (this page is in progress | + | |
| + | (this page is in progress) | ||
Latest revision as of 19:55, 3 March 2025
| Contents | 
At Hyrel, we believe that you must start with a good GCode header to get a good print. Below are explanations of our standard header files. These can be configured in Slic3r under Printer Settings > Custom G-code > Start G-code
Sample Header
- BLACK entries are for every machine
- GREEN entries are recommended, but must be manually entered
- RED entries are for the EHR only, and MUST be edited by hand
- BLUE entries are for the 16A only, and MUST be edited by hand
- PURPLE entries are explanations
- GOLD entries are optional, but recommended
This is what your header recipe will look like in Slic3r:
; REPORTING/ABORTING :
N14                ; set line numbers for error logging - Slic3r version
M772 S1            ; reset metrics and arm automatic reporting 
M627 X0 Y0 Z0 J-500 K5                 ; setup abort action
; 16A PREHEAT TO SAVE ~ 30 SECONDS ON 16A :
M140 S# ; where # is ~15 degrees below print temperature - to start heating 16A bed sooner
; RANGE SETUP
M107               ; fans/UV           ; off
M106 C255          ; fans/UV           ; set to 0-255 range
; OFFSETS and POSITIONING
G53                ; clear offsets
G21                ; units             : mm
G91                ; coordinatess      : relative
G0 Z10 	           ; drop bed 
G90                ; coordinates       : absolute
G28 X0 Y0          ; home, goto        : X and Y
M229 E1 D1         ; enable E-values (volumetric) - best when slicing for filaments
; EHR ADDITIONAL OFFSET :
M660 H# Z#         ; sets Z offset on EHR
G0 X0 Y0 H#        ; applies Z offset on EHR
; HEAD DESIGNATION :
T1                 ; use SECOND tool position from the left - use other recipes for other positions
; TEMPERATURE CONTROL :
M190 S[bed_temperature]        ; bed temp     : set and wait - actual temp is drawn from FILAMENT/EXTRUDER recipe
M109 T12 S[temperature]        ; head temp    : set and wait - actual temp is drawn from FILAMENT/EXTRUDER recipe
(this page is in progress)
