Need help with Range issues

Basic Information:

Printer Model: Anycubic Chiron
MCU / Printerboard: Trigorilla v0.0.2
Host / SBC - Linux Mint
klippy.log

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

Good Evening,

I’m having issues with calibrating heightmap after installing a 3d Touch (BL touch clone) where a message appears regarding being out of range. Can someone please help educate me on this? I’m fairly new to Klipper and have spent hours trying to figure things out and feel I’m rather close. If you feel any corrections can be also made to my config, please give me some input as I’m wanting to be a lot more proficient with this. Please see my printer config below:

Anycubic Chiron - Stock

##########################################
#Steppers
##########################################

[include mainsail.cfg]

[stepper_x]
step_pin: PF0
dir_pin: !PF1
enable_pin: !PD7
microsteps: 16
rotation_distance: 40
#step_distance: .0125
Full_steps_per_rotation = 200
endstop_pin: ^!PE5
position_min: -8
position_endstop: -8
position_max: 410
homing_speed: 100

[stepper_y]
step_pin: PF6
dir_pin: !PF7
enable_pin: !PF2
microsteps: 16
rotation_distance: 32
Full_steps_per_rotation = 200
#step_distance: .01
endstop_pin: ^!PL7
position_min: 0
position_endstop: 0
position_max: 410
homing_speed: 100

[stepper_z]
step_pin: PL3
dir_pin: !PL1
enable_pin: !PK0
microsteps: 16
rotation_distance: 8
Full_steps_per_rotation = 200
#step_distance: .0025
endstop_pin: probe:z_virtual_endstop
position_max: 450
position_min: -6.0
homing_speed: 5.0

[stepper_z1]
step_pin: PC1
dir_pin: !PC3
enable_pin: !PC7
#step_distance: .0025
Full_steps_per_rotation = 200
microsteps: 16
rotation_distance: 8
endstop_pin: ^PL6
endstop_pin: probe:z_virtual_endstop

[bltouch]
sensor_pin: ^PE4
control_pin: PB5
x_offset: -45 #dependant on your mount - calibrate using post-it.
y_offset: -4 #dependant on your mount - calibrate using post-it.
z_offset: 2.75 #safe height - calibrate using post-it.
pin_move_time: 0.68
#pin_up_touch_mode_reports_triggered: False
#stow_on_each_sample: true
#probe_with_touch_mode: false

[safe_z_home]
home_xy_position: 242, 211 # Change coordinates to the center of your print bed
speed: 150
z_hop: 15 # Move up 10mm
z_hop_speed: 5

bltouch mesh bed leveling

[bed_mesh]
speed: 150
horizontal_move_z: 5
mesh_min: 23.5,53 #23,28
mesh_max: 365,365 #190,190
probe_count: 9,9
fade_start: 1.0
fade_end: 10.0
algorithm: bicubic

[extruder]
step_pin: PA4
dir_pin: PA6
enable_pin: !PA2
#step_distance: .00244
microsteps: 16
Full_steps_per_rotation = 200
rotation_distance: 8.0789 #34.557
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PB4 ### USE “PH5” if stock mofset is blown
sensor_type: ATC Semitec 104GT-2
sensor_pin: PK5
min_temp: 0
max_temp: 245
max_extrude_cross_section: 50.0
pressure_advance=0.40

###################################################

Printer

###################################################

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 2900
max_accel_to_decel: 2000
max_z_velocity: 10
max_z_accel: 60
square_corner_velocity: 5

[safe_z_home]
home_xy_position: 242, 211 # Change coordinates to the center of your print bed
speed: 50
z_hop: 10 # Move up 10mm
z_hop_speed: 5

[probe]
#z_offset: 16.2

[filament_switch_sensor FSensor]
pause_on_runout: True
runout_gcode:
M600
switch_pin: ^!PC4

[controller_fan stepstick_fan] ###CONTROLLER FAN
pin: PH4
#stepper: extruder stepper_x stepper_y stepper_z stepper_z1 heater_bed
idle_timeout: 120

[heater_fan extruder_fan]
pin: PL5

[fan]
pin: PH6

##########################################################

Bed

##########################################################

[heater_bed]
heater_pin: PL4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PK6
min_temp: 0
max_temp: 110

[bed_mesh]
speed: 300
horizontal_move_z: 20.990
mesh_min: 20,20
mesh_max: 410, 410
algorithm: bicubic
probe_count: 9,9
[bed_screws]
screw1: 23.5,53
screw1_name: front left screw
screw2: 398.5,53
screw2_name: front right screw
screw3: 398.5,353
screw3_name: rear right screw
screw4: 23.5,353
screw4_name: rear left screw

[screws_tilt_adjust]
screw1: 23.5,53
screw1_name: front left screw
screw2: 398.5,53
screw2_name: front right screw
screw3: 398.5,353
screw3_name: rear right screw
screw4: 23.5,353
screw4_name: rear left screw
horizontal_move_z: 20
speed: 100
screw_thread: CW-M5

######################################

MCU

######################################

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

Arduino aliases for atmega2560/1280 (Arduino mega) boards

[board_pins arduino-mega]
aliases:
ar0=PE0, ar1=PE1, ar2=PE4, ar3=PE5, ar4=PG5,
ar5=PE3, ar6=PH3, ar7=PH4, ar8=PH5, ar9=PH6,
ar10=PB4, ar11=PB5, ar12=PB6, ar13=PB7, ar14=PJ1,
ar15=PJ0, ar16=PH1, ar17=PH0, ar18=PD3, ar19=PD2,
ar20=PD1, ar21=PD0, ar22=PA0, ar23=PA1, ar24=PA2,
ar25=PA3, ar26=PA4, ar27=PA5, ar28=PA6, ar29=PA7,
ar30=PC7, ar31=PC6, ar32=PC5, ar33=PC4, ar34=PC3,
ar35=PC2, ar36=PC1, ar37=PC0, ar38=PD7, ar39=PG2,
ar40=PG1, ar41=PG0, ar42=PL7, ar43=PL6, ar44=PL5,
ar45=PL4, ar46=PL3, ar47=PL2, ar48=PL1, ar49=PL0,
ar50=PB3, ar51=PB2, ar52=PB1, ar53=PB0, ar54=PF0,
ar55=PF1, ar56=PF2, ar57=PF3, ar58=PF4, ar59=PF5,
ar60=PF6, ar61=PF7, ar62=PK0, ar63=PK1, ar64=PK2,
ar65=PK3, ar66=PK4, ar67=PK5, ar68=PK6, ar69=PK7,
analog0=PF0, analog1=PF1, analog2=PF2, analog3=PF3, analog4=PF4,
analog5=PF5, analog6=PF6, analog7=PF7, analog8=PK0, analog9=PK1,
analog10=PK2, analog11=PK3, analog12=PK4, analog13=PK5, analog14=PK6,
analog15=PK7,
# Marlin adds these additional aliases
ml70=PG4, ml71=PG3, ml72=PJ2, ml73=PJ3, ml74=PJ7,
ml75=PJ4, ml76=PJ5, ml77=PJ6, ml78=PE2, ml79=PE6,
ml80=PE7, ml81=PD4, ml82=PD5, ml83=PD6, ml84=PH2,
ml85=PH7

INPUT SHAPING / ACCELEROMETER

#[mcu rpi]
#serial: /tmp/klipper_host_mcu

#[adxl345] ###UNCOMMENT FOR ACCELEROMETER ENABLE
#cs_pin: rpi:None
#[resonance_tester] ###UNCOMMENT FOR ACCELEROMETER ENABLE
#accel_chip: adxl345
#probe_points:200,200,20

[input_shaper]
shaper_type_x = mzv
shaper_freq_x = 56.2
shaper_type_y = ei
shaper_freq_y = 39.4

#########################################
#MISC
#########################################

[temperature_sensor pi_cpu]
sensor_type: temperature_host
gcode_id: P

[display_status]

[pause_resume]

[gcode_arcs]
resolution: 1.0

[virtual_sdcard]
path: /home/klipper/printer_1_data/gcodes

######################################################################

Required MACROS

######################################################################

[gcode_macro PAUSE]
description: Pause the actual running print
rename_existing: PAUSE_BASE
gcode:
##### set defaults #####
{% set x = -7 %} #edit to your park position
{% set y = 350 %} #edit to your park position
{% set z = 15.8 %} #edit to your park position
{% set e = 5 %} #edit to your retract length
##### calculate save lift position #####
{% set max_z = printer.toolhead.axis_maximum.z|float %}
{% set act_z = printer.toolhead.position.z|float %}
{% set lift_z = z|abs %}
{% if act_z < (max_z - lift_z) %}
{% set z_safe = lift_z %}
{% else %}
{% set z_safe = max_z - act_z %}
{% endif %}
PAUSE_BASE
G91
{% if printer.extruder.can_extrude|lower == ‘true’ %}
G1 E-{e} F2100
{% else %}
{action_respond_info(“Extruder not hot enough”)}
{% endif %}
{% if “xyz” in printer.toolhead.homed_axes %}
G1 Z{z_safe}
G90
G1 X{x} Y{y} F6000
{% else %}
{action_respond_info(“Printer not homed”)}
{% endif %}

[gcode_macro RESUME]
description: Resume the actual running print
rename_existing: RESUME_BASE
gcode:
##### set defaults #####
{% set e = 0.2%} #edit to your retract length
#### get VELOCITY parameter if specified ####
{% if ‘VELOCITY’ in params|upper %}
{% set get_params = (‘VELOCITY=’ + params.VELOCITY) %}
{%else %}
{% set get_params = “” %}
{% endif %}
##### end of definitions #####
G91
{% if printer.extruder.can_extrude|lower == ‘true’ %}
G1 E{e} F2100
{% else %}
{action_respond_info(“Extruder not hot enough”)}
{% endif %}
RESUME_BASE {get_params}

[gcode_macro CANCEL_PRINT]
description: Cancel the actual running print
rename_existing: CANCEL_PRINT_BASE
gcode:
# Turn off bed, extruder, and fan
M140 S0
M104 S0
M106 S0
# Move nozzle away from print while retracting
G91
# Raise nozzle by 10mm
G1 Z15 F3000
G90
G1 X-7.0 Y350.0 F3000 ; park head, present part
# Disable steppers
M84
CLEAR_PAUSE
SDCARD_RESET_FILE
CANCEL_PRINT_BASE

######################################################################

User MACROS

######################################################################

[gcode_macro PREHEAT]
gcode:
M140 S59
M104 S199

[gcode_macro UNLOAD]
gcode:
M109 S200
G91
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G1 E-50 F1000
G90

[gcode_macro LOAD]
gcode:
M109 S200
G91
G1 E50 F1000
G1 E50 F1000
G1 E50 F1000
G1 E50 F1000
G1 E50 F1000
G1 E50 F1000
G1 E50 F1000
G1 E50 F1000
G1 E50 F1000
G1 E50 F1000
G1 E50 F1000
G1 E50 F1000
G1 E10 F50
G90

[gcode_macro PURGE]
gcode:
M109 S220
G91
G1 E50 F250
G90

#slow purge for smaller nozzle
[gcode_macro PURGE_SLOW]
gcode:
M109 S220
G91
G1 E50 F100
G90

[gcode_macro CONTINUE]
gcode:
RESUME

######################################################################

Filament Change

######################################################################

[gcode_macro M600]
gcode:
{% set X = params.X|default(50)|float %}
{% set Y = params.Y|default(0)|float %}
{% set Z = params.Z|default(10)|float %}
SAVE_GCODE_STATE NAME=M600_state
PAUSE
G91
G1 E-1 F2700
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000
G91
RESTORE_GCODE_STATE NAME=M600_state

######################################################################

Beeper

######################################################################

[output_pin BEEPER_pin]
pin: ar37

Beeper pin. This parameter must be provided.

ar37 is the default RAMPS/MKS pin.

pwm: True

A piezo beeper needs a PWM signal, a DC buzzer doesn’t.

value: 0

Silent at power on, set to 1 if active low.

shutdown_value: 0

Disable at emergency shutdown (no PWM would be available anyway).

cycle_time: 0.001

Default PWM frequency : 0.001 = 1ms will give a tone of 1kHz

Although not pitch perfect.

[gcode_macro M300]
gcode:
# Use a default 1kHz tone if S is omitted.
{% set S = params.S|default(1000)|int %}
# Use a 10ms duration is P is omitted.
{% set P = params.P|default(100)|int %}
SET_PIN PIN=BEEPER_pin VALUE=0.5 CYCLE_TIME={ 1.0/S if S > 0 else 1 }
G4 P{P}
SET_PIN PIN=BEEPER_pin VALUE=0

######################################################################

Start Print and End Print

######################################################################

Replace the slicer’s custom start and end g-code scripts with

START_PRINT and END_PRINT.

[gcode_macro START_PRINT]
gcode:
G92 E0 ; Reset extruder length to zero#
{% set BED_TEMP = params.BED|default(59)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER|default(199)|float %}
M140 S{BED_TEMP}
M104 S{EXTRUDER_TEMP}
G28
M190 S{BED_TEMP} ; wait for bed temp
M109 S{ EXTRUDER_TEMP} ; wait for extruder temp
G90 # Use absolute coordinates
BED_MESH_PROFILE LOAD=default
# extrude some
G1 Z15.0 F300 ; Move up 15mm
G1 X5.0 Y12.0 F3000 ; go to edge of print area
G1 Z0.200 F1000.0 ; Go to Start Z position
G1 X160.0 E15.0 F500 ; intro line
G92 E0 ; Reset extruder length to zero#

[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 X0 Y-20 E-3 F3000
# Raise nozzle by 15mm
G1 Z15 F300
G90
G1 X-7.0 Y350.0 F6000 ; park head, present par
# Disable steppers
M84
M300

## <---------------------- SAVE_CONFIG ---------------------->
#
# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
##
#
# [probe]
## z_offset = 16.491
#
#
## [extruder]
#
# control = pid
## pid_kp = 21.314
#
# pid_ki = 1.037
## pid_kd = 109.499
#
#
## [heater_bed]
#
# control = pid
## pid_kp = 63.918
#
# pid_ki = 1.375
## pid_kd = 743.051
#
#
## [bed_mesh default]
#
# version = 1
## points =
#
# -12.403500, -12.427667, -12.496000, -12.562667, -12.506833, -12.520167, -12.508500, -12.480167, -12.406000
## -12.489333, -12.516833, -12.591000, -12.597667, -12.608500, -12.584333, -12.578500, -12.553500, -12.478500
#
# -12.528500, -12.518500, -12.566000, -12.559333, -12.546000, -12.577667, -12.592667, -12.580167, -12.528500
## -12.559333, -12.572667, -12.636000, -12.631000, -12.604333, -12.615167, -12.625167, -12.609333, -12.548500
#
# -12.567667, -12.534333, -12.586000, -12.571833, -12.561833, -12.598500, -12.623500, -12.617667, -12.566000
## -12.589333, -12.598500, -12.653500, -12.642667, -12.620167, -12.646000, -12.654333, -12.643500, -12.595167
#
# -12.587667, -12.547667, -12.596833, -12.571000, -12.563500, -12.600167, -12.624333, -12.629333, -12.591000
## -12.591000, -12.586000, -12.638500, -12.643500, -12.622667, -12.648500, -12.666000, -12.661000, -12.608500
#
# -12.564333, -12.529333, -12.574333, -12.579333, -12.587667, -12.634333, -12.670167, -12.666833, -12.631833
## x_count = 9
#
# y_count = 9
## mesh_x_pps = 2
#
# mesh_y_pps = 2
## algo = bicubic
#
# tension = 0.2
## min_x = 20.0
#
# max_x = 394.96
## min_y = 20.0
#
# max_y = 394.96000000000004

Hello @ntbarone !

Please do not copy&paste the printer.cfg !

Upload the klippy.log as a file.

Upload

3 Likes

Might have something to do with your Z offset being 16+mm. Is that even possible?

It’s hard to say without the klippy.log