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

    G30 Question / Feature Request

    Scheduled Pinned Locked Moved
    Firmware wishlist
    3
    13
    451
    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.
    • jay_s_ukundefined
      jay_s_uk @fcwilt
      last edited by jay_s_uk

      This post is deleted!
      fcwiltundefined 1 Reply Last reply Reply Quote 0
      • fcwiltundefined
        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 small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

          This post is deleted!
          fcwiltundefined 1 Reply Last reply Reply Quote 0
          • fcwiltundefined
            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 small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

              This post is deleted!
              fcwiltundefined 1 Reply Last reply Reply Quote 0
              • fcwiltundefined
                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 small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

                  This post is deleted!
                  fcwiltundefined 1 Reply Last reply Reply Quote 0
                  • fcwiltundefined
                    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 small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

                      i have nothing to input on this subject

                      1 Reply Last reply Reply Quote 0
                      • fcwiltundefined
                        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 small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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