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

Comments

Projects
None yet
4 participants
@linjinc

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

This comment has been minimized.

Show comment
Hide comment
@repetier

repetier May 21, 2016

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.

Owner

repetier commented May 21, 2016

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

This comment has been minimized.

Show comment
Hide comment
@linjinc

linjinc May 21, 2016

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

I have a machine.
dual z endstop
image

linjinc commented May 21, 2016

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

I have a machine.
dual z endstop
image

@repetier

This comment has been minimized.

Show comment
Hide comment
@repetier

repetier May 21, 2016

Owner

Ok, but what is your intention of the post?

Owner

repetier commented May 21, 2016

Ok, but what is your intention of the post?

@linjinc

This comment has been minimized.

Show comment
Hide comment
@linjinc

linjinc May 21, 2016

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

linjinc commented May 21, 2016

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

@repetier

This comment has been minimized.

Show comment
Hide comment
@repetier

repetier May 22, 2016

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.

Owner

repetier commented May 22, 2016

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

This comment has been minimized.

Show comment
Hide comment
@linjinc

linjinc May 22, 2016

thank you
ok,

linjinc commented May 22, 2016

thank you
ok,

@repetier

This comment has been minimized.

Show comment
Hide comment
@repetier

repetier May 22, 2016

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.

Owner

repetier commented May 22, 2016

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

This comment has been minimized.

Show comment
Hide comment
@linjinc

linjinc May 22, 2016

thank
I am here is the early morning, tomorrow test

linjinc commented May 22, 2016

thank
I am here is the early morning, tomorrow test

@linjinc

This comment has been minimized.

Show comment
Hide comment
@linjinc

linjinc May 23, 2016

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

linjinc commented May 23, 2016

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

@linjinc

This comment has been minimized.

Show comment
Hide comment
@linjinc

linjinc May 23, 2016

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

linjinc commented May 23, 2016

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

@linjinc

This comment has been minimized.

Show comment
Hide comment
@linjinc

linjinc commented May 23, 2016

image
image
image

@repetier

This comment has been minimized.

Show comment
Hide comment
@repetier

repetier May 23, 2016

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.

Owner

repetier commented May 23, 2016

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

This comment has been minimized.

Show comment
Hide comment
@linjinc

linjinc May 23, 2016

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

linjinc commented May 23, 2016

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

@linjinc

This comment has been minimized.

Show comment
Hide comment
@linjinc

linjinc May 24, 2016

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

linjinc commented May 24, 2016

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

@shaiss

This comment has been minimized.

Show comment
Hide comment
@shaiss

shaiss 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?

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

This comment has been minimized.

Show comment
Hide comment
@siggi60

siggi60 commented Jul 12, 2017

deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment