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

    how do i do dual endstops for X and Y axis on my cnc

    Scheduled Pinned Locked Moved Solved
    CNC
    5
    21
    1.7k
    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.
    • Phaedruxundefined
      Phaedrux Moderator @shante
      last edited by

      @shante said in how do i do dual endstops for X and Y axis on my cnc:

      @Phaedrux said in how do i do dual endstops for X and Y axis on my cnc:
      Ok, removed H2 and increased the distance in both home.g files. Thanks.
      But nothing changed, X homing OK, Y does not.

      Why do you have P3?

      Isn't that P3 to show those 3 axes? To home them and move them?

      You can leave the P3 off entirely. It's mainly used for when you have multiple temporary axis like UVW. You're not doing anything like that since with RRF3 you don't need to split up the axis for homing anymore.

      What exactly happens with the Y axis when you do homey?
      Does it move in the correct direction towards the endstop?
      Does it stop before it hits the endstop?
      If you click the endstop by hand while it's moving does it stop the axis?

      Z-Bot CoreXY Build | Thingiverse Profile

      shanteundefined 1 Reply Last reply Reply Quote 0
      • shanteundefined
        shante @Phaedrux
        last edited by

        @Phaedrux said in how do i do dual endstops for X and Y axis on my cnc:

        You can leave the P3 off entirely. It's mainly used for when you have multiple temporary axis like UVW. You're not doing anything like that since with RRF3 you don't need to split up the axis for homing anymore.

        What exactly happens with the Y axis when you do homey?
        Does it move in the correct direction towards the endstop?
        Does it stop before it hits the endstop?
        If you click the endstop by hand while it's moving does it stop the axis?

        P3 removed.
        when i try to home Y. Steppers are moving, direction is ok. They both hit endstops, if misaligned stepper that did not hit the unstop is mooving until he does hit endstop. Then they move back together, and together in correct direction moving lowly towards endstops. However only one endstop is triggered and then steppers stops, homig ends as homed.

        Phaedruxundefined 2 Replies Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator @shante
          last edited by

          @shante Can you send M98 P"config.g" in the console and report the response?

          M574 Y1 S1 P"ystop+zstop" Do both endstop LEDs work correctly when you manually click the switch?

          Z-Bot CoreXY Build | Thingiverse Profile

          shanteundefined 1 Reply Last reply Reply Quote 0
          • shanteundefined
            shante @Phaedrux
            last edited by

            @Phaedrux they do, if tested manualy and in first homing pas. After second pas, that slow approach, only one is triggered, Ystop, and Zstop is not. Stepper do not come close to trigger it, its like 0.5mm away.

            Phaedruxundefined 1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator @shante
              last edited by

              @shante Can you send M98 P"config.g" in the console and report the response? Also the results of M122 please.

              Z-Bot CoreXY Build | Thingiverse Profile

              shanteundefined 1 Reply Last reply Reply Quote 0
              • shanteundefined
                shante @Phaedrux
                last edited by shante

                @Phaedrux
                M98 P"config.g"
                HTTP is enabled on port 80
                FTP is disabled
                TELNET is disabled
                Warning: Macro file config-override.g not found

                m122
                === Diagnostics ===
                RepRapFirmware for Duet 2 WiFi/Ethernet version 3.2.2 running on Duet WiFi 1.02 or later
                Board ID: 08DGM-9T6BU-FG3S4-6J1FL-3SN6S-9SNRH
                Used output buffers: 4 of 24 (20 max)
                === RTOS ===
                Static ram: 23460
                Dynamic ram: 72128 of which 52 recycled
                Never used RAM 16440, free system stack 119 words
                Tasks: NETWORK(ready,187) HEAT(blocked,366) MAIN(running,543) IDLE(ready,20)
                Owned mutexes: WiFi(NETWORK)
                === Platform ===
                Last reset 00:00:50 ago, cause: software
                Last software reset at 2021-02-25 21:13, reason: User, GCodes spinning, available RAM 16408, slot 2
                Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
                Error status: 0x00
                Aux0 errors 0,0,0
                MCU temperature: min 38.0, current 38.4, max 38.6
                Supply voltage: min 24.0, current 24.1, max 24.2, under voltage events: 0, over voltage events: 0, power good: yes
                Driver 0: position 0, standstill, SG min/max 0/109
                Driver 1: position 0, standstill, SG min/max not available
                Driver 2: position 0, standstill, SG min/max not available
                Driver 3: position 0, standstill, SG min/max 0/69
                Driver 4: position 0, standstill, SG min/max not available
                Driver 5: position 0
                Driver 6: position 0
                Driver 7: position 0
                Driver 8: position 0
                Driver 9: position 0
                Driver 10: position 0
                Driver 11: position 0
                Date/time: 2021-02-25 21:14:03
                Cache data hit count 60171643
                Slowest loop: 8.73ms; fastest: 0.21ms
                I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
                === Storage ===
                Free file entries: 10
                SD card 0 detected, interface speed: 20.0MBytes/sec
                SD card longest read time 3.2ms, write time 1.5ms, max retries 0
                === Move ===
                DMs created 83, maxWait 34339ms, bed compensation in use: none, comp offset 0.000
                === MainDDARing ===
                Scheduled moves 10, completed moves 10, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
                === AuxDDARing ===
                Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
                === Heat ===
                Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
                === GCodes ===
                Segments left: 0
                Movement lock held by null
                HTTP is idle in state(s) 0
                Telnet is idle in state(s) 0
                File is idle in state(s) 0
                USB is idle in state(s) 0
                Aux is idle in state(s) 0
                Trigger is idle in state(s) 0
                Queue is idle in state(s) 0
                LCD is idle in state(s) 0
                Daemon is idle in state(s) 0
                Autopause is idle in state(s) 0
                Code queue is empty.
                === Network ===
                Slowest loop: 201.46ms; fastest: 0.11ms
                Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
                HTTP sessions: 2 of 8
                - WiFi -
                Network state is active
                WiFi module is connected to access point 
                Failed messages: pending 0, notready 0, noresp 1
                WiFi firmware version 1.25
                WiFi MAC address cc:50:e3:4a:ad:68
                WiFi Vcc 3.31, reset reason Turned on by main processor
                WiFi flash size 4194304, free heap 25680
                WiFi IP address 192.168.1.81
                WiFi signal strength -73dBm, mode 802.11n, reconnections 0, sleep mode modem
                Clock register 00002002
                Socket states: 0 0 0 0 0 0 0 0
                

                M122 sent after homig X and Y

                1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator @shante
                  last edited by

                  @shante said in how do i do dual endstops for X and Y axis on my cnc:

                  when i try to home Y. Steppers are moving, direction is ok. They both hit endstops, if misaligned stepper that did not hit the unstop is mooving until he does hit endstop. Then they move back together, and together in correct direction moving lowly towards endstops. However only one endstop is triggered and then steppers stops, homig ends as homed.

                  So they are aligning properly on the first pass until both endstops are triggered, but not on the second pass?

                  Can you make a video showing what's happening?

                  Z-Bot CoreXY Build | Thingiverse Profile

                  shanteundefined 1 Reply Last reply Reply Quote 0
                  • shanteundefined
                    shante @Phaedrux
                    last edited by

                    @Phaedrux

                    So they are aligning properly on the first pass until both endstops are triggered, but not on the second pass?

                    Can you make a video showing what's happening?

                    Yes, exactly.
                    No video yet, as im rewiring endstop and stepper. Tried replaced endstop, no joy.
                    New wiring will be with yet another endstop, we will see.

                    Do i need to split steppers if adding offset to one of steppers will be needed?
                    If so can you write me example code how to do that?

                    Phaedruxundefined 1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator @shante
                      last edited by

                      @shante Some videos/photos of the setup would help to understand what's going on.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • shanteundefined
                        shante
                        last edited by

                        After rewiring(new wires for stepper and endstop) and new endstop, issue is gone...
                        Thank you @Phaedrux for your help and patience with me.

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA