Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.4 kB
8
Indexable
Never
[gcode_macro PRIME_NOZZLE] 
gcode: 
    SAVE_GCODE_STATE NAME=PRIME_NOZZLE_STATE 
    
    M117 Priming ...
    G28
    G1 X6.0 Y4.0 F18000            ; go to edge of bed
    G1 Z0.2 F5000                      ; lower nozzle
    G92 E0.0                               ; reset extruder position
    G1 X200.0 E8.0 F1000.0          ; start intro line
    G1 X300.0 E9.0 F1000.0          ; finish thicker
    G1 X300.0 Y6 E9.0 F1000.0          ; finish thicker
    G1 X6.0 E9.0 F1000.0          ; finish thicker
    G92 E0.0
    M117 Printing ...                      ; display message
    
    RESTORE_GCODE_STATE NAME=PRIME_NOZZLE_STATE

[gcode_macro G32]
gcode:
    SAVE_GCODE_STATE NAME=STATE_G32
    BED_MESH_CLEAR #TODO: should we use this here?
    G90
    CLEAN_NOZZLE
    G28

    QUAD_GANTRY_LEVEL
    CLEAN_NOZZLE
    
    G28
    CALIBRATE_Z
    BED_MESH_CALIBRATE
    
    CLEAN_NOZZLE
    G28

    BED_MESH_PROFILE LOAD="default" #TODO: Should we use this here?

    RESTORE_GCODE_STATE NAME=STATE_G32
   
[gcode_macro PRINT_START]
#   Use PRINT_START for the slicer starting script - please customise for your slicer of choice
gcode:
    G32                            ; home all axesbsolute positioning
    G90                            ; a
    G1 Z20 F3000                   ; move nozzle away from bed
    STATUS_PRINTING
    PRIME_NOZZLE