H4 - Show limit values with "settings" button and set Z and X backlash with numpad #242
ilmarietto123
started this conversation in
Ideas
Replies: 2 comments 5 replies
-
Hi @ilmarietto123, super cool, thanks for sharing this! Can you please also attach your entire |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, I started from H4V12. NOTE: tested only on bench! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm not a programmer, the code works on the bench but is definitively not so elegant.
So take that as a starting point.
If someone is interested and worth it, it could be nice to clean up and optimize this modifications or part of them (@kachurovskiy, @kotovasia5120).
There are 2 main modifications:
ATTENTION!!! I tested this modification only with my setup:
Note: it is possible to do only the limit page modification, but if you want the backlash modification, better to have both in order to have the possibility to check what value of backlash is stored.
1 - Limit page description
I thought it could be nice to have a check what stops are set before starting a job.
So, as long as the setting button is pressed it shows what is visible in the following image.
When the button is released, the display comes back to the previous screen.
If the limit is set there is a number, if the limit is not set, it shows only a "-".
For example, in the image, Z stop right is set to 0, X upper stop is not set.
"C" is the name of my A1 axis.
"b" stands for backlash.
2 - Backlash modification description
To change the backlash, just type the value with numpad and hold the relative button ("A" for X or "B" for Z) for at least 3 seconds.
When the button is released, it beeps and saves the new value. The memorized value can be checked with the setting button.
The long press to store the backlash is used:
1 - Limit page modifications
After line 2271 add this:
After line 2343 add this:
Replace lines 2461 and 2462 with this:
Replace line 2511 with this:
2 - Backlash modifications
Line 22 and line 34 can be removed or commented because no more used, but is not mandatory.
After line 194 add this code:
After line 347 add this 2 lines:
After line 354 add this line:
After line 409 add this 2 lines:
After line add this function:
Modify lines 1662 and 1663 replacing BACKLASH_DU_Z and BACKLASH_DU_X with 0 like this (I commented both out and added 0 to both function:
After line1676 add this:
After line1683 add this:
After line 1782 add this:
After line 1798 add this:
After line 2537 add this:
Comment lines from 2568 to 2572
Comment line 2576
That's all. Hope it can be usefull.
=)
Beta Was this translation helpful? Give feedback.
All reactions