Page 1 of 1

Setting homing direction

Posted: Wed Sep 10, 2025 12:24 pm
by kmundt
I am replacing the controller on a Lagunmatic 250 with the All-in-1 controller.
My X & Y axis home correctly.
The X-axis is homing to -Z. It needs to home to +Z.
The Z-axis motor is set to negative direction so that it jogs in the correct directions.
AX3_minuslimit is on input 5 and plus limit is on input 6.
On the machine input 5 is connected to the lower Z-axis limit switch.

When I try to home the Z-axis it travels toward negative direction.
If I use the MDI interface and type M92/Z the quill travels in the Z-plus direction and hit the top limit but does not interpret that switch as home.
It seems that the switches are wired backwards.
I have tried all types of combinations but can't seem to get the correct combination of wiring and interface settings.
What should my settings and wiring be?

Re: Setting homing direction

Posted: Wed Sep 10, 2025 12:46 pm
by Centroid_Tech2
When using direction reversal with the ALLIN1DC you need to reverse BOTH the input numbers in the Motor Parameter screen and the wires on the ALLIN1DC.

Re: Setting homing direction

Posted: Wed Sep 10, 2025 1:10 pm
by kmundt
I think that is the configuration that I now have.
The lower z-limit switch is z plus limit.
When I home the axis the quill travels in the -z direction and homes correctly.
I need it to home with the quill fully retracted (+z direction).
I can force homing the other way with M92/Z from MDI.
This travels in the correct direction, but I get Axis 3 position error when it get to the top limit switch.

How do I get it to read the top limit switch as a home.
M91/Z homes correctly towards -Z.
M92/Z homes in the correct +Z direction but errors when it gets to the switch.

I also know that I will have another question once I get M92/Z working correctly.
How do I change the direction when using non-MDI homing.
I tried changing the CNC.hom file to M92, but that seems to have no effect.

Re: Setting homing direction

Posted: Wed Sep 10, 2025 1:28 pm
by kmundt
Additiona detail from my last question on CNC.hom.

The automated cycle for homing all three axis seems to go in the correct directions. (Limit switch is still a problem for the z-axis)
When homing Z from the config/motor menu the axis travels in the -z direction.
So - Seems that .hom is probably OK.
Is there a way to invert the direction if using the config/motor/find home button?

Re: Setting homing direction

Posted: Wed Sep 10, 2025 2:28 pm
by cncsnw
As Centroid_Tech2 pointed out, because you needed to set Direction Reversal:
- Your Z- (quill-down) limit switch should be wired to INP6
- Your Z+ (quill-up) limit switch should be wired to INP5
- On the Machine Configuration -> Motor Parameters table, your limit and home input numbers for the Z axis should read "6 5 6 5"

Your cncm.hom file correctly says "M92/Z", so it should try to home Z+ (quill up). Correct your limit switch wiring and configuration, then try again.

On the Machine Configuration -> Find Home interface, you can highlight the +/- direction field and press the space bar to toggle between - and +.