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

    Software endstops?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    7
    23
    4.3k
    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.
    • Cinproundefined
      Cinpro
      last edited by

      How do you make a software endstop so that once the the axis is homed, you can only move away from it?

      What is happening is my CoreXY will home, but after its homed if you click the wrong movement key it will try to move passed the home location and misalign the 2 Z motors.

      1 Reply Last reply Reply Quote 0
      • darookeeundefined
        darookee
        last edited by

        I cannot move below X-11 using this in config.g:

        M208 X-11 Y-0.75 Z0 S1 ; Set axis minima
        M208 X200 Y200 Z240 S0 ; Set axis maxima
        
        
        1 Reply Last reply Reply Quote 0
        • fulgundefined
          fulg
          last edited by

          What darokee said. If you set up the limits of your printer correctly with M208, the printer will not allow movement beyond these limits. Note that they are only enforced after the printer is homed. Before homing, movement in all directions is allowed without limits.

          Similarly, if you turn off the motors after homing (M84) , the limits will no longer be enforced until the next homing.

          VORON V2 CoreXY + Duet3 Mini5+ Ethernet v1.0 with Mini2+ expansion, VORON V0 CoreXY + Duet2 Maestro

          1 Reply Last reply Reply Quote 0
          • Cinproundefined
            Cinpro
            last edited by

            M667 S1 ; Select CoreXY mode
            M208 X5 Y5 Z0 S1 ; Set axis minima
            M208 X325 Y325 Z-395 S0 ; Set axis maxima

            look reasonable to you guys? and thanks

            1 Reply Last reply Reply Quote 0
            • Cinproundefined
              Cinpro
              last edited by

              if it goes into idle mode after 60 sec, does it also forget the soft end stop that way?

              1 Reply Last reply Reply Quote 0
              • botundefined
                bot
                last edited by

                No. If so, you may have the idle current set too low and it could be losing its position.

                *not actually a robot

                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators
                  last edited by

                  @Cinpro:

                  M667 S1 ; Select CoreXY mode
                  M208 X5 Y5 Z0 S1 ; Set axis minima
                  M208 X325 Y325 Z-395 S0 ; Set axis maxima

                  look reasonable to you guys? and thanks

                  You need Z395 in the second line, not Z-395. The Z coordinate is the height between the nozzle and the bed.

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  1 Reply Last reply Reply Quote 0
                  • fulgundefined
                    fulg
                    last edited by

                    Why do you set the minimum XY at 5? If your home switch is beyond the printable area of the bed, you should make the minima negative, so the edge of the bed is at 0,0.

                    RRF will reduce power to the motors after a while so the position is not lost, instead of turning them off like Marlin does. Check the I parameter of M906. If you find that the motors cannot hold when they are "idle", you can increase the idle current as required.

                    VORON V2 CoreXY + Duet3 Mini5+ Ethernet v1.0 with Mini2+ expansion, VORON V0 CoreXY + Duet2 Maestro

                    1 Reply Last reply Reply Quote 0
                    • Cinproundefined
                      Cinpro
                      last edited by

                      @dc42:

                      @Cinpro:

                      M667 S1 ; Select CoreXY mode
                      M208 X5 Y5 Z0 S1 ; Set axis minima
                      M208 X325 Y325 Z-395 S0 ; Set axis maxima

                      look reasonable to you guys? and thanks

                      You need Z395 in the second line, not Z-395. The Z coordinate is the height between the nozzle and the bed.

                      okay I flipped that and the direction in M569

                      I have the current set to 60% because the bed would drop a little while waiting for the bed to head up.

                      1 Reply Last reply Reply Quote 0
                      • Cinproundefined
                        Cinpro
                        last edited by

                        @fulg:

                        Why do you set the minimum XY at 5? If your home switch is beyond the printable area of the bed, you should make the minima negative, so the edge of the bed is at 0,0.

                        RRF will reduce power to the motors after a while so the position is not lost, instead of turning them off like Marlin does. Check the I parameter of M906. If you find that the motors cannot hold when they are "idle", you can increase the idle current as required.

                        because I'm forever backward, lol I'll fix that now, thanks again 😄

                        1 Reply Last reply Reply Quote 0
                        • Cinproundefined
                          Cinpro
                          last edited by

                          since I'm batting a 1000 today, I set my height with a 0.1 automotive feeler gauge. do I want to put the offset in M208 as a negative? -0.1 so the firmware knows where I am? or leave it as 0, because I know that is the height that my PETG likes (set first layer to 100% in teh slicer)

                          1 Reply Last reply Reply Quote 0
                          • Cinproundefined
                            Cinpro
                            last edited by

                            GRRRR, it will still let me move toward the endstop after homing, does it have to be home all?

                            M667 S1 ; Select CoreXY mode
                            M208 X-10 Y-10 Z0 S1 ; Set axis minima
                            M208 X325 Y325 Z395 S0 ; Set axis maxima

                            height is 395 for the head position in teh machine read out, top right

                            1 Reply Last reply Reply Quote 0
                            • Cinproundefined
                              Cinpro
                              last edited by

                              G28 for all it won't let you, however if you run G28 Z0 it will let you, go figure 😞

                              1 Reply Last reply Reply Quote 0
                              • deckingmanundefined
                                deckingman
                                last edited by

                                Where have you fitted the endstop - Z min or Z max? i.e when the bed is close to the nozzle or furthest away? Also, it sounds like you need to post your homeZ and homeall files.

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

                                1 Reply Last reply Reply Quote 0
                                • fulgundefined
                                  fulg
                                  last edited by

                                  M208 defines the XYZ positions that are set when the respective min or max endstops are hit. So with your setup, if you home to X Min, after homing X will be -10. You will always be able to move back to the homing position, even if it is negative. You just won't be able to move further.

                                  When using a Z endstop, Z offset is usually specified with G92 after homing is completed (which sets the axis position without moving). If you use a probe, then the Z offset should be defined as the Z parameter of G31. In all cases the minima of Z is 0.

                                  In my mind Z=0 is when the hot nozzle is physically touching the bed, i.e. you should never travel with Z=0. Not everyone agrees though.

                                  VORON V2 CoreXY + Duet3 Mini5+ Ethernet v1.0 with Mini2+ expansion, VORON V0 CoreXY + Duet2 Maestro

                                  1 Reply Last reply Reply Quote 0
                                  • Cinproundefined
                                    Cinpro
                                    last edited by

                                    Endstop is at Z-MAX since its a CoreXY

                                    ; homeall.g
                                    ; called to home the Z axis
                                    ;
                                    ; generated by RepRapFirmware Configuration Tool on Sun Oct 29 2017 21:37:06 GMT-0400 (Eastern Standard Time)
                                    G91 ; relative mode
                                    G1 Z4 F200 ; raise head 4mm to ensure it is above the switch trigger height
                                    G90 ; back to absolute mode
                                    G1 X0 Y0 F2000 S1 ; put the head wherever you want it to be when you home Z (omit this line if it doesn't matter)
                                    G91 ; relative mode
                                    G1 Z-395 S1 F100 ; move Z down until the switch triggers
                                    G90 ; back to absolute mode
                                    G92 Z0.1 ; tell the firmware that we are at Z=0.1mm

                                    Fulg: I zeroed out the M208. No probe yet I want to try the Precision Piezo https://www.precisionpiezo.co.uk/ but they have been out of stock for about 2 weeks now 😞

                                    1 Reply Last reply Reply Quote 0
                                    • deckingmanundefined
                                      deckingman
                                      last edited by

                                      You need to move towards the ends stop for it to trigger. As you have chosen to fit the end stop to Z max (furthest position away from the nozzle) then you need to move Z in a positive direction, not negative. TBH, if you can manage it, you would be wise to re-locate the Z end stop to the more conventional position which is closest to the nozzle (Z min). The reason being that most things you print will be a lot less than the maximum height of your Z travel in height and as things are at the moment, you'll have to move the bed all the way down, then all the way back up again every time you want home.

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

                                      1 Reply Last reply Reply Quote 0
                                      • Cinproundefined
                                        Cinpro
                                        last edited by

                                        Z-MAX is closest to the nozzle

                                        https://youtu.be/ak-JUL5CwT0?t=40s

                                        1 Reply Last reply Reply Quote 0
                                        • fulgundefined
                                          fulg
                                          last edited by

                                          Z Max should be furthest away from the nozzle. If you are homing Z at the nozzle then you are homing to Z min. No wonder you are having a hard time. 🙂

                                          Endstop is at Z-MAX since its a CoreXY

                                          Why do you say this? There is no relation between the endstop locations and the printer kinematics. You can home a CoreXY on either end of each axis if you want to (X max, Y max, Z min, or whatever combination is most convenient for you).

                                          The only restriction with the axes is that the system you define should fit a right-hand coordinate system. As the documentation states, "looking down on the printer the +Y direction should be 90 degrees anticlockwise from the +X direction. If instead it is 90 degrees clockwise, you have a left-hand axis system, which will give you mirror-image prints."

                                          VORON V2 CoreXY + Duet3 Mini5+ Ethernet v1.0 with Mini2+ expansion, VORON V0 CoreXY + Duet2 Maestro

                                          1 Reply Last reply Reply Quote 0
                                          • deckingmanundefined
                                            deckingman
                                            last edited by

                                            @Cinpro:

                                            …..........................
                                            https://youtu.be/ak-JUL5CwT0?t=40s

                                            Is that your Corexy in the video?

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

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