Skip to content

Knomi v2 bed leveling on K1 series  #11

@killergreenx420

Description

@killergreenx420

there is a easier way to fix the bed leveling I looked at what had previously been added to fix it and found that it was overly complicated the Knomi_v2.cfg it changes the G28 macro to G28.1 so all that is needed to fix the K1 error is to open sensorless.cfg go to Home X, Home Y, and Home Z and in each macro change G28 line to G28.1 that's it and it fixes the issue you can copy or look at what's needed to be changed
#<-----This is what changes for Knomi v2 is shown on the line that needs changed but this is a easy fix and the other way had you add a macro and change quite a few things this requires 3 changes

[gcode_macro _HOME_X]
gcode:
_IF_MOVE_XY

{% if printer['gcode_macro xyz_ready'].x_ready|int == 1 %}
{% if (printer.configfile.settings['stepper_x'].position_max - printer.toolhead.position.x)|round < 10 %}
{% set x_park = (10 - (printer.configfile.settings['stepper_x'].position_max - printer.toolhead.position.x))|round %}
{% if x_park > 0 %}
G91
G1 x-{x_park} F3600
G90
G4 P1000
{% endif %}
{% endif %}
{% endif %}

SET_TMC_FIELD FIELD=SGTHRS STEPPER=stepper_y VALUE=70

SET_TMC_FIELD FIELD=SGTHRS STEPPER=stepper_x VALUE=70

Home

G28.1 X #<-----This is what changes for Knomi v2
SET_GCODE_VARIABLE MACRO=xyz_ready VARIABLE=x_ready VALUE=1

Move away

G91
G1 x-10 F3600
G90

Wait just a second (give StallGuard registers time to clear)

G4 P2000

[gcode_macro _HOME_Y]
gcode:
_IF_MOVE_XY

{% if printer['gcode_macro xyz_ready'].y_ready|int == 1 %}
{% if printer.toolhead.position.y|round < 9 %}
{% set y_park = 9 - printer.toolhead.position.y|round %}
{% if y_park > 0 %}
G91
G1 y{y_park} F3600
G90
G4 P1000
{% endif %}
{% endif %}
{% endif %}

SET_TMC_FIELD FIELD=SGTHRS STEPPER=stepper_y VALUE=60

SET_TMC_FIELD FIELD=SGTHRS STEPPER=stepper_x VALUE=60

Home

G28.1 Y #<-----This is what changes for Knomi v2
SET_GCODE_VARIABLE MACRO=xyz_ready VARIABLE=y_ready VALUE=1

Move away

G91
G1 y10 F3600
G90

Wait just a second (give StallGuard registers time to clear)

G4 P2000

[gcode_macro _HOME_Z]
gcode:
{% if printer['gcode_macro xyz_ready'].y_ready|int == 1 %}
{% if printer['gcode_macro xyz_ready'].x_ready|int == 1 %}
_IF_HOME_Z
{% endif %}
{% endif %}
{% if printer.print_stats.z_pos|float >= 210.0 %}
FORCE_MOVE STEPPER=stepper_z DISTANCE=-8 VELOCITY=10
{% endif %}

{% set POSITION_X = printer.configfile.settings['stepper_x'].position_max/2 %}
{% set POSITION_Y = printer.configfile.settings['stepper_y'].position_max/2 %}

BED_MESH_SET_DISABLE

G91
{% set x_park = POSITION_X - printer.toolhead.position.x|int %}
{% set y_park = POSITION_Y - printer.toolhead.position.y|int %}
{action_respond_info("x_park = %s \n" % (x_park))}
{action_respond_info("y_park = %s \n" % (y_park))}
G1 x{x_park} y{y_park} F3600
G90

G4 P500

G28.1 Z #<-----This is what changes for Knomi v2
SET_GCODE_VARIABLE MACRO=xyz_ready VARIABLE=z_ready VALUE=1

BED_MESH_SET_ENABLE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions