1 / 1
BTT Eddy NG Macro + my print start on my SV08 — image 1

BTT Eddy NG Macro + my print start on my SV08

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

This is the macro I use with my BTT Eddy with the Tap/Touch Function firmware made by Vlad can be used in any 3DPrinter!

Rating
5 / 5
Likes
154
Downloads
1,057
Makes
2
Views
6,364
Reviews
3

Updated at source:

Model information

License
GNU General Public License v3.0

See below the .cfg attached. ;) 
on to the Other Files section


🛠 Sovol SV08 Klipper Macros: Tap Z-Offset, Nozzle Cleaning & Adaptive Purge

Thanks to Vlad for the brilliant firmware that enables the BTT Eddy sensor to support tap-style Z-offset probing. Check out his work here:
🔗 https://github.com/vvuk/eddy-ng

🛒 If you don’t have a BTT Eddy sensor yet, you can grab one using our affiliate link:
👉 http://shrsl.com/4tva1

✨ What This Setup Does

This is my exact print macro suite for the Sovol SV08 running Klipper.

It includes:

✅ Nozzle cleaning before Z probe (prevents bad offsets)
✅ Live Z Offset support via TAP on Eddy sensor
✅ Quad Gantry Leveling
✅ Bed & Nozzle Preheating
✅ Filament Detection Check
✅ Adaptive Bed Mesh — no extra script needed!
✅ Visual LED feedback (optional)
✅ State-aware printing flow for maximum reliability
✅ Smart Purge Macro near the mesh area to protect the bed!

🧼 CLEAN_NOZZLE_TAP Macro

This macro performs a fully customizable brush wipe and zigzag scrub to clear the nozzle before probing.

🔧 Features

X/Y/Z brush position configurable

Adjustable back-and-forth wipes and zigzag patterns

Ends with a safe move away from the brush

Doesn’t tap — but you can follow it with your own tap macro if needed!

📜 Macro Code

Paste this into your macros.cfg :

[gcode_macro CLEAN_NOZZLE_TAP]
description: "Clean nozzle by wiping on brush - customizable"
variable_brush_start_x: 315
variable_brush_end_x: 352
variable_brush_y: 360
variable_brush_z: 5 # edit this i use 0.5 i have set it to 1 to be safe
variable_end_x: 200
variable_end_y: 100
variable_end_z: 5
variable_wipe_repeat: 5
variable_zigzag_repeat: 3

gcode: {% if printer.toolhead.homed_axes != "xyz" %} G28 ; Home all axes if needed {% endif %}

G90 ; Absolute positioning
M117 Cleaning nozzle...

G1 X{brush_start_x} Y{brush_y} F9000
G1 Z{brush_z} F300

{% for i in range(wipe_repeat) %}
    G1 X{brush_end_x} F4500
    G1 X{brush_start_x}
{% endfor %}

G1 Z{brush_z + 4}
G1 X{brush_start_x} Y{brush_y - 4} F6000
G1 Z{brush_z}

{% set x = brush_start_x %}
{% set step = 2 %}
{% for i in range(zigzag_repeat) %}
    G1 Y{brush_y} X{x + step}
    G1 Y{brush_y - 3} X{x + step + 2}
    G1 Y{brush_y} X{x + step + 4}
    G1 Y{brush_y - 3} X{x + step + 6}
    G1 Y{brush_y} X{x + step + 8}
{% endfor %}

G1 X{end_x} Y{end_y} Z{end_z} F6000

🚀 START_PRINT Macro

This is the main macro to handle the full print preparation sequence:

[gcode_macro START_PRINT]
description: 
variable_state: 'Prepare'
variable_record_extruder_temp: 0
variable_max_record_extruder_temp: 0

gcode: {% set speed = printer.configfile.settings.printer.max_velocity %} {% set x_max = printer.toolhead.axis_maximum.x %} {% set y_max = printer.toolhead.axis_maximum.y %} {% set extruder_target_temp = printer.extruder.target|int %} {% set bed_targer_temp = printer.heater_bed.target|int %}

M400
CLEAR_PAUSE
G90

{% if state == 'Prepare' %}
    {action_respond_info("Prepare!")}

    {% if printer.toolhead.homed_axes|lower != "xyz" %}
        LED_HOMING
        G28
    {% endif %}

    {% if printer['filament_switch_sensor filament_sensor'].enable == True and
          printer['filament_switch_sensor filament_sensor'].filament_detected != True %}
        M117 No filament!!!
        {action_respond_info("Please Insert filament in Sensor!")}
        CANCEL_PRINT
    {% endif %}

    {action_respond_info("Check Heating!")}

    M140 S{bed_target_temp}
    M104 S{extruder_target_temp}

    {% if printer.heater_bed.temperature < bed_targer_temp %}
        M117 Bed heating...
        {action_respond_info("Bed heating...")}
        LED_HEATING_BED
        M190 S{bed_targer_temp}
    {% endif %}

    {% if printer.extruder.temperature < extruder_target_temp %}
        M117 Nozzle heating...
        {action_respond_info("Nozzle heating...")}
        LED_HEATING_NOZZLE
        M109 S{extruder_target_temp}
    {% endif %}

    {% if printer.quad_gantry_level.applied|lower != 'true' %}
        LED_QGL
        QUAD_GANTRY_LEVEL
    {% endif %}

    ; Position for cleaning
    G0 X{x_max} Y{y_max} Z15 F{speed*60}

    ; Cool nozzle slightly before cleaning
    M104 S150
    M109 S150

    ; 🧼 Nozzle Cleaning
    CLEAN_NOZZLE_TAP

    ; 🔽 TAP Z Probing
    PROBE_EDDY_NG_TAP #TARGET_Z=-0.359 THRESHOLD=1000

    ; 🧭 Adaptive Mesh
    LED_BED_MESH
    BTT_BED_MESH_CALIBRATE METHOD=rapid_scan ADAPTIVE=1 
    
    SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=state VALUE='"Start"' 
    UPDATE_DELAYED_GCODE ID=_print_start_wait DURATION=0.5

{% elif state == 'Start' %}
    LED_PRINTING
    M117 Printing now!!!
    {action_respond_info("Start!")}
{% endif %}

🧠 Slicer Setup (OrcaSlicer Example)

Use this as your machine start g-code in the slicer:

M140 S[bed_temperature_initial_layer_single] ;set bed temp
M190 S[bed_temperature_initial_layer_single] ;wait for bed temp
G28
START_PRINT
M104 S[nozzle_temperature_initial_layer] ;set extruder temp
M109 S[nozzle_temperature_initial_layer] ;wait for extruder temp
ADAPTIVE_PURGE

🧪 Adaptive Purge Config

To purge next to the print area, near the mesh — safer for your plate!

📁 Add this line to your printer.cfg:

[include adaptive_purge.cfg]

 

🧾 Credit

Big thanks to Zippy (Rootiest) for the adaptive_purge.cfg 

This is a setup i have been using for more than 2 years almost 3. 
The adaptive bed mesh is now integrated in Klipper so you don't need a separate macro for it! and also you don't need a script to grab de position of your print from the slicer!  I like this very much since I'm scanning only the print area I like to have the purge close to the scanned area this way I will not f*ck the build plate! also i don't remember from where i have this files to credit the owner but i this is from Zippy aka Rootiest

Tags