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

Z moving twice distance - Was working - now it's double

Scheduled Pinned Locked Moved
Tuning and tweaking
4
12
492
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
    deckingman @RedMachine
    last edited by 13 Jan 2020, 05:05

    @RedMachine About the only thing I can think of which would explain that behaviour is if the steps per mm or microstepping that is set in config.g, is being overridden elsewhere. Has an errant M350 or M92 crept into a config-override.g file or one of your homing files?

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

    1 Reply Last reply Reply Quote 0
    • undefined
      RedMachine
      last edited by RedMachine 13 Jan 2020, 05:14

      I don't have an override at all.
      I just confirmed that it happens even if i raise Z before I home.

      homeall.g

      G91 ; relative mode
      G1 S2 Z10 F200 ; hop Z up 10
      G1 S1 X-299 Y-299 F3000 ; move up to 240mm in the -X and -Y directions until the homing switches are triggered
      G1 S2 X4 Y4 F600 ; move slowly 6mm in +X and +Y directions
      G1 S1 X-10 Y-10 ; move up to 10mm in the -X and -Y directions until the homing switches are triggered
      G90 ; back to absolute mode
      G29 S2 ; disable mesh compensation
      G1 X143.9 Y147.3 F2000 ; put probe at center of bed
      G30 ; home z
      G1 X-10 Y240 Z20 ; move tool out of way
      G4 P1000 ; dwell a sec
      G29 S1 ; enable compensation
      1 Reply Last reply Reply Quote 0
      • undefined
        infiniteloop
        last edited by 13 Jan 2020, 05:27

        @RedMachine Just a quick test: does Z scale properly if you set the steps/mm to 400 in your config.g?

        undefined 1 Reply Last reply 13 Jan 2020, 05:36 Reply Quote 0
        • undefined
          RedMachine @infiniteloop
          last edited by RedMachine 13 Jan 2020, 05:36

          @infiniteloop
          Yes, I just changed Z to 400 steps/mm it and it does appear to be correct with just a quick caliper check.

          Am I wrong in thinking that a 8mm trap and 1.8 steppers at x16 should be 800 steps / mm?

          undefined undefined 2 Replies Last reply 13 Jan 2020, 06:00 Reply Quote 0
          • undefined
            infiniteloop @RedMachine
            last edited by 13 Jan 2020, 06:00

            @RedMachine said in Z moving twice distance - Was working - now it's double:

            Am I wrong in thinking that a 8mm trap and 1.8 steppers at x16 should be 800 steps / mm?

            Counter-question: how could your printer ever work with 800 steps - you said he did that happily for three weeks? The only reason I can imagine is that you had a second M92 (with Z400.00) in your config before you took some spring-cleaning action 😎

            1 Reply Last reply Reply Quote 0
            • undefined
              deckingman @RedMachine
              last edited by 13 Jan 2020, 07:37

              @RedMachine said in Z moving twice distance - Was working - now it's double:

              @infiniteloop
              Yes, I just changed Z to 400 steps/mm it and it does appear to be correct with just a quick caliper check.

              Am I wrong in thinking that a 8mm trap and 1.8 steppers at x16 should be 800 steps / mm?

              It depends on the lead of the screw which is how far a nut will travel in one revolution. This is a function of the pitch and the number of thread (starts). So if the pitch is 1mm and it's a 4 start thread, then the lead is 4mm. A 1.8 degree stepper has 200 full steps per revolution. So 200 full steps will move a nut 4mm and from that we can say that 50 full steps gives 1mm of linear movement. 50 full steps X 16 microsteps = 800 which is what you have. But if the pitch is 2mm then the lead is 8 mm giving 25 full steps per mm = 400 microsteps at 16X.

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

              1 Reply Last reply Reply Quote 1
              • undefined
                Phaedrux Moderator
                last edited by Phaedrux 13 Jan 2020, 18:02

                For posterity: Z_steps_per_mm = (motor_steps_per_rev * driver_microstep) / screw_lead

                Does not take any gear ratio into account.

                Z-Bot CoreXY Build | Thingiverse Profile

                undefined 1 Reply Last reply 13 Jan 2020, 22:18 Reply Quote 0
                • undefined
                  deckingman @Phaedrux
                  last edited by 13 Jan 2020, 22:18

                  @Phaedrux I'm so glad you used the term "lead" rather than"pitch" (it's a pet hate of mine)🙂

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

                  undefined 1 Reply Last reply 13 Jan 2020, 22:26 Reply Quote 0
                  • undefined
                    Phaedrux Moderator @deckingman
                    last edited by 13 Jan 2020, 22:26

                    @deckingman It's the least I could do.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      RedMachine
                      last edited by RedMachine 14 Jan 2020, 02:12

                      Which does indeed = 400. So I either, suffering from some brain problems, changed it to 800 and assumed it was like that all along or did have something overriding it that I inadvertently changed. Not sure which is the better scenario.

                      Either way, thanks for your patience.

                      tr8x8

                      undefined 1 Reply Last reply 14 Jan 2020, 02:16 Reply Quote 0
                      • undefined
                        deckingman @RedMachine
                        last edited by 14 Jan 2020, 02:16

                        @RedMachine No worries - you got it fixed which is the main thing.

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

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