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

G30 Question / Feature Request

Scheduled Pinned Locked Moved
Firmware wishlist
3
13
450
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
    PCR
    last edited by 19 Jan 2021, 07:54

    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

    undefined 1 Reply Last reply 19 Jan 2021, 11:20 Reply Quote 1
    • undefined
      jay_s_uk
      last edited by 19 Jan 2021, 08:28

      This post is deleted!
      undefined 1 Reply Last reply 19 Jan 2021, 10:13 Reply Quote 0
      • undefined
        fcwilt @jay_s_uk
        last edited by 19 Jan 2021, 10:13

        @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 small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

        undefined 1 Reply Last reply 19 Jan 2021, 10:30 Reply Quote 0
        • undefined
          jay_s_uk @fcwilt
          last edited by jay_s_uk 19 Jan 2021, 10:30

          This post is deleted!
          undefined 1 Reply Last reply 19 Jan 2021, 10:33 Reply Quote 0
          • undefined
            fcwilt @jay_s_uk
            last edited by 19 Jan 2021, 10:33

            @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
            • undefined
              jay_s_uk
              last edited by 19 Jan 2021, 10:35

              This post is deleted!
              undefined 1 Reply Last reply 19 Jan 2021, 10:40 Reply Quote 0
              • undefined
                fcwilt @jay_s_uk
                last edited by 19 Jan 2021, 10:40

                @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
                • undefined
                  jay_s_uk
                  last edited by 19 Jan 2021, 10:47

                  This post is deleted!
                  undefined 1 Reply Last reply 19 Jan 2021, 10:54 Reply Quote 0
                  • undefined
                    fcwilt @jay_s_uk
                    last edited by 19 Jan 2021, 10:54

                    @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
                    • undefined
                      jay_s_uk
                      last edited by 19 Jan 2021, 10:56

                      This post is deleted!
                      undefined 1 Reply Last reply 19 Jan 2021, 10:56 Reply Quote 0
                      • undefined
                        fcwilt @jay_s_uk
                        last edited by 19 Jan 2021, 10:56

                        @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
                        • undefined
                          jay_s_uk
                          last edited by 19 Jan 2021, 10:59

                          i have nothing to input on this subject

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            fcwilt @PCR
                            last edited by 19 Jan 2021, 11:20

                            @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
                            8 out of 13
                            • First post
                              8/13
                              Last post
                            Unless otherwise noted, all forum content is licensed under CC-BY-SA