• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Squaring a dual Y Axis CNC

Scheduled Pinned Locked Moved Solved
CNC
4
8
494
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    Storm
    last edited by 30 Jun 2022, 20:32

    Hi,
    I have a CNC that isn't cutting square which I think started when I switched to dual Y axis end stops.
    I presume they are not quite level despite both being pushed to the front of the machine as far forward as they can be.
    Is there a way to account for the offset in GCode or will I physically have to keep moving one of the endstops before I get it right?
    I see there is an M666 command to adjust an endstops offset but this seems to be for Delta machines.

    undefined 1 Reply Last reply 1 Jul 2022, 07:58 Reply Quote 0
    • undefined
      jay_s_uk
      last edited by 30 Jun 2022, 20:37

      You need to split the axis during homing, apply the offset and then rejoin them.
      There's no M666 for normal endstops currently

      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

      undefined 1 Reply Last reply 2 Jul 2022, 15:51 Reply Quote 0
      • undefined
        Nightowl
        last edited by Nightowl 7 Jan 2022, 07:44 1 Jul 2022, 07:44

        I'm not sure if what I'm doing resolves your issue, but I use dual Y axis end stops I've configured them like this:

        ; Endstops
        M574 X2 S1 P"io8.in" ; configure switch-type (e.g. microswitch) endstop for high end on X via pin io8.in
        M574 Y2 S1 P"io6.in+io5.in" ; configure switch-type (e.g. microswitch) and dual self-squaring high ends on Y1 via pin io6.in and on Y2 via pin io5.in
        M574 Z2 S1 P"io2.in" ; configure switch-type (e.g. microswitch) endstop for high end on Z via pin io2.in

        I know it works because, when the machine was powered down, I accidentally moved one of the Y axes. When I then homed it, the machine realigned the Y axes and it's square again.

        I hope this helps.

        Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
        I'm still on my learning curve, so take everything I say with caution!

        RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

        1 Reply Last reply Reply Quote 0
        • undefined
          deckingman @Storm
          last edited by 1 Jul 2022, 07:58

          @storm If you have multiple motors, and if you have multiple end stops (one per motor) and if you use RRF 3, then you can do it using M574.

          Ian
          https://somei3deas.wordpress.com/
          https://www.youtube.com/@deckingman

          undefined 1 Reply Last reply 1 Jul 2022, 08:00 Reply Quote 0
          • undefined
            jay_s_uk @deckingman
            last edited by 1 Jul 2022, 08:00

            @deckingman you can't apply an offset if the endstops aren't in exactly the same place. only way is back to old school RRF2 methods and split the axis into Y and U

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            undefined 1 Reply Last reply 1 Jul 2022, 08:06 Reply Quote 0
            • undefined
              deckingman @jay_s_uk
              last edited by 1 Jul 2022, 08:06

              @jay_s_uk said in Squaring a dual Y Axis CNC:

              @deckingman you can't apply an offset if the endstops aren't in exactly the same place. only way is back to old school RRF2 methods and split the axis into Y and U

              Ah yes - I've should have read the OP's first post properly. My bad.

              Ian
              https://somei3deas.wordpress.com/
              https://www.youtube.com/@deckingman

              1 Reply Last reply Reply Quote 0
              • undefined
                Storm @jay_s_uk
                last edited by 2 Jul 2022, 15:51

                @jay_s_uk Thanks for this. I tagged it on the the end of my Y Homing and it works great.

                1 Reply Last reply Reply Quote 1
                • undefined
                  Storm
                  last edited by 2 Jul 2022, 15:58

                  Here's the code I used if anyone comes across this post in the future

                  M584 Y1 U2 P4 ;Separate Y Axis into Y&U and show U axis on UI
                  M564 S0 H0 ;Allow movement without homing as U axis not homed
                  G1 U2 ;Move right hand side of Y axis 2mm from endstop
                  M564 S1 H1 ;Enforce axis minimums and maximums and only allow movement after homing
                  M584 Y1:2 P3 ;Rejoin Y axis and hide U from UI
                  1 Reply Last reply Reply Quote 2
                  • undefined Phaedrux marked this topic as a question 5 Jul 2022, 23:55
                  • undefined Phaedrux has marked this topic as solved 5 Jul 2022, 23:55
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA