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

    Endtops Low and High

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    32
    4.8k
    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.
    • dc42undefined
      dc42 administrators
      last edited by

      The more important modification to make to the endstop input is to reduce the value of the resistor connected in series with the IR emitter. If it's a surface mount resistor, you may find it easier to connect another resistor in parallel with it.

      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
      • Synapsisundefined
        Synapsis
        last edited by

        Thanks got it to work now or so I think, when I try it i see in the web interface the value change to Yes from No but it still
        does not stop the motor so i must be missing something. I do see the led on the board next to the motor connector go off.
        if the beam is not completly blocked could that be the problem even if in the interface it says Yes ,
        Have to do some searching to find out.

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

          If the interface says Yes when the endstop is triggered then it should be working. However, it may be a little slow to respond if you removed the pullup resistor completely, depending on how well the beam is blocked. If that is the case, try connecting a 10K pullup resistor in place of the original 1K one.

          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
          • Synapsisundefined
            Synapsis
            last edited by

            Hi need some help please I'm need to know a few things so I can get it setup right.
            Not knowing some basics take more time.

            Postions: lookin from top of printer from front (Motors are front left and right)

            X max looking down on the printer from the front is left
            X min is right
            Y max is front
            y min is back
            Z min is up nearest nozzle
            Z max is down

            Where is zero back left?

            Drives and direction

            Drive 0 is = Z when you save moves forward to the left taking into consideration what was said above.
            Drive 1 is = Y
            Drive 2 is = Z
            Drive 3 is = E0

            I tried in Configuring RepRapFirmware for a CoreXY printer Movment section
            M667 S1
            M667 S2 Z3
            M569 P0 S0
            M569 P1 S0
            G91
            G1 S2 X10 F3000 it moves left towrads the front right (change the S parameter to S1 in the M569 P0 command?but it dose not move.)

            Once I get that clear maybe I could get things to work because my endstops are triggered but do not stop the movement.

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

              You have your X and Y axes back to front compared to most people, but that's OK if you want it that way. Where are your X and Y endstop switches located?

              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
              • Synapsisundefined
                Synapsis
                last edited by

                Righ now I have the X max end stop on the left X carrage and the Y in the front left.
                I'd rather have it like most people so when I ask questions I don't have to think bacwqards.

                So zero wouls be from top would be botoom left and moving away fro, the motor would be Y+
                Moving right X+

                if so then end stops need to be upper left for Y and right for X?

                will try it out

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

                  @Synapsis:

                  Righ now I have the X max end stop on the left X carrage and the Y in the front left.
                  I'd rather have it like most people so when I ask questions I don't have to think bacwqards.

                  So zero wouls be from top would be botoom left and moving away fro, the motor would be Y+
                  Moving right X+

                  That's the conventional arrangement. So switch the S parameter between 0 and 1 as needed in your M569 P0 and M569 P1 commands so that +X is to the right and +Y is towards the back.

                  @Synapsis:

                  if so then end stops need to be upper left for Y and right for X?

                  The endstop switches can be at the min or max end of each axis. You can have one and the min end and the other at the max end if you wish. You just need to tell the firmware which end they are in the M574 command in config.g.

                  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
                  • Synapsisundefined
                    Synapsis
                    last edited by

                    Moved the the endstops the thing is I have M574 Y1 X1 S1 ; Set active high endstops also tried M574 Y2 X2 S1 and when I check Endstop hit is no for both
                    When I move the carrage and reach the endstop I see on the board the led go out and Endstop hit chages to yes. the wires are correct checked them so endstop Y when triggred turn out the Y led on the board.

                    something simply which i can't see.

                    1 Reply Last reply Reply Quote 0
                    • Synapsisundefined
                      Synapsis
                      last edited by

                      Checked the output when not triggered ther is 0.34v while when triggred its 3.23v is that ok?
                      I would think so seeing the board detects the change.

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

                        @Synapsis:

                        Moved the the endstops the thing is I have M574 Y1 X1 S1 ; Set active high endstops also tried M574 Y2 X2 S1 and when I check Endstop hit is no for both
                        When I move the carrage and reach the endstop I see on the board the led go out and Endstop hit chages to yes. the wires are correct checked them so endstop Y when triggred turn out the Y led on the board.

                        something simply which i can't see.

                        S1 is correct in the M574 command. Please clarify what the problem is.

                        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
                        • Synapsisundefined
                          Synapsis
                          last edited by

                          Well maybe I 'm looking for an answer where there is none.
                          Doing a test moving the X to its max I trigger the endstop if I keep pressing an advance in the X axis it will keep moving, is this normal or should moviment exceeding the stop be impossible.
                          Or is it just used for homing the X axis or Y axis?

                          I have what I think is correct moviment
                          G91
                          G1 S2 X10 F3000
                          head moves diagonally in the +X and +Y directions
                          G91
                          G1 S2 Y10 F3000
                          head moves diagonally in the +X and -Y directions

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

                            Once you have homed an axis, the axis limits that you have set using M208 commands in config.g will be applied. Until you home the axis, limits are not applied. The endstops switches terminate homing moves only.

                            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
                            • deckingmanundefined
                              deckingman
                              last edited by

                              To elaborate on what David has said, you need to have an S1 parameter in the G1 move to check if an end stop has been hit. So something like G1 X-200 S1 will move the X axis 100mm towards the end stop, but stop if it sees the switch trigger. If you haven't already homed the printer, then G1 X-200 (without the S1 parameter) will move the X axis 200 towards the ends stop but it won't stop when the switch triggers. If you have homed the printer, then G1 X-200 will stop when X=0. That's why it's always a good idea to home the printer before you do anything else. Once homed (using the S1 parameter) then the zero position will be established and the maximum travel limit will be determined by whatever value you put in M208 for that axis.
                              .

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

                              1 Reply Last reply Reply Quote 0
                              • Synapsisundefined
                                Synapsis
                                last edited by

                                Thanks so much for the answers, if you look at my avatar you can see the setup I have.

                                Thanks David "The endstops switches terminate homing moves only." this answers a question that was bugging me.
                                Thanks Ian you also cleard up a couple of questions.

                                Now I tried moving G1 X-400 S1 (I have 400x400mm) now here is where things got of track instead of going towards the endstop it went in the other direction
                                using G1 X410 S1 it moved towards the endstop and stopped not going the full 410 so I would think the endstop is working.
                                home Y the same why now the head is in the upper right (back) corner looking from Top and will not move back towards the front because it thinks that it home X Y
                                it only moves towards the back and to the right just a couple os step because then it hits the end.
                                So something here is backwards.

                                Here is my config
                                M667 S1
                                M569 P0 S1
                                M569 P1 S1
                                M569 P2 S1
                                M574 X1 Y1 Z2 S1 Here for sure something is wrong
                                M92 X200 Y200 Z200
                                M208 X400 Y400 Z400
                                M208 X0 Y-32 Z-1 S1

                                will play around to see if i get it to move correctly, hey I'm getting there

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

                                  Have you checked that the axes are moving in the correct direction? Send G91 to use relative coordinates. Then G1 X10 should move the head 10mm in the +X direction , and G1 X-10 should move the head 10mm in the -X direction. Check the Y axis is the same way. If any axes are moving the wrong way, adjust the M569 P0 and P1 commands to get them right.

                                  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
                                  • Synapsisundefined
                                    Synapsis
                                    last edited by

                                    Tried G1 then G1 X10 the head moves from left to right G1 X-10 moves the head from right to left
                                    Same for G1 Y10 moves from front to back G1 X-10 back to front. Starting from the left bottom.
                                    back
                                    Y
                                    |

                                    Top View

                                    |
                                    |
                                    0–-------------------- X
                                    front

                                    left motor was supposed to be Y while right X but had to switch them to get the correct movement when following the giude in
                                    Configuring RepRapFirmware for a CoreXY printer

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

                                      Good, your axes are moving in the correct directions. Now set up your M574 command to specify whether each endstop switch is at the low (minimum) end or the high (maximum) end, set up the M208 commands to specify the upper and lower limits of each axis, and set up the homing files as described at https://duet3d.com/wiki/Configuring_RepRapFirmware_for_a_Cartesian_printer#Homing_files and https://duet3d.com/wiki/Configuring_RepRapFirmware_for_a_CoreXY_printer#Homing_files. You can use the online configuration tool to generate these commands if you wish.

                                      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
                                      • Synapsisundefined
                                        Synapsis
                                        last edited by

                                        Thanks David will do as soon as I get home. Wife made me take here to the beach wont be back until 02/01/18 ;(

                                        Well I can finally read up some documentation.

                                        1 Reply Last reply Reply Quote 0
                                        • Synapsisundefined
                                          Synapsis
                                          last edited by

                                          Finally back home tried setting up starts to act almost correctly but I need to know in Web Control Head Moviment
                                          does a +1 = 1 mm? when I do home X and Y when I go back to zero I see the position is 120 x 120 and not 0 x 0.
                                          I do have a 400mm + bed. Does i8t have something to do with the steppers settings?

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

                                            Yes +1 should move the head 1mm in the +x direction, +10 should move it 10mm in the +X direction, and so on. If it moves the wrong amount, check the steps/mm settings, which are defined in the M92 command in config.g.

                                            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
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA