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

    Can't get my z endstop to stop the steppers.

    Scheduled Pinned Locked Moved
    My Duet controlled machine
    3
    13
    1.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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by Phaedrux

      Can you post your homing files as well?

      Are you using a Z probe as well, or just and endstop?

      Have you seen this guide?

      https://duet3d.dozuki.com/Wiki/ConfiguringRepRapFirmwareCartesianPrinter

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • RBTDataundefined
        RBTData
        last edited by RBTData

        thanks for getting back to me so quick,
        no probe
        ive had a quick read of the link before but there must be something im missing.
        here are the settings i have:

        ; homeall.g
        ; called to home all axes
        ;
        ; generated by RepRapFirmware Configuration Tool on Thu Sep 27 2018 22:38:13 GMT+1000 (Australian Eastern Standard Time)
        G91 ; relative positioning
        G1 Z5 F6000 S2 ; lift Z relative to current position
        G1 S1 X-455 Y455 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
        G1 X5 Y-5 F6000 ; go back a few mm
        G1 S1 X-455 Y455 F360 ; move slowly to X and Y axis endstops once more (second pass)
        G1 S1 Z-455 F1800 ; move Z down stopping at the endstop
        G90 ; absolute positioning
        G92 Z0 ; set Z to axis minimum (you may want to adjust this)

        ; Uncomment the following lines to lift Z after probing
        G91 ; relative positioning
        G1 S2 Z5 F100 ; lift Z relative to current position
        G90 ; absolute positioning

        ; homex.g
        ; called to home the X axis
        ;
        ; generated by RepRapFirmware Configuration Tool on Thu Sep 27 2018 22:38:13 GMT+1000 (Australian Eastern Standard Time)
        G91 ; relative positioning
        G1 Z5 F6000 S2 ; lift Z relative to current position
        G1 S1 X-455 F1800 ; move quickly to X axis endstop and stop there (first pass)
        G1 X5 F6000 ; go back a few mm
        G1 S1 X-455 F360 ; move slowly to X axis endstop once more (second pass)
        G1 Z-5 F6000 S2 ; lower Z again
        G90 ; absolute positioning

        ; homey.g
        ; called to home the Y axis
        ;
        ; generated by RepRapFirmware Configuration Tool on Thu Sep 27 2018 22:38:13 GMT+1000 (Australian Eastern Standard Time)
        G91 ; relative positioning
        G1 Z5 F6000 S2 ; lift Z relative to current position
        G1 S1 Y455 F1800 ; move quickly to Y axis endstop and stop there (first pass)
        G1 Y-5 F6000 ; go back a few mm
        G1 S1 Y455 F360 ; move slowly to Y axis endstop once more (second pass)
        G1 Z-5 F6000 S2 ; lower Z again
        G90 ; absolute positioning

        ; homez.g
        ; called to home the Z axis
        ;
        ; generated by RepRapFirmware Configuration Tool on Thu Sep 27 2018 22:38:13 GMT+1000 (Australian Eastern Standard Time)
        G91 ; relative positioning
        G1 Z5 F6000 S2 ; lift Z relative to current position
        G1 S1 Z-455 F1800 ; move Z down until the endstop is triggered
        G92 Z0 ; set Z position to axis minimum (you may want to adjust this)

        ; Uncomment the following lines to lift Z after probing
        G91 ; relative positioning
        G1 S2 Z5 F100 ; lift Z relative to current position
        G90 ; absolute positioning

        1 Reply Last reply Reply Quote 0
        • RBTDataundefined
          RBTData
          last edited by

          currently i only have the duet connected, ill be connecting the duex5 once i get this working.

          1 Reply Last reply Reply Quote 0
          • RBTDataundefined
            RBTData
            last edited by

            i finally fixed it by making these changes.

            ; homez.g
            ; called to home the Z axis
            ;
            ; generated by RepRapFirmware Configuration Tool on Thu Sep 27 2018 22:38:13 GMT+1000 (Australian Eastern Standard Time)
            ;G91 ; relative positioning
            ;G1 Z5 F6000 S2 ; lift Z relative to current position
            ;G1 S1 Z-455 F1800 ; move Z down until the endstop is triggered
            ;G92 Z0 ; set Z position to axis minimum (you may want to adjust this)

            ; Uncomment the following lines to lift Z after probing
            ;G91 ; relative positioning
            ;G1 S2 Z5 F100 ; lift Z relative to current position
            ;G90 ; absolute positioning

            G91 ; relative mode
            G1 S1 Z250 F300 ; move Z towards the switch until it triggers
            G1 Z-5 F100 S2 ; move Z back 5mm
            G1 S1 Z10 F100 ; move Z slowly towards the switch until it triggers
            G90 ; back to absolute mode

            1 Reply Last reply Reply Quote 0
            • RBTDataundefined
              RBTData
              last edited by

              damn, no idea what happened but it is having the same problem again

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

                In those changes you posted you have the Z motor going in the opposite direction. If you manually move the axis which way does it go?

                Can you try reducing your Z axis acceleration in config.g?

                M201 Z60 instead of M201 Z3000

                Also verify that your Z axis steps per mm is really 4000.

                Z_steps_per_mm = (motor_steps_per_rev * driver_microstep) / thread_pitch

                Can you also verify the max rated current for the z motor? Try to set the current at 70-85% of it's max.

                You may also want to reduce your maximum allowed speed. Keep in mind that reprapfirmware specifies speeds in mm/min, which is different from Marlin which uses mm/sec. 1.2 million mm/min is a little crazy, and if the feed rate is ever set too high for a move you may have some issues. 300mm/s is 18000mm/min and is far more reasonable. Your Z axis probably isn't going to move much faster than 5mm/s anyway.

                There have been some cases where the z axis being configured incorrectly can cause the motor to go in the opposite direction it thinks it is.

                Z-Bot CoreXY Build | Thingiverse Profile

                RBTDataundefined 1 Reply Last reply Reply Quote 1
                • RBTDataundefined
                  RBTData
                  last edited by

                  Thanks Phaedrux, looks like those changes worked.
                  now i just have to connect the duex5 and hopefully start printing again.

                  thanks again for all your help.

                  1 Reply Last reply Reply Quote 0
                  • RBTDataundefined
                    RBTData @Phaedrux
                    last edited by

                    @phaedrux the max rated current on the 2 extra extruders are 2amp, the original creality steppers are cr-10 42-34 and i couldn't find current ratings for it. when i move the axis it was easier to move it down,

                    1 Reply Last reply Reply Quote 0
                    • RBTDataundefined
                      RBTData
                      last edited by

                      why is it that when i turn the printer off then on again, the settings have been saved but the endstop doesnt work and the z axis moves up when homing z, my endstop switch is at the bottom.

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

                        @rbtdata said in Can't get my z endstop to stop the steppers.:

                        why is it that when i turn the printer off then on again, the settings have been saved but the endstop doesnt work and the z axis moves up when homing z, my endstop switch is at the bottom.

                        Have you by any chance got a config-overide.g file in your sys directory? If so does that have anything in it that looks like it might change the end stop behaviour? What happens when you first turn on the machine is that it will load config.g, then config-overide.g. So anything in config-overide.g will do what it says - i.e over ride the config.g settings.

                        If that is the case, then you need to save the changes in config-overide.g (or delete the file).

                        This is a bit of a long shot but would explain why settings change when doing a power cycle.

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

                        RBTDataundefined 1 Reply Last reply Reply Quote 0
                        • RBTDataundefined
                          RBTData @deckingman
                          last edited by

                          @deckingman thanks for your reply, unfortunately the file doesn't exist.

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

                            @rbtdata I'm not familiar with the CR10 but I've had a look at your config.g and your Z homing files and there seem to be some inconsistencies. Can you let us know where the end stops are physically connected. The most usual arrangement is to have them at the low end of all axes but it's not obligatory. Oh, and do you move the gantry up and down in Z, or the bed?

                            So the most common arrangement would be the X switch located on the left of the X axis, the Y switch located at the front, and the Z switch located at the top of the bed travel or at the bottom of the gantry if the bed is static in Z.

                            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