-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
Rotary axis option will not compile[BUG] (bug summary) #26002
Comments
This will be fixed once #24334 is merged. As that pull request changes a lot, it may never be merged. I uploaded a simpler solution for testing at https://github.com/DerAndere1/Marlin/tree/rotational_axis_fix The changes I applied there can be viewed here: bugfix-2.1.x...DerAndere1:Marlin:rotational_axis_fix Let me know if it works |
trying now, but there is comment that shows 24334 is already merged in 3 weeks ago. So your alternate fix worked and the merge with 24334 did not., I had an issue with g38_probe_target not building, that was solved in bugfix_2.1.x(with 24334 merged in) |
PR #24334 is still open/not merged: |
I read it backwards. [Merge branch 'bugfix-2.1.x' into pr/24334] that line didn't mean what i thought? |
This just means that |
|
Is this line missing a "+" before diff.i ? I noticed it in both your bugfix and main bugfix, but it is over my head to know if it is a typo or not. |
AFAIK, it should be fine as is:
is the same as
The intention is documented in this comment: If you need different behaviour, try to enable option |
My sample builds worked. But when added the rest of my config variables it created new error. I am not able to enable an lcd display. build fails with error. Compiling .pio\build\mega2560\src\src\lcd\menu\menu_spindle_laser.cpp.o |
I quickly fixed that in https://github.com/DerAndere1/Marlin/tree/rotational_axis_fix . I will not have the time to test the move menu for now. In case you want to try moving axes from lcd, be prepared for too long/fast/short/slow moves. |
seemed to be correct on first run. will do more testing later. ty |
The fun begins when moving rotational axes in inch mode. For testing that, you would have to enable |
OMG why would you do inch mode? Can anyone name one valid reason for any printer firmware to support it at all? |
I love the SI unit system too. especially since we got rid of the kilogram prototype in 2019 and all SI units are now based on 7 constants. but then there are the traditionalists using imperial units in machining |
In metal machning it makes sense, but not in anything CNC-related. Just convert to metric in slicer/CAM. |
I maybe missed something in the reply. In order to get rotary axis movements in degrees, I need to also be in inch mode? Or is rotary displayed degrees either way |
rotational axes are always in degrees, regardless of "inch mode" or "mm mode". It was just more difficult for me to make it work in inch mode, so more testing in inch mode is required before my solution can be merged into official Marlin. |
This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 10 days. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
Tried to build rotary axis config in the latest (as of 6/20/23) bugfix 2.1.*,
receive build errors.
3 standard Cartesian axis X,Y,Z plus 1 rotary axis.(I) -- (A)
error states that J,K,U,V,W are not defined.
I can build with additional axis if the extra axis is linear, but if enabled "axis_rotates" then the build still looks for all 9 possible axis to be named and defined.
In motion.cpp the additional axis section for linear axis is written with conditional define statements, but the rotary section is written so that is any exist then they all need to be defines.
Bug Timeline
No response
Expected behavior
I built with the 2.1.2.1 release and rotary worked, but for other reasons(probe_target build error) I needed to use bugfix.
Actual behavior
compile time error prevents successful build.
Steps to Reproduce
#ifdef I_DRIVER_TYPE
#define AXIS4_NAME 'U' // :['A', 'B', 'C', 'U', 'V', 'W']
#endif
#ifdef J_DRIVER_TYPE
#define AXIS5_NAME 'V' // :['A', 'B', 'C', 'U', 'V', 'W']
#endif
#ifdef K_DRIVER_TYPE
#define AXIS6_NAME 'C' // :['A', 'B', 'C', 'U', 'V', 'W']
#endif
Change it to this
#ifdef I_DRIVER_TYPE
#define AXIS4_NAME 'A' // :['A', 'B', 'C', 'U', 'V', 'W']
#define AXIS4_ROTATES // THIS BREAKS THE BUILD
#endif
#ifdef J_DRIVER_TYPE
#define AXIS5_NAME 'B' // :['A', 'B', 'C', 'U', 'V', 'W']
#define AXIS5_ROTATES // THIS BREAKS THE BUILD
#endif
#ifdef K_DRIVER_TYPE
#define AXIS6_NAME 'C' // :['A', 'B', 'C', 'U', 'V', 'W']
#endif
Version of Marlin Firmware
Marlin-bugfix-2.1.x
Printer model
No response
Electronics
No response
Add-ons
No response
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
No response
The text was updated successfully, but these errors were encountered: