Error with BED_MESH_CALIBRATE

I have a 3D printer with frame Tatara (like Anet A8), with SKR 1.4 Turbo, TMC2209, bltouch (offset -44,1). The dimension bed is 220x220. The bltouch is on the left from nozzle (e3d hemera).
This is my printer.cfg

# This file contains common pin mappings for the BIGTREETECH SKR V1.4
# board. To use this config, the firmware should be compiled for the
# LPC1768 or LPC1769(Turbo).

# See docs/Config_Reference.md for a description of parameters.

[include mainsail.cfg]

#######################################################################################
##     STEPPERS
#######################################################################################

[stepper_x]
step_pin: P2.2
dir_pin: P2.6
enable_pin: !P2.1
microsteps: 16
rotation_distance: 32
endstop_pin: tmc2209_stepper_x:virtual_endstop
homing_retract_dist: 0
position_endstop: -9
position_max: 220
position_min: -9
homing_speed: 20

[tmc2209 stepper_x]
uart_pin: P1.10
interpolate: True
run_current: 0.650
hold_current: 0.500
diag_pin: ^P1.29      # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 90  # 255 is most sensitive value, 0 is least sensitive
stealthchop_threshold: 250

######################################################################################
[stepper_y]
step_pin: P0.19
dir_pin: P0.20
enable_pin: !P2.8
microsteps: 16
rotation_distance: 32
endstop_pin: tmc2209_stepper_y:virtual_endstop
homing_retract_dist: 0
position_endstop: -21
position_max: 220
position_min: -21
homing_speed: 50

[tmc2209 stepper_y]
uart_pin: P1.9
interpolate: True
run_current: 0.650
hold_current: 0.500
diag_pin: ^P1.28   # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 130  # 255 is most sensitive value, 0 is least sensitive
stealthchop_threshold: 250

#####################################################################################
[stepper_z]
step_pin: P0.22
dir_pin: !P2.11
enable_pin: !P0.21
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_max: 240
position_min: 0

[stepper_z1]
step_pin: P1.15
dir_pin: !P1.14
enable_pin: !P1.16
microsteps: 16
rotation_distance: 8

[tmc2209 stepper_z]
uart_pin: P1.8
interpolate: True
run_current: 0.650
hold_current: 0.450
stealthchop_threshold: 250

[tmc2209 stepper_z1]
uart_pin: P1.1
interpolate: True
run_current: 0.650
hold_current: 0.450
stealthchop_threshold: 250

# The safe_z_home section modifies the default G28 behavior
[safe_z_home]
home_xy_position: 154,109
speed: 50
z_hop: 10
z_hop_speed: 5

######################################################################################
[extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
microsteps: 16
rotation_distance: 7.82
full_steps_per_rotation: 200
nozzle_diameter: 0.400
filament_diameter: 1.750
max_extrude_only_velocity: 2000
heater_pin: P2.7
sensor_type: ATC Semitec 104GT-2 
sensor_pin: P0.24
control: pid
pid_Kp: 38.155
pid_Ki: 1.857
pid_Kd: 196.020
min_temp: 0
max_temp: 300

[tmc2209 extruder]
uart_pin: P1.4
interpolate: True
run_current: 0.855
hold_current: 0.500
stealthchop_threshold: 10

#####################################################################################
[heater_bed]
heater_pin: P2.5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.25
control: pid
pid_Kp: 73.907
pid_Ki: 1.149
pid_Kd: 1188.985
min_temp: 0
max_temp: 130

[fan]
pin: P2.3

[mcu]
serial: /dev/serial/by-id/usb-Klipper_lpc1769_0800011622813AAFD3336A5CC22000F5-if00

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 1000
max_z_velocity: 20
max_z_accel: 100

[bltouch]
sensor_pin: ^P0.10
control_pin: P2.0
x_offset: -44
y_offset: 1
z_offset: 2.999
samples:2
samples_result:average
probe_with_touch_mode: true
stow_on_each_sample: false

[bed_mesh]
speed: 100
horizontal_move_z: 10
mesh_min: 10,10
mesh_max: 210,210
probe_count: 3,3
fade_start: 1.0
fade_end: 0.0
fade_target: 0
algorithm: bicubic

############################################
##      Additional Sensors
############################################
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100

######################################################################################################
# Macro configs
######################################################################################################

[gcode_macro START_PRINT]
# Reference https://github.com/KevinOConnor/klipper/blob/master/docs/Config_Reference.md#gcode_macroA
# On how to override default parameters
default_parameter_BED_TEMP: 60
default_parameter_EXTRUDER_TEMP: 200

gcode:
 # Home the printer
	G28
    #Probe Everytime
	G29 
	#load saved mesh at print start instead of probe. Uncomment to use but comment out G29
	#BED_MESH_PROFILE LOAD=default   					 
    # Use absolute coordinates
    G90
    # Move the nozzle near the bed
    G1 X0 Y0 Z5 F3000
    # Move the nozzle very close to the bed
    G1 Z0.15 F300
    G92 E0 ;Reset Extruder
    G1 X20 Y5 Z0.3 F5000.0			   
    G1 Z0.3 F1000 				    
    G1 X200 Y5 F1500.0 E15 			   
    G1 X200 Y5.3 Z0.3 F5000.0			    
    G1 X5.3  Y5.3 Z0.3 F1500.0 E30 			
    G1 Z3 F3000 				     
    G21 ; set units to millimeters
    G90 ; use absolute coordinates
    M83 ; use relative	distances for extrusion
    G92 E0

[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 Z30 F3000
    G90
    # Disable steppers
    M84

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 2.999
#*#
#*# [extruder]
#*#
#*# [heater_bed]

When I try to create the bed mesh, I get the following error message:

Move out of range: 254.000 9.000 10.000 [0.000]
probe at 154.000,9.000 is z=2.906500
probe at 154.000,9.000 is z=2.904000
probe at 54.000,9.000 is z=2.939000
probe at 54.000,9.000 is z=2.909000
BED_MESH_CALIBRATE

What am I doing wrong?

It’s because the bltouch postition is out of range at the postition 210. 210 + 44 = 254

You should set in bed mesh the parameter mesh_max 160,210

Thank you. Now it is all ok.

1 Like