Skip to main content

VORON Trident Reference Configuration

Must Read Before Use
  • This page provides a Klipper reference configuration template for the VORON Trident, not a ready-to-use configuration.
  • serial, canbus_uuid, all pins, thermistor models, travel limits, endstop directions, and motor directions must be modified according to your actual hardware.
  • During the first power-on and debugging, please use STEPPER_BUZZ to check each motor. Do not execute full machine homing or Z tilt adjustment directly.

Scope of Application​

StructureDescription
VORON TridentCoreXY fixed gantry, three Z-axis heated bed structure
Three Z-Axis LevelingExample includes z_tilt related configuration
FLY-Super8-ProOriginal configuration uses FLY-Super8-Pro as the example mainboard

Content to Be Modified First​

ItemLocationDescription
Mainboard ID[mcu]Use serial for USB firmware, canbus_uuid for CAN firmware
File Inclusion[include]Select fluidd.cfg or mainsail.cfg based on your actual frontend
Machine Dimensions[stepper_x], [stepper_y], [stepper_z]Modify according to 250 / 300 / 350 or custom dimensions
Three Z-Axis Positions[z_tilt]Modify leveling points and Z motor positions according to machine dimensions
Motor Directiondir_pinAdd or remove ! before the corresponding pin if the direction is reversed
Endstop Methodendstop_pinDo not mix physical endstop, no endstop, and probe methods
Driver Model[tmc2209] / [tmc5160]Must match the actual driver; delete or comment out unused driver sections
Thermistor Model[extruder], [heater_bed]Fill in according to actual hotend and heated bed sensors
PID Parameters[extruder], [heater_bed]Execute PID calibration after initial debugging and save the values

Debugging Sequence​

  1. Modify [mcu] to confirm Klipper can connect to the mainboard.
  2. Check if temperature readings for the hotend, heated bed, mainboard, and host are normal.
  3. Use STEPPER_BUZZ to check the direction of X/Y/Z0/Z1/Z2/extruder motors.
  4. Use QUERY_ENDSTOPS to check endstop or probe status.
  5. Execute G28 X, G28 Y, G28 Z at low speed to confirm single-axis homing is correct.
  6. After confirming the direction of the three Z motors is correct, execute Z_TILT_ADJUST.
  7. Perform PID calibration for the hotend and heated bed.
  8. Calibrate the extruder rotation_distance.
  9. Complete Z offset, bed mesh, resonance compensation, and pressure advance calibration.

Complete Reference Configuration​

####################################################################################
# 3D MELLOW /FLY-Super8-Pro #
####################################################################################
## FLY-Super8-Pro Documentation: http://mellow.klipper.cn/#/board/fly_super8_pro/README
## FLY-Super8-Pro Schematic: https://github.com/Mellow-3D/Fly-Super8Pro
## FLY Official Taobao Store: https://shop126791347.taobao.com/shop/view_shop.htm?spm=a230r.1.14.4.1a4840a8hyvpPJ&user_number_id=2464680006
## For after-sales service, please contact Taobao customer service.
## FLY After-sales Technical Support Group: 621032883
## FLY-RRF Firmware Exchange Group: 786561979

#####################################################################
# Notes #
#####################################################################
##***Items to change/check:***
## MCU Path [mcu]
## Printer travel range xyz position
## Thermistor type [extruder] and [heater_bed]
## Z-axis endstop stop position [homing_override]
## Z-axis endstop offset position [stepper_z]
## PID Calibration [extruder] and [heater_bed]
## Fine-tune extruder motor steps [extruder]

#####################################################################
# File Inclusion #
#####################################################################
#[include fluidd.cfg] # FLUIDD inclusion file.
#[include mainsail.cfg] # MAINSAIL inclusion file.
#Determine which file to use yourself.

#####################################################################
# Mainboard Configuration #
#####################################################################
[mcu] # FLY Mainboard ID
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_XXXXXXXXXXXXXXXXXXXXX
### Query usb firmware id: ls -l /dev/serial/by-id/
### Replace /dev/serial/by-id/usb-Klipper_stm32f407xx_XXXXXXXXXXXXXXXXXXXXX with the queried id
#canbus_uuid: xxxxxxxxxxxx
### Query can firmware id: ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
### For can id, replace serial with canbus_uuid: and add the id after it.

#####################################################################
# Machine Type and Acceleration #
#####################################################################
[printer] # Printer settings
kinematics: corexy # Kinematics structure: Cartesian, CoreXY, etc. Cartesian: cartesian
max_velocity: 300 # Printer maximum velocity
max_accel: 3000 # Maximum acceleration, max 3000
max_z_velocity: 15 # Z-axis maximum velocity
max_z_accel: 100 # Z-axis maximum acceleration
square_corner_velocity: 5.0 # Square corner velocity, a smaller value can effectively reduce inertia from platform weight

#####################################################################
# Temperature Monitoring #
#####################################################################
[temperature_sensor Fly-Super8] # FLY mainboard temperature (can be renamed)
sensor_type: temperature_mcu # Associated with mcu (default)
#--------------------------------------------------------------------
[temperature_sensor FLY-π] # Host temperature
sensor_type: temperature_host # Associated with host
#--------------------------------------------------------------------
# [temperature_sensor Box] # Chamber temperature (need to add a temperature sensor, reference configuration)
# sensor_type: ATC Semitec 104GT-2 # Sensor model
# sensor_pin: # Signal pin

#####################################################################
# Bed Mesh Calibration #
#####################################################################
[bed_mesh]
speed: 50 # Calibration speed
horizontal_move_z: 5 # Z lift height before probe moves to the next point
mesh_min: 30,30 # Minimum calibration point coordinates x,y
mesh_max: 270, 270 # Maximum calibration point coordinates x,y
probe_count: 4,4 # Number of sample points (4x4 = 16 points)
mesh_pps: 2,2 # Additional sample points
algorithm: bicubic # Algorithm model
bicubic_tension: 0.2 # Algorithm interpolation, do not change

#####################################################################
# X/Y Stepper Settings #
#####################################################################
# B Motor ---- Motor A
# | |
# |------Extruder----|
# | |
# | |
# Front
#####################################################################
# X Axis Stepper on Driver0 (B Motor) #
#####################################################################
[stepper_x]
step_pin: # X-axis motor step pin setting
dir_pin: # X-axis motor direction pin setting, determine direction based on actual hardware, add exclamation mark to reverse direction
enable_pin: # X-axis motor enable pin setting, enable pin needs exclamation mark, otherwise motor won't work
rotation_distance: 40 # Pulley circumference mm (2GT-20T pulley 40, 2GT-16T pulley 32)
microsteps: 16 # Motor microstep setting, higher microsteps mean higher quality but higher mainboard load
full_steps_per_rotation: 200 # Number of pulses per rotation (1.8 degree motor: 200, 0.9 degree motor: 400)
endstop_pin: # Endstop PIN, recommend normally closed then add ! to reverse state, position at io-3
### When using normally closed, it is in a triggered state. Adding an exclamation mark can reverse this state, preventing crashes in case of wire breakage.
position_min: 0 # Soft limit minimum travel
position_endstop: 300 # Soft limit maximum travel (250mm-300mm-350mm)
position_max: 300 # Mechanical limit maximum travel (250mm-300mm-350mm)
homing_speed: 50 # Homing speed, max 100. Homing speed should not be too fast.
homing_retract_dist: 5 # Retract distance after first endstop trigger
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
## Ensure the driver model is configured correctly (2208 or 2209)
[tmc2209 stepper_x] # X driver configuration - TMC2209
uart_pin: # Communication port Pin definition
interpolate: False # Enable 256 microstep interpolation (True to enable, False to disable)
run_current: 0.8 # Run current
sense_resistor: 0.110 # Driver sense resistor, do not change
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if stealthchop not needed)
#--------------------------------------------------------------------
#[tmc5160 stepper_x] # Extruder driver configuration - TMC5160
#cs_pin: # SPI chip select Pin definition
# spi_software_mosi_pin:
# spi_software_miso_pin:
# spi_software_sclk_pin:
## spi_bus: spi1a # SPI bus selection, recommend using software SPI first
## spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor run current value
#interpolate: False # Enable 256 microstep interpolation (True to enable, False to disable)
#sense_resistor: 0.075 # Driver sense resistor, do not change (if using 5160 Pro, change value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if stealthchop not needed)
#####################################################################
# Y Axis Stepper on Driver1 (A Motor) #
#####################################################################
[stepper_y]
step_pin: # Y-axis motor step pin setting
dir_pin: # Y-axis motor direction pin setting, determine direction based on actual hardware, add exclamation mark to reverse direction
enable_pin: # Y-axis motor enable pin setting, enable pin needs exclamation mark, otherwise motor won't work
rotation_distance: 40 # Pulley circumference mm (2GT-20T pulley 40, 2GT-16T pulley 32)
microsteps: 16 # Motor microstep setting, higher microsteps mean higher quality but higher mainboard load
full_steps_per_rotation: 200 # Number of pulses per rotation (1.8 degree motor: 200, 0.9 degree motor: 400)
endstop_pin: # Endstop PIN, recommend normally closed then add ! to reverse state, position at io-0
### When using normally closed, it is in a triggered state. Adding an exclamation mark can reverse this state, preventing crashes in case of wire breakage.
position_min: 0 # Soft limit minimum travel
position_endstop: 300 # Soft limit maximum travel (250mm-300mm-350mm)
position_max: 300 # Mechanical limit maximum travel (250mm-300mm-350mm)
homing_speed: 50 # Homing speed, max 100. Homing speed should not be too fast.
homing_retract_dist: 5 # Retract distance after first endstop trigger
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
## Ensure the driver model is configured correctly (2208 or 2209)
[tmc2209 stepper_y] # Y driver configuration - TMC2209
uart_pin: # Communication port Pin definition
interpolate: False # Enable 256 microstep interpolation (True to enable, False to disable)
run_current: 0.8 # Run current
sense_resistor: 0.110 # Driver sense resistor, do not change
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if stealthchop not needed)
#--------------------------------------------------------------------
#[tmc5160 stepper_y] # Extruder driver configuration - TMC5160
#cs_pin: # SPI chip select Pin definition
# spi_software_mosi_pin:
# spi_software_miso_pin:
# spi_software_sclk_pin:
## spi_bus: spi1a # SPI bus selection, it is recommended to use software SPI first
# spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor running current value
#interpolate: False # Whether to enable 256 microstep interpolation (True to enable, False to disable)
#sense_resistor: 0.075 # Driver sense resistor, do not change (if using 5160 Pro, please change the value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (if silence is not needed, please change the value to 0)

#####################################################################
# Z-axis stepper motor (Z Stepper Settings) #
#####################################################################
# |----- Z1 -----|
# | |
# | |
# | |
# Z0----display----Z2

#####################################################################
# Z-axis stepper motor #
#####################################################################
## Z stepper motor - left front on Driver3
[stepper_z]
step_pin: # Z-axis motor step pin setting
dir_pin: # Z-axis motor direction pin setting, the direction pin needs to be determined according to the actual situation, adding an exclamation mark will reverse the running direction
enable_pin: # Z-axis motor enable pin setting, the enable pin needs an exclamation mark, otherwise the motor will not work
### T8x8 lead screw. One full rotation moves the heated bed 8 millimeters
## Please modify according to the purchased lead screw parameters
rotation_distance: 8 # The lead screw lead is 8, please modify according to your actual usage, a total of 3 places need to be modified
full_steps_per_rotation: 200 # The number of pulses required for one revolution of the motor (1.8-degree motor: 200, 0.9-degree motor: 400)
microsteps: 16 # Motor microstep setting, the higher the microstep, the higher the quality, but the greater the load on the main controller
endstop_pin: # Limit switch PIN, it is recommended to use normally closed and then add ! to invert the state, the position is at io-1
## position_endstop is the position of the nozzle relative to the print surface (Z0) at the moment the Z endstop triggers (unit: mm).
position_endstop: -0.5
## Positive value = termination point above the bed, negative value = termination point below the bed.
## Increasing the value of position_endstop brings the nozzle closer to the bed.
## After running Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the end of the CFG configuration.
position_min: -15 # (Configure nozzle cleaning requires about -5)
position_max: 300 # Mechanical limit maximum travel (250mm-300mm-350mm)
homing_speed: 5 # Homing speed - max 20
second_homing_speed: 3 # Second homing speed - max 10
homing_retract_dist: 0 # Retract distance
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z]
uart_pin: # Driver communication port
interpolate: false # Microstep interpolation 256
run_current: 0.8 # Run current mA
sense_resistor: 0.110 # Driver sense resistor, do not change
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if stealthchop not needed)
#--------------------------------------------------------------------
#[tmc5160 stepper_z] # Extruder driver configuration - TMC5160
#cs_pin: # SPI chip select Pin definition
# spi_software_mosi_pin:
# spi_software_miso_pin:
# spi_software_sclk_pin:
## spi_bus: spi1a # SPI bus selection, it is recommended to prioritize software SPI
# spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor running current value
#interpolate: False # Whether to enable 256 microstep interpolation (enable is True, disable is False)
#sense_resistor: 0.075 # Do not change the driver sense resistor (if using 5160 Pro, please change the value to 0.033)
#stealthchop_threshold: 500 # Stealthchop threshold (if silent mode is not needed, please change the value to 0)
#--------------------------------------------------------------------

## Z1 stepper motor - rear on Driver4
[stepper_z1]
step_pin: # Z1 axis motor step pin setting
dir_pin: # Z1 axis motor direction pin setting, the direction pin needs to be determined according to actual conditions, adding an exclamation mark will reverse the running direction
enable_pin: # Z1 axis motor enable pin setting, the enable pin needs an exclamation mark, otherwise the motor will not work
### T8x8 lead screw. One full rotation moves the heated bed 8 millimeters.
## Please modify according to the purchased lead screw parameters
rotation_distance: 8 # Lead screw lead is 8
full_steps_per_rotation: 200 # Number of pulses required for one motor revolution (1.8-degree motor: 200, 0.9-degree motor: 400)
microsteps: 16 # Motor microstep setting; higher microstepping gives higher quality but greater load on the main controller
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z1]
uart_pin: # Driver communication port
interpolate: false # Microstep interpolation 256
run_current: 0.8 # Running current mA
sense_resistor: 0.110 # Driver sense resistor, do not change
stealthchop_threshold: 500 # StealthChop threshold (if silent operation is not needed, set the value to 0)
#--------------------------------------------------------------------
#[tmc5160 stepper_z1] # Extruder driver configuration - TMC5160
#cs_pin: # SPI chip select pin definition
# spi_software_mosi_pin:
# spi_software_miso_pin:
# spi_software_sclk_pin:
## spi_bus: spi1a # SPI bus selection, it is recommended to prioritize software SPI
# spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor running current value
#interpolate: False # Whether to enable 256 microstep interpolation (True to enable, False to disable)
#sense_resistor: 0.075 # Do not change the driver sense resistor (if using 5160 Pro, please change the value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (if silence is not needed, please change the value to 0)
#--------------------------------------------------------------------

## Z2 stepper motor - right front on Driver5
[stepper_z2]
step_pin: # Z2 axis motor step pin setting
dir_pin: # Z2 axis motor direction pin setting, the direction pin needs to be determined according to actual conditions, adding an exclamation mark will reverse the running direction
enable_pin: # Z2 axis motor enable pin setting, the enable pin needs an exclamation mark, otherwise the motor will not work
### T8x8 lead screw. One full rotation moves the heated bed 8 millimeters.
## Please modify according to the purchased lead screw parameters
rotation_distance: 8 # Lead screw lead is 8
full_steps_per_rotation: 200 # Number of pulses required per motor revolution (1.8-degree motor: 200, 0.9-degree motor: 400)
microsteps: 16 # Motor microstep setting; the higher the microsteps, the higher the quality, but the greater the main controller load
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z2]
uart_pin: # Driver communication port
interpolate: false # Microstep interpolation 256
run_current: 0.8 # Running current mA
sense_resistor: 0.110 # Driver sense resistor, do not change
stealthchop_threshold: 500 # StealthChop threshold (if silence is not needed, please set the value to 0)
#--------------------------------------------------------------------
#[tmc5160 stepper_z2] # Extruder driver configuration - TMC5160
#cs_pin: # SPI chip select pin definition
# spi_software_mosi_pin:
# spi_software_miso_pin:
# spi_software_sclk_pin:
## spi_bus: spi1a # SPI bus selection, recommend using software SPI first
# spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor run current value
#interpolate: False # Enable 256 microstep interpolation (True to enable, False to disable)
#sense_resistor: 0.075 # Driver sense resistor, do not change (if using 5160 Pro, change value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if stealthchop not needed)
#--------------------------------------------------------------------

#####################################################################
# E0 Extruder Settings #
#####################################################################
#Driver2
[extruder] # Extruder
step_pin: # Extruder motor step pin
dir_pin: # Extruder motor direction pin setting
enable_pin: # Extruder motor enable pin setting
## Update the following value when performing extruder calibration.
## For example, if you request 100mm of filament, but actually get 102mm:
## rotation_distance = <old rotation_distance> * <actual extrusion length> / <requested extrusion length>
## Calibration step value: 22.44=old value 22 * actual value 102 / target value 100
rotation_distance: 22.44 # Step value
gear_ratio: 50:17 # Gear ratio (Galileo gear ratio 7.5:1 and comment out this line; BMG is 50:17, output shaft first, input shaft last)
microsteps: 16 # Motor microstep setting, higher microsteps means higher quality, but greater mainboard load
full_steps_per_rotation: 200 # Pulses per revolution (200 is 1.8 degrees, 400 is 0.9 degrees)
nozzle_diameter: 0.400 # Nozzle diameter
filament_diameter: 1.75 # Filament diameter
heater_pin: # Heater pin
sensor_type: ATC Semitec 104GT-2 # Sensor type (Generic 3950, ATC Semitec 104GT-2, PT1000)
sensor_pin: # Sensor pin, connected to ADC_0
min_temp: 10 # Minimum temperature (Note: if measured temperature exceeds the set value, an emergency stop will be triggered)
max_temp: 350 # Maximum temperature (Note: if measured temperature exceeds the set value, an emergency stop will be triggered)
max_power: 1.0 # Maximum power
min_extrude_temp: 170 # Minimum extrusion temperature (the extruder can only extrude after at least reaching this temperature)
pressure_advance: 0.05 # Pressure advance - try to keep pressure below 1.0 (pressure advance is what you adjust here)
#Pressure advance tuning method: https://www.klipper3d.org/zh/Pressure_Advance.html
pressure_advance_smooth_time: 0.040 # Smooth advance time - default value is 0.040
#max_extrude_only_distance: 200.0 # If you get an extrusion flow error, you can comment this out, but re-slicing is recommended
max_extrude_only_distance: 800
max_extrude_cross_section:800
#Nozzle temperature PID calibration command: "PID_CALIBRATE HEATER=extruder TARGET=245"
control:watermark
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 extruder] # Extruder driver configuration - TMC2209
uart_pin: # Communication port pin definition
interpolate: False # Whether to enable 256 microstep interpolation (True to enable, False to disable)
run_current: 0.5 # Motor running current value
sense_resistor: 0.110 # Driver sense resistor, do not change
stealthchop_threshold: 500 # Stealthchop threshold (if you do not need quiet operation, set the value to 0)
#--------------------------------------------------------------------
#[tmc5160 extruder] # Extruder driver configuration - TMC5160
#cs_pin: # SPI chip select pin definition
# spi_software_mosi_pin:
# spi_software_miso_pin:
# spi_software_sclk_pin:
## spi_bus: spi1a # SPI bus selection, recommend using software SPI first
# spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor run current value
#interpolate: False # Enable 256 microstep interpolation (True to enable, False to disable)
#sense_resistor: 0.075 # Driver sense resistor, do not change (if using 5160 Pro, change value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if stealthchop not needed)

#####################################################################
# Heated Bed Configuration #
#####################################################################
[heater_bed]
heater_pin: # Heated bed pin
sensor_type: Generic 3950 # Heated bed sensor type
sensor_pin: # Heated bed sensor pin
max_power: 0.5 # Heated bed power
min_temp: 0 # Minimum temperature (Note: measurement exceeding this value will trigger emergency stop)
max_temp: 120 # Maximum temperature (Note: measurement exceeding this value will trigger emergency stop)
# Heated bed temperature PID calibration command: "PID_CALIBRATE HEATER=heater_bed TARGET=100"
control:watermark

#####################################################################
# Fan Configuration #
#####################################################################
[fan] # Model cooling fan
pin: # Signal pin
kick_start_time: 0.5 # Start time (do not change)
off_below: 0.10 # Do not change
#--------------------------------------------------------------------
[heater_fan hotend_fan] # Hotend cooling fan
pin: # Signal pin
max_power: 1.0 # Maximum speed
kick_start_time: 0.5 # Start time (do not change)
heater: extruder # Associated device: extruder
heater_temp: 50 # Fan activation temperature for extruder
fan_speed: 1.0 # Fan speed
#--------------------------------------------------------------------
[heater_fan controller_fan] # Electronics compartment fan
pin: # Signal pin
max_power: 1.0 # Maximum speed
kick_start_time: 0.5 # Start time (do not change)
heater: heater_bed # Associated device: heated bed
heater_temp: 50 # Fan activation temperature for heated bed
fan_speed: 1.0 # Fan speed
#--------------------------------------------------------------------
[heater_fan exhaust_fan] # Exhaust fan
pin: # Signal pin
max_power: 1.0 # Maximum speed
kick_start_time: 0.5 # Start time (do not change)
heater: heater_bed # Associated device: heated bed
heater_temp: 70 # Fan activation temperature for heated bed
fan_speed: 1.0 # Fan speed


#####################################################################
# Leveling Sensor #
#####################################################################
#Default PL08N probe installation position is not lower than nozzle height, only for leveling. If your PL08N is NO (normally open), change the pin and add !
[probe]
pin: # Endstop PIN, recommend normally closed then add ! to reverse state, position at io-2
x_offset: 0 # X-axis - sensor offset relative to nozzle
y_offset: 25.0 # Y-axis - sensor offset relative to nozzle
z_offset: 0 # Z-axis - sensor offset relative to nozzle
speed: 10.0 # Leveling speed
samples: 3 # Number of samples
samples_result: median # Result method (default median)
sample_retract_dist: 4.0 # Leveling retract distance
samples_tolerance: 0.006 # Sample tolerance (Note: too small a value may increase the number of samples)
samples_tolerance_retries: 3 # Number of retries if tolerance is exceeded

#####################################################################
# Homing #
#####################################################################
# [safe_z_home] # Z-axis endstop coordinates
# home_xy_position:206,300 # Z-axis endstop position definition (Important!!! Adjust yourself)
# speed:100 # Homing speed
# z_hop:10 # Z lift height before homing
#--------------------------------------------------------------------
[homing_override] # Z-axis homing macro (If using Klicky, please comment out this part)
axes: z
set_position_z: 0
gcode:
G90
G0 Z5 F600
G28 X Y
## Z endstop switch position
## Test a few more times to ensure there are no issues, then update X and Y to your values (e.g., X157, Y305)
## End pin position definition step.
G0 X-10 Y-10 F3600 # Update X and Y values here

G28 Z
G0 Z10 F1800

## Based on your machine size, remove the "#" before the corresponding configuration:
## Rough measurement is the center of your bed.
#--------------------------------------------------------------------
## 250mm model: Remove the "#" before the configuration line below to enable
#G0 X125 Y125 Z30 F3600
#--------------------------------------------------------------------
## 300mm model: Remove the "#" before the configuration line below to enable
#G0 X150 Y150 Z30 F3600
#--------------------------------------------------------------------
## 350mm model: Remove the "#" before the configuration line below to enable
#G0 X175 Y175 Z30 F3600
#--------------------------------------------------------------------

#####################################################################
# 3Z Leveling
#####################################################################
[z_tilt]
## Use the Z_TILT_ADJUST command to level the bed
## z_positions: The position of the print head

##--------------------------------------------------------------------
## 250mm model: Remove the "#" before the configuration below to enable
#z_positions:
# -50, 18
# 125, 298
# 300, 18
#points:
# 30, 5
# 125, 195
# 220, 5
##--------------------------------------------------------------------
## 300mm model: Remove the "#" before the configuration below to enable
#z_positions:
# -50, 18
# 150, 348
# 350, 18
#points:
# 30, 5
# 150, 245
# 270, 5
##--------------------------------------------------------------------
## 350mm model please delete the "#" before the following configuration to enable it
#z_positions:
# -50, 18
# 175, 398
# 400, 18
#points:
# 30, 5
# 175, 295
# 320, 5
#--------------------------------------------------------------------
speed: 100 # Leveling speed
horizontal_move_z: 10 # Z-axis starting height
retry_tolerance: 0.0075 # Sampling tolerance
retries: 5 # Number of retries after exceeding tolerance

#####################################################################
# FLY-Mini 12864 LCD
#####################################################################
# If you need to use FLY-Mini 12864 LCD, please fill in the [board_pins] aliases according to the actual motherboard manual.
# [board_pins]
# aliases:
# Fill in according to the actual motherboard
#--------------------------------------------------------------------
#[display]
#lcd_type: uc1701 # Display driver type
#cs_pin: # Display chip select cs pin setting
#a0_pin: # Display data a0 pin setting
#rst_pin: # Display reset rst pin setting
#contrast: 63 # Contrast
#encoder_pins: # Rotary encoder (knob switch) pin setting
#click_pin: # Pin setting for the rotary encoder (knob switch) confirm button
#spi_bus: spi1 # SPI channel must be specified
#--------------------------------------------------------------------
#####Applicable to FLY Mini12864
#[neopixel fly_mini12864]
#pin: # Display backlight control pin setting
#chain_count: 3
#initial_RED: 0.5 # Red LED brightness control (range: 0-1)
#initial_GREEN: 0.5 # Green LED brightness control (range: 0-1)
#initial_BLUE: 0.5 # Blue LED brightness control (range: 0-1)
#color_order: RGB # Color order

#####################################################################
# Idle Heater Bed Off
#####################################################################
[idle_timeout]
timeout: 1800 # Turn off the heated bed after being idle for more than 30 minutes

#####################################################################
# Custom gcode macros #
#####################################################################
[gcode_macro PRINT_START] # Set PRINT_START as the macro when starting printing, to customize actions before printing
gcode:
G92 E0 # Reset extrusion
BED_MESH_CLEAR # Unload bed mesh
G28 # Home all axes
Z_TILT_ADJUST # Gantry leveling
G28 # Home all axes
G1 Z20 F3000 # Move the nozzle away from the heated bed
BED_MESH_PROFILE LOAD=default # Load bed mesh
#--------------------------------------------------------------------
[gcode_macro PRINT_HUAXIAN] # Set PRINT_HUAXIAN as the macro after PRINT_START, to customize actions before printing
gcode:
G1 Z5 F3000
G92 E0; # Reset extrusion
G90 # Set absolute coordinate system
G0 X5 Y1 F6000 # Move to x5 y1 position, speed 100mm/s (F6000, meaning 6000mm per minute)
G0 Z0.4 # Move Z-axis height to 0.4
G91 # Set coordinate system to relative coordinates
G1 X100 E20 F1200; # Move x-axis 100mm and extrude, changing F can change the extrusion rate
G1 Y1 # Move y-axis 1mm
G1 X-100 E20 F1200; # Move x-axis 100mm in the opposite direction and extrude, changing F can change the extrusion rate
G0 z5 # Raise Z-axis by 5mm
G1 E-5.0 F3600 # Retract filament
G92 E0; # Reset extrusion
G90 # Set absolute coordinate system

#--------------------------------------------------------------------
[gcode_macro PRINT_END] # Set PRINT_END as the macro at the end of printing, to customize actions after printing is complete
gcode:
# Get Boundaries
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
{% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}

# Check end position to determine safe directions to move
{% if printer.toolhead.position.x < (max_x - 20) %}
{% set x_safe = 20.0 %}
{% else %}
{% set x_safe = -20.0 %}
{% endif %}

{% if printer.toolhead.position.y < (max_y - 20) %}
{% set y_safe = 20.0 %}
{% else %}
{% set y_safe = -20.0 %}
{% endif %}

{% if printer.toolhead.position.z < (max_z - 2) %}
{% set z_safe = 2.0 %}
{% else %}
{% set z_safe = max_z - printer.toolhead.position.z %}
{% endif %}

M400 # Wait for buffer to clear
G92 E0 # Zero the extruder
G1 E-10.0 F3600 # Retract filament
G91 # Relative positioning
G0 Z{z_safe} F3600 # Raise the gantry
G0 X{x_safe} Y{y_safe} F20000 # Move the nozzle to remove the filament line
M104 S0 # Turn off the extruder head
M140 S0 # Turn off the heated bed
M106 S0 # Turn off the model fan
G90 # Set absolute coordinate system
G0 X{max_x / 2} Y{max_y} F3600 # Park the nozzle at the rear
BED_MESH_CLEAR # Unload bed mesh

Loading...