Jump to content

Knomi Issues with Voron 2.4 Klipper - Macro G28 called recursively ERROR


WestyNZ

Recommended Posts

I have pasted the Knomi gcode from the BTT Github Repo which leads you to this page:

 

https://bigtreetech.github.io/docs/KNOMI.html#

 

The issue is that when I select Home All or G28 X....G28 X or G28 Z. it comes up with the error attached.

 

I have contacted BTT Tech Support but no response.

 

From the help I have received from Voron Discord, it looks like it is an issue with "The knomi g28 macro only works with safe_z_home, not homing_override."

I am running sensor-less homing so it is configured differently. 

 

You would think there would  be You tube videos or some sort of tech support on this? Any help would be appreciated.

the other thing that is strange is that the instructions state to copy some code for special macros "INSERT THE FOLLOW MACRO DEFINITIONS" ... but there is not anything to copy and paste. Probably half finished.

 

HOMING AND LEVELING

KNOMI requires the addition of relevant macros for homing and leveling within the printer.cfg file. Access the print control interface by entering the Klipper IP address into your browser, locate the config Files directory containing printer.cfg, and insert the following macro definitions. Once completed, save and exit.

image.png.76f6d41b3f1891224e4a38c7be2558f4.png

 

Link to comment
Share on other sites

First of all. No Surprise - NO COMMUNICATION BACK FROM BTT TECHNICAL.... They are absolutely the pit of the earth on responding to anything at all.

I ended up commenting out everything and it does somethings but does not show homing ALL or QGL or anything other than looking like it is taking a crap on the lawn when is printing ... plus it loses wireless connection. Really not work the money I spent. Very dissapointing.

I mean  No one even knows what the URL is that is supposed to auto load when you connect to the knomi wireless interface on the device.

Real crap support centre, I gues they just pedal their wares ... take your cash and go NEXT SUCKER PLEASE!

This one will be going on my You tube Channel https://www.youtube.com/@rent2ownnz

Gets a big Fat 1 out of 10 for me. 

My Youtube review will be 

- Over priced

- Under supported = NONE AT ALL 0 your on your own buddy!

- Poorly written code

- poorly written instructions ... I mean look at the above rubbish example!

 

Link to comment
Share on other sites

  • 3 months later...
  • 4 months later...

The KNOMI config file changed the G28 commands to G28.1 hence the recursive loop when it trys to run the G28. You need to change the G28 commands in your sensorless homing to G28.1as shown:

 

[gcode_macro _HOME_X]
gcode:
    # Home
    {% set RUN_CURRENT_X = printer.configfile.settings['tmc5160 stepper_x'].run_current|float %}
    {% set RUN_CURRENT_Y = printer.configfile.settings['tmc5160 stepper_y'].run_current|float %}
    {% set HOME_CURRENT = 0.49 %}
    SET_TMC_CURRENT STEPPER=stepper_x CURRENT={HOME_CURRENT}
    SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CURRENT}
    SAVE_GCODE_STATE NAME=STATE_HOME_X
    
    SET_KINEMATIC_POSITION X=15
    G91
    G0 X-15 F3600
    G4 P2000
    # Home
    G28.1 X
    # Move away
    G91
    G0 X-150 F3600
    
    SET_TMC_CURRENT STEPPER=stepper_x CURRENT={RUN_CURRENT_X}
    SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CURRENT_Y}
    RESTORE_GCODE_STATE NAME=STATE_HOME_X

[gcode_macro _HOME_Y]
gcode:
    {% set RUN_CURRENT_X = printer.configfile.settings['tmc5160 stepper_x'].run_current|float %}
    {% set RUN_CURRENT_Y = printer.configfile.settings['tmc5160 stepper_y'].run_current|float %}
    {% set HOME_CURRENT = 0.49 %}
    SET_TMC_CURRENT STEPPER=stepper_x CURRENT={HOME_CURRENT}
    SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CURRENT}
    SAVE_GCODE_STATE NAME=STATE_HOME_Y
    
    SET_KINEMATIC_POSITION Y=15
    G91
    G0 Y-15 F3600
    G4 P2000
    # Home
    G28.1 Y
    # Move away
    G91
    G0 Y-15 F3600

    # Wait just a second… (give StallGuard registers time to clear)
    SET_TMC_CURRENT STEPPER=stepper_x CURRENT={RUN_CURRENT_X}
    SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CURRENT_Y}
    RESTORE_GCODE_STATE NAME=STATE_HOME_Y

[homing_override]
axes: xyz
gcode:
  {% set home_all = 'X' not in params and 'Y' not in params and 'Z' not in params %}
  
    SAVE_GCODE_STATE NAME=STATE_HOME_OVERRIDE
    
  {% if home_all or 'X' in params %}
    BED_MESH_CLEAR
    SET_KINEMATIC_POSITION Z=0
    G0 Z20 F1200
    _HOME_X
  {% endif %}
  
  {% if home_all or 'Y' in params %}
    _HOME_Y  
  {% endif %}
  
  {% if home_all or 'Z' in params %}
    G90
    G1 X150 Y150 F3600
    G28.1 Z
    G0 Z10 F1500
    # G0 X150 Y303 F3800
    PARK_REAR
    STATUS_READY
  {% endif %}
  
  RESTORE_GCODE_STATE NAME=STATE_HOME_OVERRIDE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...