Coder Social home page Coder Social logo

Comments (6)

DerAndere1 avatar DerAndere1 commented on July 17, 2024

This is not a bug but expected behaviour. Marlin is in absolute mode by default. Send G91 to switch to relative mode and G90 to switch back to absolute

from marlin.

hobiseven avatar hobiseven commented on July 17, 2024

@DerAndere1 hmmm, in that case, shouldn't we get :
Send: M114
Recv: X:0.00 Y:0.00 Z:0.00 I:0.00 J:-59.32 E:0.00 Count X:0 Y:0 Z:0 I:-12 J:-2379
Recv: ok
[...]
Send: G1 J 59.32
Recv: ok
[...]
Send: M114
Recv: X:0.00 Y:0.00 Z:0.00 I:0.00 J:0.00 E:0.00 Count X:0 Y:0 Z:0 I:-12 J:0
Recv: ok

BUT, we get :
Recv: X:0.00 Y:0.00 Z:0.00 I:0.00 J:59.32 E:0.00 Count X:0 Y:0 Z:0 I:-12 J:2367...

instead of J:0, we get J:59.32, ie twice what we should have as a displacement in absolute mode.

I did try G91/G90, and the behavior is exactly the same.

from marlin.

DerAndere1 avatar DerAndere1 commented on July 17, 2024

If M114 initially reports X:0.00 Y:0.00 Z:0.00 I:0.00 J:-59.32 E:0.00 and you send G91 followed by G1 J59.32 followed by M114 you should indeed get Recv: X:0.00 Y:0.00 Z:0.00 I:0.00 J:0.00 E:0.00

from marlin.

hobiseven avatar hobiseven commented on July 17, 2024

I will debug this as I have a stlink with hardware debug capabilities. Let s see if I can find the root cause. Something like this can be the killing bug to run gcode properly. I have one 30 lines gcode using xy and the same code using ij and the results are totally different ...

from marlin.

hobiseven avatar hobiseven commented on July 17, 2024

@DerAndere1
Well, G91 is fixed now. Actually one small piece of code was needed for IJK, . IJK actually were never going in relative mode. This is fixing the issue, and I changed a few things for IJK in G1 too.
Now, a Gcode mooving XY and IJ the same way gives almost the same result. There is somewhere a rounding error in I, J step calculations.

If we start my simple gcode with that position :
Send: M114
Recv: X:0.00 Y:0.00 Z:0.00 I:0.00 J:0.00 E:0.00 Count X:0 Y:0 Z:0 I:0 J:0
Recv: ok

ending the Gcode, returning to 0,0,0,0 gives the following :
Send: M114
Recv: X:0.00 Y:0.00 Z:0.00 I:0.00 J:0.00 E:0.00 Count X:0 Y:0 Z:0 I:-35 J:-35
Recv: ok

We have made 35 steps too much on I and J.

LCD DOGM working fine also. So I have now to fix
1 - minor steppers error secondary axes
2 - EEprom
3- Feedrate for foam cutter, but I already made the changes, just need to test, but I want the base to be running fine before changing feedrates.
I attach the test Gcode I use.

IMG_1634
Jedi1XYIJ.zip

from marlin.

DerAndere1 avatar DerAndere1 commented on July 17, 2024

Looks great! Regarding the -35 steps: Start from the homed state (all 0) and see if there is any pattern to the shown step counts. Does this happen for XYZ if you move only XYZ back and forth? is it a wrong fix offset? or is the error bigger after large IJK moves?

from marlin.

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.