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

    G30 XY coordinates - for probe or for nozzle?

    Scheduled Pinned Locked Moved
    General Discussion
    2
    16
    1.2k
    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.
    • r123undefined
      r123
      last edited by

      When you put coordinates into a G30 command in order to probe at a certain point, are those coordinates interpreted as being the position of the nozzle (in which case the probe ends up wherever) or rather the position of the probe itself (which is calculated using the offset numbers given in probe setup)????

      (I'm confused!)

      r123undefined 1 Reply Last reply Reply Quote 0
      • r123undefined
        r123 @r123
        last edited by

        @r123 The reason I'm confused is that I had a point programmed as Y275 that was working fine this morning. It would be fine now if the probe went there. But now the nozzle is going there and the probe is off the bed. Haven't been playing with this code and don't understand what's happened. And did try a simple restart (had to anyway after the nozzle crashed into the bed!)

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

          The G30 coordinates are where you want the probe to be, not the nozzle. You need to set up the probe offset in G31 so the firmware knows where to command the nozzle.

          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 1
          • r123undefined
            r123
            last edited by

            Now, mysteriously, this correct behaviour has returned.

            Have no idea why it stopped working when did not edit G31.

            Thanks!

            1 Reply Last reply Reply Quote 0
            • r123undefined
              r123
              last edited by

              An update.

              Have just had an hour of hell in which, initially, G30 and G29 went haywire (they both seemed to have lost a sense of where they should be working on the bed) and then it became impossible to even run HomeX or Homeall.

              You can imagine that between each attempt there was an EMERGENCY STOP or a POWER OFF and yet the behaviour continued.

              If I tried to perform HomeX the hotend would move in the Y direction (not X) and flap back and forth a couple of times before stopping.

              Needless to say became quite discouraged but couldn't find anything further to reset (and have no M501).

              One change could remember making recently was adding the R (R0.7 for the BLTouch works great!) parameter to M558 in config.g. In bed.g had another copy of M558 but WITHOUT the R parameter. When I added the R0.7 to the M558 in bed.g then everything started working correctly. This might just be a coincidence since would have had to homeX before executing bed.g and was unable to homeX before and had restarted many times.

              In any and all cases there is something odd going on and it seems to involve functions like G31, M557, M558, G28, G29..... It manifests itself in the Duet losing sense of orientation, of X, of Y and, if previously homed, of position itself.

              firmware 2.03 (2019-06-13b2)
              Railcore2 ZL

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

                If you find a particular sequence that causes this sort of problem, please let me know. I have one other report that suggests there might be memory corruption occasionally when G29 is run, but nothing definite yet.

                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

                r123undefined 1 Reply Last reply Reply Quote 0
                • r123undefined
                  r123 @dc42
                  last edited by

                  @dc42 Is there a reset procedure? I thought the Duet was a tabula rasa at reboot and loaded everything from config.g but this simply didn't work / was not sufficient. Would feel much more comfortable about experimenting if knew I could get out of it next time without a lot of blind trial and error. 😉

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

                    Yes it loads everything from config.g (and config-override.g if you have a M501 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
                    • r123undefined
                      r123
                      last edited by

                      Then it's a mystery why the above problem persisted through several reboots and several power cycles. Before going away.

                      1 Reply Last reply Reply Quote 0
                      • r123undefined
                        r123
                        last edited by r123

                        After a period of everything working great having more G30 misery today.

                        My bed.g is as below and ordinarily runs no problems.

                        Since an hour or so ago, whenever I run the third and final G30 in the sequence, seemingly the WRONG leadscrew starts turning repeatedly and the bed become skewed necessitating an emergency stop.

                        Basically I've been restarting, performing HomeAll, then running bed.g.

                        Sometimes the first time I run bed.g it's fine, but then the second time it goes beserk. Sometimes it fails on the very first run.

                        All very odd. Wish I knew what / how to reset to make this go away. Doesn't the M561 eliminate any previous transforms, anything that might cause the leadscrews to make independent moves?

                        ps all 3 Z motors are driven by a Duex5.

                        M561 ; clear any existing bed transform
                        G1 Z5 S2
                        M558 P9 X0 Y0 Z1 H5 F50 T6000 A5 S0.02 R0.7; larger dive height than config.g

                        G30 P0 X15 Y45 Z-99999
                        G30 P1 X15 Y260 Z-99999 ; was Y275
                        G30 P2 X275 Y150 Z-99999 S3
                        G1 X0 Y0 F5000 ; move the head to the corner (optional)

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

                          Which firmware version are you using?

                          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

                          r123undefined 1 Reply Last reply Reply Quote 0
                          • r123undefined
                            r123 @dc42
                            last edited by

                            @dc42 Firmware 2.03

                            After making the post above continued to try different things for an hour or two.

                            Found that if I turned the printer off for a good amount of time (couple of minutes) would at least be guaranteed to be able to perform one round of bed compensation.

                            So in the end settled for turning the printer off 3 times to perform 3 compensations and get the bed nice and level. And then do some printing. At least was able to print with no problems.

                            Wish I had some idea what was going on. Very odd that rebooting was ineffective, that power down for a "while" behaved differently.

                            The details of the symptoms are perhaps not relevant, because earlier on in this thread (the last time everything unravelled) the printer was just doing seemingly random things. Like try to X home and it moves in the Y direction a bit, bounces off the endstop successfully, goes a bit further and then stops. Eventually all of this went away. But no ideas why.

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

                              @r123 said in G30 XY coordinates - for probe or for nozzle?:

                              @dc42 Firmware 2.03

                              After making the post above continued to try different things for an hour or two.

                              Found that if I turned the printer off for a good amount of time (couple of minutes) would at least be guaranteed to be able to perform one round of bed compensation.

                              So in the end settled for turning the printer off 3 times to perform 3 compensations and get the bed nice and level. And then do some printing. At least was able to print with no problems.

                              Wish I had some idea what was going on. Very odd that rebooting was ineffective, that power down for a "while" behaved differently.

                              The details of the symptoms are perhaps not relevant, because earlier on in this thread (the last time everything unravelled) the printer was just doing seemingly random things. Like try to X home and it moves in the Y direction a bit, bounces off the endstop successfully, goes a bit further and then stops. Eventually all of this went away. But no ideas why.

                              That does seem strange. Possibly a hardware problem?

                              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
                              • r123undefined
                                r123
                                last edited by

                                Hmm...

                                Not sure what would make one motor move inappropriately under certain circumstances. Perhaps noise on the SPI bus connecting the Duet and Duex stepper drivers causing bit-corruption such that a command for Driver 1 mistaken for Driver 2? Or "Up" misinterpreted for "Down"?

                                1 Reply Last reply Reply Quote 0
                                • r123undefined
                                  r123
                                  last edited by r123

                                  Finally, after some time off, figured it out.

                                  In various places had taken to reducing motor currents. For example in homeall.g had the following at the start of the script:

                                  M913 X20 Y20 Z80 ; reduce motor power to 20% for silent performance (increased to 100% in Slicer print start script)

                                  Whilst most of the time this worked fine, in some situations the lower currents were problematic and causes Ouija board like behaviour.

                                  Phew.

                                  Everything is currently at 100% and will reduce more judiciously in future.

                                  1 Reply Last reply Reply Quote 0
                                  • r123undefined
                                    r123
                                    last edited by r123

                                    ps the "problem" crept up stealthily as parameters such as jerk and acceleration were gradually increased. Thus macros and commands which had worked previously began to produce erratic behaviours. Since most of the problems were on the Z mistakenly attributed it to the compensation mechanisms.

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