-
-
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
[FR] SENSORLESS_HOMING for I, J, K… axes #22649
Comments
I did not find the cause for this bug so far, but I found some unrelated things that still need work with LINEAR_AXES >= 4 here:
|
Try the following. Marlin/Marlin/src/pins/pins_postprocess.h Line 939 in 3a8c509
chage that to
Marlin/Marlin/src/pins/pins_postprocess.h Line 1009 in 3a8c509
change that to
Marlin/Marlin/src/pins/pins_postprocess.h Line 1079 in 3a8c509
change that to:
|
I made the changes that you have suggested but there was no change in homing behavior for the additional axis. |
M915 is wrong. Use M914 instead. But anyway I just saw that the feature is not completely implemented, e.g. code for axes I,J,K is missing from the function body of Marlin/Marlin/src/module/motion.cpp Line 1355 in 718227a
and Marlin/Marlin/src/module/motion.cpp Line 1434 in 718227a
|
Whoops, that was a typo, thanks for spotting it, I updated it with the correct command. I will take a look at Motion.cpp and see if implementing the additional axis will work, thanks for the help. |
Hi, @manicresin . Do you think you will manage to implement this feature yourself, or do you need help? |
I was going to implement it myself but I jump on another project at them moment and haven't had a chance to dig through it, thanks for the follow. |
hi, any fix for sensorless homing to work on I J K axis? |
Can you test my branch https://github.com/DerAndere1/Marlin/tree/10axis_PR1 and report, if SENSORLESS_HOMING works with axes I, J, K ? |
hi, i try the firmware 10axis_PR1 on OCTOPUS V1.1 with tmc 2209 v3 (the one with weird jumper) , thanks |
@DerAndere1 - After being unable to compile 2.0.9.2 (and bugfix-2.0.x) for a BTT SKR Pro V1.2, due to:
I just tried the branch |
@tmartin007 you need at add I endstops pins Hmm, actually it does have a Diag pin allocated... |
@ellensp thanks for the prompt response and the 5axis example! Also, G28 A0 initiates Homing on axis "I" (while G28 I0 does not). |
Testing your branch (https://github.com/DerAndere1/Marlin/tree/10axis_PR1) with the configuration files (attached),
|
could you enable
Repeat this test and try to stop the A axis by hand when it starts to do the small homing-move. Does the stallguard detect this? you can attach the log file from the terminal (serial monitor) of your host software as a zip file here |
Thanks, I did as you proposed - (zipped log attached) |
To me, your log file looks as if SENSORLESS_HOMING works now for the 4th axis. but one thing is strange in the log file:
is the output from this line of code: The From the attached configs I would expect thus I would expect an output of
Please verify that the firmware you upload to your board has |
Thank you very much for your response.
Per your directions, I was able to manually grab the shaft-coupler of the 4th axis and hold it tight, so that it stopped moving early on in the test. - Nevertheless, the stepper still completed it's small homing move - this could be felt and heard clearly ;-).
Yesterday, I had attached updated Config-Files https://github.com/MarlinFirmware/Marlin/issues/22649#issuecomment-936652249
... sorry for the confusion. However, to me it seems, as if Even though
... form the quoted code, it is not really obvious to me that: Anyway, I just repeated the test (i.e.
I'll be happy to perform more test, to help locate the problem ... - Please let me know, what I can do. |
Sorry, I was indeed looking at the wrong configs. So everything in the log file looks as expected to me.
This was probably the backoff move. So what does the the log look like if you manually place the A axis less than 5 cm away from its physical axis minimum and execute the following test G-code?
Sorry, I wanted to say that: move_length = home_dir * 1.5 * max_length = home_dir * 1.5 * I_MAX_LENGTH = home_dir * 1.5 * (I_MAX_POS - I_MIN_POS) I corrected my comment above. The main point is: you need to set the I_MAX_POS according to the length of your 4th axis to get proper homing. |
Thanks for clarifying. - This seems indeed to be part of the problem. - I am still investigating, though ... |
The other setting that determines the actual homing move distance is |
Yes, thanks, I had just discovered that my 4th axis does not seem to be configured accurately. |
It took a while, however I may report that HOMING of the I-axis with your branch: In my case, all stumbling blocks were related to the "I-"parameters set for: However:
|
9 axis has been merged, and in theory this also fixes Sensor less homing |
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.0.x
code?Yes, and the problem still exists.
Bug Description
SENSORLESS_HOMING does not work on I, J, K Axis (U, V, W).
Bug Timeline
I am not sure if this is new or this is even supported.
Expected behavior
When enabling SENSORLESS_HOMING on I, J, or K axis with a supported TMC driver (i.e. TMC2209) and homing said axis with the G28 command axis should homes as expected.
Actual behavior
I, J, or K attempts to locate home but the diag pin from the TMC driver is never reporting a stop and continues to crash in the homing stop block.
Steps to Reproduce
Step 1: Configure I, J, and/or K axis in the boards pin.h, I am using pins_custom.h.
Step 2: In Configuration.h uncomment and set
#define LINEAR_AXES 4
Step 3: Further implement the addition axis in Configuration.h and Configuation_adv.h as accrding to the wiki
Step 4: Compile and load firmware.
Step 5: If STALL_SENSITIVITY was not set in config_adv set with
M914
Step 6: Home the axis with
G28
Version of Marlin Firmware
Marlin bugfix-2.0.x (Aug 27 2021 10:43:00)
Printer model
CUSTOM
Electronics
SKR 2, TMC2209
Add-ons
No response
Bed Leveling
No response
Your Slicer
No response
Host Software
No response
Additional information & file uploads
This issue only affects the AXIS in firmware. I swapped the pins for Z and I (U) in pins_custom.h and was able to reproduce the issue.
I was going to use this as a 5 axis controller run a custom robot so my config and config_adv have most of the extruder and heatbed items removed.
I also modified the pins.h with the following
#include "pins_custom.h" // env:BIGTREE_SKR_2 env:BIGTREE_SKR_2_USB
configs.zip
The text was updated successfully, but these errors were encountered: