-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Acceleration is ignored with cloned axis #340
Comments
Hi @gpstone, You are right, I'm convinced it's a bug, probably located in the code of planner.c or stepper.c... But difficult to find in this particular complex code portion. Thanks for your patience. @++; |
Hi fra589, It started intermittently and it became more frequent. I was not convinced that it was because of NEMA 17 motors. I am using two on X axis and 2 on Y Axis. So I am sure they got enough torque and power to move gantry easily. The gantry movement is butter smooth if i rotate motors' couplings with my hand. I spent almost 2 days to figure out what was going wrong with different parameters. From Low to High with the same results. I even detached the lead screws and ran motors without any load and they were stalling. I got very confused. Checked everything multiple times but couldn't figure out the problem. I am new to CNC world so I was convincing myself that I was doing something wrong and looking for help online I came across this thread. I hope this will be fixed soon. @gpstone you found any workaround? How are you running your machine now? |
Hi @simrim1 |
Hi @gpstone I am hopeful this bug in Mega-5X will be removed soon and I will be back to Mega. |
Hi all, This reminds me that I'm way behind on the grbl-Mega-5X work... The workaround consisting of configuring without using cloning and connecting the stepper motor drivers to be cloned to the same output works on grbl-Mega-5X, there is no need to go back to an old Arduino Uno board. @++; |
I'm convinced I have this problem too. Hard to explain, but I have a video. Cloned X won't move and X does some strange movements when decelerating. Does anyone knows when was this problem introduced? I was using a previous version that didn't have this problem. It only came after I upgraded the firmware on the controller. |
Hi @pgordinho, Oh, that’s an interesting comment! @++; |
Hi @fra589 , I can. It worked well with this version I found while building my MPCNC. So I installed again this version, did a $RST=, configured everything again and it worked without a problem. I have a feeling that my problem was not something in the code itself, but in the cpu_map.h settings. Maybe a misconfigured pin or someting like that. but the symptoms where just like the ones from the OP. Mostly everything works fine, with the exception of some codes that move only the X axis and not the X cloned one. I'm sorry I can't help much help and thank for the excellent work with this build. |
Discussed in #308
Originally posted by gpstone November 18, 2022
Hello. I am stuck and need some help on a strange issue where GRBL is ignoring axis acceleration value only on certain sequential G0/G1 commands. When this happens at full speed/acceleration, the stepper motors physically skip steps (usually just on one axis) and in severe cases the machine jams if one of the cloned axis skips and the other tries to continue. The problem started after upgrading my machine to GRBL Mega from GRBL 1.1f (Uno). I have a gantry CNC with dual X axis motors and limit switches for gantry squaring.
Originally I thought the problem was due to acceleration or axis speed being set too high. However, I was able to rule this out by slowing down the acceleration to an extremely slow speed (i.e. 5mm/s^2) and with things slowed down I could clearly see and hear the missed deceleration/acceleration curves on the G0 commands. The steppers made a 'hard' stop/start 'clunk' instead of a gradual decel/accel.
I have ruled out hardware issues by disabling axis cloning in config.h and physically wiring both X axis controllers to the same step/dir pins. When I do this, the problem goes away (Although I lose self-squaring). Also, what points me to a config or software issue is even when I physically have the axis wired to the same X outputs but then re-enable cloning of the X axis in config.h (nothing is physically connected to those pins), the issue with missed acceleration comes back.
Everything else seems to be setup and working fine. Homing works for all 4 axis. Everything is moving in the right direction. I can run Gcode programs (Except for occasional skipped steps due to this issue). What's very frustrating is the issue only happens on certain types of G commands. It is very repeatable with the same command, but some other combinations will work just fine.
Example gcode where acceleration is ignored
G21G0X25Y25 //Misses decel/accel between this line and next
G21G0X755Y25
G21G0X-153.968Y93.316
G21G0X-124.362Y40.107 //Misses decel/accel between this line and next
G21G0X-41.833Y-17.287
Troubleshooting I have tried:
Any ideas on what I can try next would be greatly appreciated. Thank you in advance!
Config file:
Config.txt
The text was updated successfully, but these errors were encountered: