Comments (6)
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.
@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.
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.
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.
@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.
from marlin.
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)
- [FR] No extruders (motors) but hotends (PID control for hotend temperature) HOT 11
- SENSORLESS_HOMING with TMC5160 HOT 1
- G29 Bed Leveling Error HOT 50
- Limit switch problem HOT 3
- Customizing for I and J to use E0 and E1. Robotic arm project. HOT 11
- utility/spi_com.h Not found on PR1 branch HOT 8
- The MKS_SGEN_L motherboard is stuck on the startup screen under the 2.0.9.1 firmware. HOT 2
- [FR] Configuration for robot with syringe pump HOT 1
- Small error in motion_motion.cpp regarding axis names HOT 2
- Issue with Homing 4th I Axis
- I axis only works in absolute positioning HOT 10
- Marlin-9axis_pull hardware test report Axes 8 and 9 HOT 141
- Teensy 9 Axis HOT 2
- problem with setup 6 axis with dual y and b HOT 4
- problem with I J K sensorless homing HOT 1
- [FR] Simplify configuration of axes HOT 2
- Foam Cutter Display HOT 67
- 5-Axis really required on Foam Cutter?[FR] (feature summary) HOT 3
- Couple issues trying to compile for foam cutter HOT 1
- [BUG] movement too slow with G2/G3 HOT 57
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marlin.