Git Product home page Git Product logo

Comments (3)

Biffes avatar Biffes commented on July 20, 2024

Got this problem too. Maybe it is a collision between the sensorless.cfg and the knomi macro. Mainsail console logs about five g28 commands while the error happens.

from knomi.

Specker avatar Specker commented on July 20, 2024

I was able to solve this.
If you have a [homing_override] in your printer.cfg you will have to change G28 in there with G28.1.
Similar to mine:
image
There might be more similar recursive calls that you will have to look for.

Think of it like.
old G28 gets renamed to G28.1,
new G28 sets variable to true, then calls old G28 by it's new name G28.1, and after it finishes sets variable to false.

When you try homing from the UI it will execute G28 and by extension [homing_override]. Which most likely also calls G28 with parameters X, Y or Z.
So without changing those variables it will call itself over and over again.

from knomi.

Biffes avatar Biffes commented on July 20, 2024

Thanks for the reply, Specker!
I tested your solution and it worked! But i had to change the G28s in the sensorless.cfg too. I found another solution after looking for a fix to the bed mesh calibration for kamp here:
#25

I commented the Knomi G28 macro completly out

#[gcode_macro G28]
#rename_existing: G28.1
#gcode:
#SET_GCODE_VARIABLE MACRO=_KNOMI_STATUS VARIABLE=homing VALUE=True
#G28.1 {rawparams}
#SET_GCODE_VARIABLE MACRO=_KNOMI_STATUS VARIABLE=homing VALUE=False

and changed the macros in my sensorless.cfg like this:

{% if home_all or 'X' in params %}
SET_GCODE_VARIABLE MACRO=_KNOMI_STATUS VARIABLE=homing VALUE=True
_HOME_X
SET_GCODE_VARIABLE MACRO=_KNOMI_STATUS VARIABLE=homing VALUE=False
{% endif %}

{% if home_all or 'Y' in params %}
SET_GCODE_VARIABLE MACRO=_KNOMI_STATUS VARIABLE=homing VALUE=True
_HOME_Y
SET_GCODE_VARIABLE MACRO=_KNOMI_STATUS VARIABLE=homing VALUE=False
{% endif %}

{% if home_all or 'Z' in params %}
SET_GCODE_VARIABLE MACRO=_KNOMI_STATUS VARIABLE=homing VALUE=True
G90
G0 X150 Y150
G28 Z
G1 Z10
SET_GCODE_VARIABLE MACRO=_KNOMI_STATUS VARIABLE=homing VALUE=False

Worked perfectly and i dont have to mess around with modified G28s.

from knomi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.