Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    G30 Question / Feature Request

    Firmware wishlist
    3
    13
    60
    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.
    • PCR
      PCR last edited by

      Running 3.2 stable.

      if i type

      G30 X100 Y100 P0 Z-9999
      

      it will probe at the 100/100 with the probe offset in mind

      But if it want to home my machine with a G30

      G30 X100 Y100
      

      does not probe at at 100/100. It probes at the current location. I suppose thats normal?
      So before i home my machine i have to Go to G1 X130 Y100 when my prob offset is -30.

      Best

      fcwilt 1 Reply Last reply Reply Quote 1
      • jay_s_uk
        jay_s_uk last edited by

        This post is deleted!
        fcwilt 1 Reply Last reply Reply Quote 0
        • fcwilt
          fcwilt @jay_s_uk last edited by

          @jay_s_uk said in G30 Question / Feature Request:

          My probe is offset in the - in X and + in Y so you'll have to adjust whether it adds or takes aways the value to suit your probe position.

          The probe offsets are signed values so you don't need to use the abs function.

          My printer is configured with X=0 Y=0 at the center of the bed so I just do this:

          G1 X{-sensors.probes[0].offsets[0]}, Y{-sensors.probes[0].offsets[1]}, F6000

          Frederick

          Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

          jay_s_uk 1 Reply Last reply Reply Quote 0
          • jay_s_uk
            jay_s_uk @fcwilt last edited by jay_s_uk

            This post is deleted!
            fcwilt 1 Reply Last reply Reply Quote 0
            • fcwilt
              fcwilt @jay_s_uk last edited by

              @jay_s_uk said in G30 Question / Feature Request:

              @fcwilt I do have to use abs if I want to add a negative value...

              As I said the probe offsets are signed - just subtract them.

              Using your example 130 - -10 = 140.

              Frederick

              Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

              1 Reply Last reply Reply Quote -1
              • jay_s_uk
                jay_s_uk last edited by

                This post is deleted!
                fcwilt 1 Reply Last reply Reply Quote 0
                • fcwilt
                  fcwilt @jay_s_uk last edited by

                  @jay_s_uk said in G30 Question / Feature Request:

                  @fcwilt or use abs....

                  But why? The offsets are correct as they are if you just subtract them for both X and Y.

                  You have +abs for X and -abs for Y which means you are adjusting the formula based on the sign of the offset.

                  You are making an adjustment that you don't need to make.

                  By simply using subtraction the same formula works for everyone.

                  Frederick

                  Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

                  1 Reply Last reply Reply Quote -1
                  • jay_s_uk
                    jay_s_uk last edited by

                    This post is deleted!
                    fcwilt 1 Reply Last reply Reply Quote 0
                    • fcwilt
                      fcwilt @jay_s_uk last edited by

                      @jay_s_uk said in G30 Question / Feature Request:

                      @fcwilt

                      because

                      • its cleaner code than using - -

                      You don't use - -

                      I was showing the subtraction of a negative offset - which results in the correct value.

                      Without abs is "cleaner" because, as I said, the same formula works for all printers.

                      Frederick

                      Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

                      1 Reply Last reply Reply Quote -1
                      • jay_s_uk
                        jay_s_uk last edited by

                        This post is deleted!
                        fcwilt 1 Reply Last reply Reply Quote 0
                        • fcwilt
                          fcwilt @jay_s_uk last edited by

                          @jay_s_uk said in G30 Question / Feature Request:

                          @fcwilt
                          abs works for all printers
                          i'm not going to argue any more
                          case closed

                          Sorry but your approach requires adjusting the formula based on the sign of the offset.

                          The simple, correct approach does not.

                          Frederick

                          Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

                          1 Reply Last reply Reply Quote 0
                          • jay_s_uk
                            jay_s_uk last edited by

                            i have nothing to input on this subject

                            1 Reply Last reply Reply Quote 0
                            • fcwilt
                              fcwilt @PCR last edited by

                              @PCR said in G30 Question / Feature Request:

                              Running 3.2 stable.

                              if i type

                              G30 X100 Y100 P0 Z-9999
                              

                              it will probe at the 100/100 with the probe offset in mind

                              But if it want to home my machine with a G30

                              G30 X100 Y100
                              

                              does not probe at at 100/100. It probes at the current location. I suppose thats normal?
                              So before i home my machine i have to Go to G1 X130 Y100 when my prob offset is -30.

                              Best

                              OK back to your question.

                              It has been suggested more than once that a G30 with no P parameter respect the X and Y parameters so the probe gets moved to the correct XY position, taking into account the probe X and Y offsets.

                              You can add your voice to this suggesting in the category for firmware updates.

                              As it stands you have to use a normal G1 command with X and Y adjusted according to the probe offsets.

                              You can compute the values for X and Y yourself or you can use the conditional code feature of v3 firmware to do it for you - if you wish.

                              Frederick

                              Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

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