Skip to content
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

hi,DUAL Z ENDSTOPS #528

Closed
linjinc opened this issue May 21, 2016 · 16 comments
Closed

hi,DUAL Z ENDSTOPS #528

linjinc opened this issue May 21, 2016 · 16 comments

Comments

@linjinc
Copy link

linjinc commented May 21, 2016

Z_DUAL_ENDSTOPS is a feature to enable the use of 2 endstops for both Z steppers - Let's call them Z stepper and Z2 stepper.
That way the machine is capable to align the bed during home, since both Z steppers are homed.

After Z homing, this adjustment is applied to just one of the steppers in order to align the bed.
One just need to home the Z axis and measure the distance difference between both Z axis and apply the math: Z adjust = Z - Z2.
If the Z stepper axis is closer to the bed, the measure Z > Z2 (yes, it is.. think about it) and the Z adjust would be positive.
Play a little bit with small adjustments (0.5mm) and check the behaviour.

@repetier
Copy link
Owner

Nice explanation, but what is the issue? Have you implemented this feature? Would be great as I have no printer with such a setup.

@linjinc
Copy link
Author

linjinc commented May 21, 2016

https://github.com/MarlinFirmware/Marlin
marlin is ok

I have a machine.
dual z endstop
image

@repetier
Copy link
Owner

Ok, but what is your intention of the post?

@linjinc
Copy link
Author

linjinc commented May 21, 2016

I want to use repetier firmware
But repetier firmware does not have dual Z endstop

@repetier
Copy link
Owner

Ok, so you want me to implement this feature. In theory it is simple but having no printer for testing I never implemented it. If you are up to testing it until it works as expected I can write the modifications. Might be some tests required to get it going right. So say only yes if you will do it to the final end.

@linjinc
Copy link
Author

linjinc commented May 22, 2016

thank you
ok,

@repetier
Copy link
Owner

Ok, here we go. Please use the latest development version for this. In config tool add in manual tab the following

#define MINMAX_HARDWARE_ENDSTOP_Z2 1
#define Z2_MINMAX_PIN 16
#define ENDSTOP_Z2_MINMAX_INVERTING 0
#define ENDSTOP_PULLUP_Z2_MINMAX 0

of course adjusted for your endstop type and pins. That should do the trick. M119 should show 2 z endstop values now. Test both and test homing. Hold a hand on power on first test if it does not stop, but I'm quite confident that I captured the right logic.

@linjinc
Copy link
Author

linjinc commented May 22, 2016

thank
I am here is the early morning, tomorrow test

@linjinc
Copy link
Author

linjinc commented May 23, 2016

Normal working
But I'll be testing a little more.

@linjinc
Copy link
Author

linjinc commented May 23, 2016

Z1 Morot and Z2 motor is not parallel
Z1 Sometimes pause
Z2 no problem

@linjinc
Copy link
Author

linjinc commented May 23, 2016

image
image
image

@repetier
Copy link
Owner

What do you mean with z1 sometimes pauses? During a single move it stops and goes? That could be from friction if they are not parallel. The only big question is if they are not parallel, if only one motor stops and the other moves a bit longer. If you tried that and have to much difference the friction can make motors stall.

You could try with slower homing speed for testing to see difference.

@linjinc
Copy link
Author

linjinc commented May 23, 2016

Please forgive me for using Google Translation
May be set incorrectly, I will continue to test

@linjinc
Copy link
Author

linjinc commented May 24, 2016

I'm starting to use it, everything is okay.
Thank

@shaiss
Copy link

shaiss commented Sep 29, 2016

@linjinc can you share a bit more on how you set this up? What board and where is your 2nd z motor plugged into?

@siggi60
Copy link

siggi60 commented Jul 12, 2017

deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants