Skip to content

Instantly share code, notes, and snippets.

@dgrammatiko
Forked from joshschools/moonraker.cfg
Last active September 12, 2021 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgrammatiko/8d53785438dd16ec68a9edf034103180 to your computer and use it in GitHub Desktop.
Save dgrammatiko/8d53785438dd16ec68a9edf034103180 to your computer and use it in GitHub Desktop.
printer.cfg
[include kiauh_macros.cfg]
[mcu]
serial: /dev/serial/by-id/usb-Klipper_lpc1769_0460001525813AAF64DC6B5CC12000F5-if00
# serial: /dev/serial/by-id/usb-Klipper_lpc1768_20200015A88C3CAF9ECE705CC32000F5-if00
[pause_resume]
[display_status]
[virtual_sdcard]
path: ~/gcode_files
[printer]
kinematics: corexy #cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
[fan]
pin: P2.3
[stepper_x]
step_pin: P2.2
dir_pin: !P2.6
enable_pin: !P2.1
microsteps: 16
rotation_distance: 40
endstop_pin: P1.26 # P1.29 for X-max
position_endstop: 0
position_max: 200
homing_speed: 50
[stepper_y]
step_pin: P0.19
dir_pin: !P0.20
enable_pin: !P2.8
microsteps: 16
rotation_distance: 40
endstop_pin: P1.25 # P1.28 for Y-max
position_endstop: 0
position_max: 190
homing_speed: 50
[stepper_z]
step_pin: P0.22
dir_pin: !P2.11
enable_pin: !P0.21
microsteps: 16
rotation_distance: 8 # Use 4 for Ender5 versions after late 2019
endstop_pin: probe:z_virtual_endstop #P1.27 # P1.0 for Z-max
#position_endstop: 0.5
position_min: -4
position_max: 300
[stepper_z1]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
microsteps: 16
rotation_distance: 8 # Use 4 for Ender5 versions after late 2019
endstop_pin: probe:z_virtual_endstop
[extruder]
max_extrude_only_distance: 150.0
step_pin: P1.15
dir_pin: !P1.14
enable_pin: !P1.16
microsteps: 16
rotation_distance: 3.385 # 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: P2.7
sensor_type: Trianglelab NTC100K B3950 #EPCOS 100K B57560G104F
sensor_pin: P0.24
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
min_temp: 0
max_temp: 260
[thermistor Trianglelab NTC100K B3950]
## values calibrated against a PT100 reference
temperature1: 25.0
resistance1: 103180.0
temperature2: 150.0
resistance2: 1366.2
temperature3: 250.0
resistance3: 168.6
[heater_bed]
heater_pin: P2.5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.25
#control: pid
# tuned for stock hardware with 50 degree Celsius target
#pid_Kp: 54.027
#pid_Ki: 0.770
#pid_Kd: 948.182
min_temp: 0
max_temp: 130
[safe_z_home]
home_xy_position: 100, 100
speed: 100
z_hop: 10
z_hop_speed: 5
[bltouch]
stow_on_each_sample: False
probe_with_touch_mode: True
sensor_pin: P1.27
control_pin: P2.0
pin_move_time: 0.5
pin_up_touch_mode_reports_triggered: False
x_offset: -43
y_offset: -13
#z_offset: 0
speed: 10
lift_speed: 20
samples: 3
sample_retract_dist: 0.4
samples_tolerance_retries: 3
[bed_mesh]
speed: 120
horizontal_move_z: 8
mesh_min: -43, -13
mesh_max: 117,177
probe_count: 3,3
algorithm: bicubic
[z_tilt]
z_positions:
100, -85 #100,-65
100, 323 #100,313
# A list of X,Y coordinates (one per line; subsequent lines
# indented) describing the location of each bed "pivot point". The
# "pivot point" is the point where the bed attaches to the given Z
# stepper. It is described using nozzle coordinates (the XY position
# of the nozzle if it could move directly above the point). The
# first entry corresponds to stepper_z, the second to stepper_z1,
# the third to stepper_z2, etc. This parameter must be provided.
points:
35,0
35,180
# A list of X,Y coordinates (one per line; subsequent lines
# indented) that should be probed during a Z_TILT_ADJUST command.
# Specify coordinates of the nozzle and be sure the probe is above
# the bed at the given nozzle coordinates. This parameter must be
# provided.
speed: 150
# The speed (in mm/s) of non-probing moves during the calibration.
# The default is 50.
horizontal_move_z: 10
# The height (in mm) that the head should be commanded to move to
# just prior to starting a probe operation. The default is 5.
retries: 5
# Number of times to retry if the probed points aren't within
# tolerance.
retry_tolerance: 0.025
# If retries are enabled then retry if largest and smallest probed
# points differ more than retry_tolerance. Note the smallest unit of
# change here would be a single step. However if you are probing
# more points than steppers then you will likely have a fixed
# minimum value for the range of probed points which you can learn
# by observing command output.
[gcode_macro START_PRINT]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
# Put printing message on LCD screen
M117 Heating...
# Start bed heating
M140 S{BED_TEMP}
# Wait for bed to reach temperature
M190 S{BED_TEMP}
# Start nozle heating
M104 S{EXTRUDER_TEMP}
# Wait for nozle temp
M109 S{EXTRUDER_TEMP}
# Home X Y
G28 X Y
# this is a good start heating position
G1 Y10 F3000
# Home Z
G28 Z
# Auto Leveling
BED_MESH_PROFILE LOAD=default
M117 Priming
# Start of print metric values
G21
# absolute positioning
G90
# set extruder to absolute mode
M82
# Move nozzle above 5 mm of the bed
G1 Z5
# now print a line of filament to prepare extrusion
# reset extruder
G92 E0
# move to start-line position
G1 X5 Y15 F5000.0
G1 X5 Y15 Z0.3 F5000.0
G1 Y20 F1000 E0.8
# reset extruder
G92 E0
#draw 1st line
G1 X5 Y190.0 Z0.3 F1500.0 E15
# move to side a little
G1 X5.4 Y190.0 Z0.3 F5000.0
# draw 2nd line
G1 X5.4 Y20 Z0.3 F1500.0 E30
# Retract extruder
G1 E34
# reset extruder
G92 E0
# move z up little to prevent scratching of surface
G1 Z3.0 F3000
G1 X100 Y100 F15000
# Tuning params
# Put printing message on LCD screen
M117 Printing...
M83
# Start of actual GCode for the print
[gcode_macro G29]
gcode:
G28
G1 Z10 F600
BED_MESH_CLEAR
BED_MESH_CALIBRATE
BED_MESH_PROFILE LOAD=default
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
[gcode_macro END_PRINT]
gcode:
# Turn off bed, extruder, and fan
M140 S0
M104 S0
M106 S0
# Move nozzle away from print while retracting
G91
G1 X-2 Y-2 E-3 F300
# Raise nozzle by 10mm
G1 Z10 F3000
G90
# Disable steppers
M84
########################################
# TMC2208 configuration
########################################
[tmc2208 stepper_x]
uart_pin: P1.10
run_current: 0.800
hold_current: 0.500
stealthchop_threshold: 999999
[tmc2208 stepper_y]
uart_pin: P1.9
run_current: 0.800
hold_current: 0.500
stealthchop_threshold: 999999
[tmc2208 stepper_z]
uart_pin: P1.8
run_current: 0.650
hold_current: 0.450
stealthchop_threshold: 999999
[tmc2208 stepper_z1]
uart_pin: P1.4
run_current: 0.650
hold_current: 0.450
stealthchop_threshold: 999999
[tmc2208 extruder]
uart_pin: P1.1
run_current: 0.800
hold_current: 0.500
stealthchop_threshold: 999999
#[display]
#lcd_type: st7920
#cs_pin: PA3
#sclk_pin: PA1
#sid_pin: PC1
#encoder_pins: ^PD2, ^PD3
#click_pin: ^!PC0
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
# EXP2 header
EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
# See the sample-lcd.cfg file for definitions of common LCD displays.
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 17.096
#*# pid_ki = 0.487
#*# pid_kd = 150.018
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 73.471
#*# pid_ki = 1.349
#*# pid_kd = 1000.125
#*#
#*# [bltouch]
#*# z_offset = 2.490
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.956380, -1.083880, -1.022214
#*# -1.040547, -1.170547, -1.134714
#*# -0.896380, -1.071380, -0.864714
#*# tension = 0.2
#*# min_x = -43.0
#*# algo = bicubic
#*# y_count = 3
#*# mesh_y_pps = 2
#*# min_y = -13.0
#*# x_count = 3
#*# max_y = 177.0
#*# mesh_x_pps = 2
#*# max_x = 117.0
# This file contains common pin mappings for the BIGTREETECH SKR mini
# E3 v2.0. To use this config, the firmware should be compiled for the
# STM32F103 with a "28KiB bootloader". Also, select "Enable extra
# low-level configuration options" and configure "GPIO pins to set at
# micro-controller startup" to "!PA14".
# The "make flash" command does not work on the SKR mini E3. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the SKR
# mini E3 with that SD card.
# See the example.cfg file for a description of available parameters.
# ======================================================================
[bltouch]
stow_on_each_sample: False
probe_with_touch_mode: True
sensor_pin: ^PC14
control_pin: PA1
pin_move_time: 0.5
pin_up_touch_mode_reports_triggered: False
x_offset: -43
y_offset: -13
speed: 10
lift_speed: 20
samples: 3
sample_retract_dist: 5
samples_tolerance_retries: 3
[screws_tilt_adjust]
horizontal_move_z: 10
screw1: 70,200
screw1_name: back left
screw2: 235,200
screw2_name: back right
screw3: 70,47
screw3_name: front left
screw4: 235,47
screw4_name: front right
[force_move]
enable_force_move: True
[safe_z_home]
home_xy_position: 161.5,131.5
speed: 150
z_hop: 15
z_hop_speed: 20
[bed_mesh]
speed: 250
horizontal_move_z: 6
mesh_min: 5,5
mesh_max: 192,187
probe_count: 5
mesh_pps: 2,2
algorithm: bicubic
# ======================================================================
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
step_distance: .0125
endstop_pin: ^PC0
position_endstop: 0
position_max: 235
homing_speed: 50
second_homing_speed: 20
[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
microsteps: 16
run_current: 0.580
hold_current: 0.500
stealthchop_threshold: 250
# ======================================================================
[stepper_y]
step_pin: PB10
dir_pin: !PB2
enable_pin: !PB11
step_distance: .0125
endstop_pin: ^PC1
position_endstop: -12
position_min:-12
position_max: 200
homing_speed: 50
second_homing_speed: 20
[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
microsteps: 16
run_current: 0.580
hold_current: 0.500
stealthchop_threshold: 250
# ======================================================================
[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
step_distance: .0025
endstop_pin: probe:z_virtual_endstop
position_min: -5
position_max: 250
[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
uart_address: 1
microsteps: 16
run_current: 0.580
hold_current: 0.500
stealthchop_threshold: 5
# ======================================================================
#SET_EXTRUDER_STEP_DISTANCE EXTRUDER=extruder DISTANCE=0.010706
# Measure 120mm, then extrude 100mm
# G1 E100 F100
# step_distance = old_e_steps * ((120 - distance_to_mark) / 100)
[extruder]
step_pin: PB3
dir_pin: !PB4
enable_pin: !PD2
step_distance: 0.010706
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
min_temp: 0
min_extrude_temp: 0
max_extrude_only_distance: 500
max_temp: 280
pressure_advance: 0.091
pressure_advance_smooth_time: 0.040
[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
microsteps: 16
run_current: 0.650
hold_current: 0.500
stealthchop_threshold: 5
# ======================================================================
[heater_bed]
heater_pin: PC9
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC3
min_temp: 0
max_temp: 130
# ======================================================================
[fan]
pin: PC6
[heater_fan hotend_fan]
pin: PC7
heater: extruder
heater_temp: 50.0
[controller_fan case_fan]
pin: host:gpio18
heater: heater_bed
# ======================================================================
[temperature_sensor rpi_cpu_temp]
sensor_type: rpi_temperature
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
sensor_mcu: mcu
# The micro-controller to read from. The default is "mcu".
#sensor_temperature1:
#sensor_adc1:
# Specify the above two parameters (a temperature in Celsius and an
# ADC value as a float between 0.0 and 1.0) to calibrate the
# micro-controller temperature. This may improve the reported
# temperature accuracy on some chips. A typical way to obtain this
# calibration information is to completely remove power from the
# printer for a few hours (to ensure it is at the ambient
# temperature), then power it up and use the QUERY_ADC command to
# obtain an ADC measurement. Use some other temperature sensor on
# the printer to find the corresponding ambient temperature. The
# default is to use the factory calibration data on the
# micro-controller (if applicable) or the nominal values from the
# micro-controller specification.
#sensor_temperature2:
#sensor_adc2:
# If sensor_temperature1/sensor_adc1 is specified then one may also
# specify sensor_temperature2/sensor_adc2 calibration data. Doing so
# may provide calibrated "temperature slope" information. The
# default is to use the factory calibration data on the
# micro-controller (if applicable) or the nominal values from the
# micro-controller specification.
# ======================================================================
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_31FFD6054248313014761257-if00
[mcu host]
serial: /tmp/klipper_host_mcu
# ======================================================================
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 7000
max_accel_to_decel: 7000
max_z_velocity: 40
max_z_accel: 100
square_corner_velocity: 8
[input_shaper]
shaper_freq_x: 43.38
shaper_freq_y: 46.67
[static_digital_output usb_pullup_enable]
pins: !PA14
[board_pins]
aliases:
# EXP1 header
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PB15, EXP1_10=<5V>
[display]
lcd_type: st7920
cs_pin: EXP1_7
sclk_pin: EXP1_6
sid_pin: EXP1_8
encoder_pins: ^EXP1_5, ^EXP1_3
click_pin: ^!EXP1_2
[output_pin beeper]
pin: EXP1_1
# ======================================================================
[filament_switch_sensor Filament_Runout]
pause_on_runout: True
# When set to True, a PAUSE will execute immediately after a runout
# is detected. Note that if pause_on_runout is False and the
# runout_gcode is omitted then runout detection is disabled. Default
# is True.
#runout_gcode:
# A list of G-Code commands to execute after a filament runout is
# detected. See docs/Command_Templates.md for G-Code format. If
# pause_on_runout is set to True this G-Code will run after the
# PAUSE is complete. The default is not to run any G-Code commands.
#insert_gcode:
# A list of G-Code commands to execute after a filament insert is
# detected. See docs/Command_Templates.md for G-Code format. The
# default is not to run any G-Code commands, which disables insert
# detection.
event_delay: 3.0
# The minimum amount of time in seconds to delay between events.
# Events triggered during this time period will be silently
# ignored. The default is 3 seconds.
pause_delay: 5
# The amount of time to delay, in seconds, between the pause command
# dispatch and execution of the runout_gcode. It may be useful to
# increase this delay if OctoPrint exhibits strange pause behavior.
# Default is 0.5 seconds.
switch_pin: !PC15
# The pin on which the switch is connected. This parameter must be
# provided.
# ======================================================================
# MACROS
# ======================================================================
# Replace the slicer's custom start and end g-code scripts with
# START_PRINT and END_PRINT.
[gcode_macro START_PRINT]
default_parameter_BED_TEMP: 0
default_parameter_EXTRUDER_TEMP: 0
gcode:
;Put printing message on LCD screen
M117 Heating...
M140 S{BED_TEMP} ; set bed temp
G28 X Y; Home X Y
G1 Y10 F3000; this is a good start heating position
M190 S{BED_TEMP} ; wait for bed temp
G28 Z ; Home Z
M104 S{EXTRUDER_TEMP} ; set extruder temp
; Auto Leveling
BED_MESH_PROFILE LOAD=default
M109 S{EXTRUDER_TEMP} ; wait for extruder temp
M117 Priming
; Start of print
G21; metric values
G90 ; absolute positioning
M82; set extruder to absolute mode
G1 Z5; Move nozzle above 5 mm of the bed
; now print a line of filament to prepare extrusion
G92 E0 ; reset extruder
G1 X5 Y15 F5000.0 ; move to start-line position
G1 X5 Y15 Z0.3 F5000.0
G1 Y20 F1000 E0.8
G92 E0 ; reset extruder
G1 X5 Y200.0 Z0.3 F1500.0 E15 ; draw 1st line
G1 X5.4 Y200.0 Z0.3 F5000.0 ; move to side a little
G1 X5.4 Y20 Z0.3 F1500.0 E30 ; draw 2nd line
G1 E34 ; Retract extruder
G92 E0 ; reset extruder
G1 Z3.0 F3000 ; move z up little to prevent scratching of surface
G1 X100 Y100 F15000
;Tuning params
;Put printing message on LCD screen
M117 Printing...
M83
; Start of actual GCode for the print
[gcode_macro END_PRINT]
gcode:
M140 S0
M104 S0
G92 E1
G1 E-1 F300
M106 S0
G28 X0
G90
M84
SAVE_IF_SET
[gcode_macro G29]
gcode:
G28
G1 Z10 F600
BED_MESH_CLEAR
BED_MESH_CALIBRATE
BED_MESH_PROFILE LOAD=default
[gcode_macro M204]
rename_existing: M204.1
default_parameter_F: 0.75
gcode:
{% if 'S' in params %}
SET_VELOCITY_LIMIT ACCEL={ S } ACCEL_TO_DECEL={ S|float * F|float }
{% endif %}
[gcode_macro M205]
gcode:
{% if 'X' in params %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ X }
{% endif %}
[virtual_sdcard]
path: ~/gcode_files
[display_status]
# ======================================================================
# Save at end macros
# ======================================================================
[gcode_macro SAVE_AT_END]
variable_save: 0
gcode:
SET_GCODE_VARIABLE MACRO=SAVE_AT_END VARIABLE=save VALUE=1
[gcode_macro SAVE_IF_SET]
gcode:
{% if printer["gcode_macro SAVE_AT_END"].save == 1 %}
{printer.gcode.action_respond_info("saving and restarting now")}
SAVE_CONFIG
{% endif %}
# ======================================================================
# Filament load and unload macros
# ======================================================================
[pause_resume]
# M600: Filament Change. This macro will pause the printer, move the
# tool to the change position, and retract the filament 50mm. Adjust
# the retraction settings for your own extruder. After filament has
# been changed, the print can be resumed from its previous position
# with the "RESUME" gcode.
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 200 # edit to your preferred park position
default_parameter_Y: 200 # edit to your preferred park position
default_parameter_Z: 100 # edit to your preferred park position
default_parameter_E: 1 # edit to your preferred retract length
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{E} F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
[gcode_macro RESUME]
rename_existing: BASE_RESUME
default_parameter_E: 1 # edit to your preferred retract length
gcode:
G91
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
[gcode_macro PARK]
gcode:
G1 X125 Y200.0 Z200.0 F4000
[gcode_macro FILAMENT_LOAD]
gcode:
M83 ; set e to relative positioning
G92 E0.0
G1 E40 F1000 ; Initially go fast
G92 E0.0
G1 E100 F200 ; then go slow
G92 E0.0
[gcode_macro FILAMENT_UNLOAD]
gcode:
M83 ; set e to relative positioning
# wiggle filament out of the nozzle
G1 E0.5 F1000
G1 E-0.5 F1000
G1 E1.0 F1000
G1 E-1.0 F1000
G1 E1.5 F1000
G1 E-1.5 F1000
G1 E2.0 F1000
G1 E-450 F3000 ;fully unload
G92 E0.0
# M600: Filament Change. This macro will pause the printer, move the
# tool to the change position, and retract the filament 50mm. Adjust
# the retraction settings for your own extruder. After filament has
# been changed, the print can be resumed from its previous position
# with the "RESUME" gcode.
[gcode_macro M600]
default_parameter_X: 50
default_parameter_Y: 0
default_parameter_Z: 10
gcode:
SAVE_GCODE_STATE NAME=M600_state
PAUSE
G91
G1 E-.8 F2700
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000
G91
G1 E-50 F1000
RESTORE_GCODE_STATE NAME=M600_state
# ======================================================================
# MENU MACRO
# ======================================================================
[menu __main __cal]
type: list
name: Calibration
enable: true
# Stand alone CAL Menus
# ======================================================================
[menu __main __cal __probe_accuracy]
type: command
name: Test Z Probe Accuracy
enable: true
gcode:
G28
PROBE_ACCURACY
[menu __main __cal __firmware_restart]
type: command
name: Restart firmware
enable: true
gcode:
FIRMWARE_RESTART
[menu __main __cal __homeXYZ]
type: command
name: Home XYZ
enable: true
gcode:
G28
[menu __main __cal __bed_mesh_calibrate]
type: command
name: Generate bed mesh
enable: true
gcode:
G29
[menu __main __cal __screws_tilt_calculate]
type: command
name: Calculate Bed Tilt
enable: true
gcode:
SCREWS_TILT_CALCULATE
# ======================================================================
[menu __main __cal __calibratez]
type: list
name: Adjust Z offset
enable: true
[menu __main __cal __calibratez __test_z]
type: input
name: Test Z: {['++','+','+.01','+.05','+.1','+.5','-.5','-.1','-.05','-.01','-','--'][menu.input|int]}
input: 6
input_min: -2
input_max: 11
input_step: 1
gcode:
{%- if menu.event == 'long_click' -%}
TESTZ Z={['++','+','+.01','+.05','+.1','+.5','+1','-1','-.5','-.1','-.05','-.01','-','--'][menu.input|int]}
{%- endif -%}
[menu __main __cal __calibratez __execute]
type: command
name: Execute
enable: true
gcode:
G28
PROBE_CALIBRATE
[menu __main __cal __calibratez __accept]
type: command
name: Accept
enable: true
gcode:
ACCEPT
[menu __main __cal __calibratez __abort]
type: command
name: Abort
enable: true
gcode:
ABORT
[menu __main __cal __calibratez __save_config]
type: command
name: Save config
enable: true
gcode:
SAVE_CONFIG
[menu __main __cal __calibratez __minus]
type: command
name: "-"
enable: true
gcode:
TESTZ Z=-
[menu __main __cal __calibratez __minus_minus]
type: command
name: "--"
enable: true
gcode:
TESTZ Z=--
[menu __main __cal __calibratez __plus]
type: command
name: "+"
enable: true
gcode:
TESTZ Z=+
[menu __main __cal __calibratez __plus_plus]
type: command
name: "++"
enable: true
gcode:
TESTZ Z=++
[menu __main __cal __calibratez __minus_1]
type: command
name: "-1.0"
enable: true
gcode:
TESTZ Z=-1
[menu __main __cal __calibratez __plus_1]
type: command
name: "+1.0"
enable: true
gcode:
TESTZ Z=+1
[menu __main __cal __calibratez __minus_point_1]
type: command
name: "-0.1"
enable: true
gcode:
TESTZ Z=-0.1
[menu __main __cal __calibratez __plus_point_1]
type: command
name: "+0.1"
enable: true
gcode:
TESTZ Z=+0.1
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 2.651
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.053333, 0.032500, 0.040833, 0.002500, 0.044167
#*# 0.002500, 0.012500, 0.020000, 0.014167, 0.030833
#*# 0.004167, 0.015000, 0.034167, 0.006667, 0.037500
#*# 0.021667, 0.042500, 0.050000, 0.037500, 0.045000
#*# 0.012500, 0.019167, 0.031667, -0.005000, 0.029167
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 5.0
#*# max_x = 192.0
#*# min_y = 5.0
#*# max_y = 187.0
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 21.564
#*# pid_ki = 0.871
#*# pid_kd = 133.429
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 72.936
#*# pid_ki = 1.993
#*# pid_kd = 667.362
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment