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

G29 failing height map for a core XY config with fixed bed

Scheduled Pinned Locked Moved
Tuning and tweaking
3
29
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.
  • undefined
    campeancalin @Phaedrux
    last edited by 14 Oct 2020, 09:59

    @Phaedrux

    Bellow you have the slicer star g code:

    G28 ; home all axes
    G29 S1
    G1 X20 Y37 Z0.5
    G1 X10 Y10 F1500 ; move to prime
    G1 Z0.2 F3000 ; get ready to prime
    G1 X100 F5000 ; quick wipe

    undefined undefined 2 Replies Last reply 14 Oct 2020, 10:00 Reply Quote 0
    • undefined
      campeancalin @campeancalin
      last edited by 14 Oct 2020, 10:00

      After the G28 and before G29 S1 , there has to be the G30 command?

      undefined 1 Reply Last reply 14 Oct 2020, 13:07 Reply Quote 0
      • undefined
        fcwilt @campeancalin
        last edited by 14 Oct 2020, 13:07

        @campeancalin said in G29 failing height map for a core XY config with fixed bed:

        After the G28 and before G29 S1 , there has to be the G30 command?

        Hi,

        It depends on what homeall.g does.

        I don't use my Z probe for homing Z so I need to use G30 by itself before creating the height map and again before loading the height map.

        The probe point for the G30 must be the same in both cases.

        Your homez.g file uses G1 X20 Y37 F2400. I strongly suggest you use the center of the bed for G30.

        Now your G31 command has the offsets of X=10 and Y=10.

        Are you those values are correct? That puts the Z probe very close to the hotend, closer than my probe could be.

        In any case, assuming the offsets are correct the command to position for G30 would be G1 X290 Y290 F2400.


        With that change then as long as you use G28 before creating the height and loading the height map it should work fine.

        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 14 Oct 2020, 13:19 Reply Quote 1
        • undefined
          campeancalin @fcwilt
          last edited by 14 Oct 2020, 13:19

          @fcwilt Thank you for your reply.

          The homez.g has been changed :

          ; homez.g
          ; called to home the Z axis
          ;
          ; generated by RepRapFirmware Configuration Tool v3.1.4 on Mon Oct 05 2020 11:50:09 GMT+0300 (Eastern European Summer Time)
          G91 ; relative positioning
          G1 H2 Z5 F800 ; lift Z relative to current position
          G90 ; absolute positioning
          G1 X270 Y270 F2400 ; go to first probe point
          G30 ; home Z by probing the bed
          ;G29 S1 ; autoload the height map

          ; Uncomment the following lines to lift Z after probing
          G91 ; relative positioning
          G1 Z2 F100 ; lift Z relative to current position
          G90 ; absolute positioning

          Also the G31 command from config.g has been changed:

          G31 P25 X20 Y37 Z2.23

          undefined 1 Reply Last reply 14 Oct 2020, 13:33 Reply Quote 0
          • undefined
            campeancalin
            last edited by 14 Oct 2020, 13:32

            campeancalin
            campeancalin 14 Oct 2020, 16:19

            @fcwilt: while posting the homez.g file , I noticed something that I forgot to take in consideration; the new homez.g file is bellow:

            ; homez.g
            ; called to home the Z axis
            ;
            ; generated by RepRapFirmware Configuration Tool v3.1.4 on Mon Oct 05 2020 11:50:09 GMT+0300 (Eastern European Summer Time)
            G91 ; relative positioning
            G1 H2 Z5 F800 ; lift Z relative to current position
            G90 ; absolute positioning
            G1 X270 Y270 F2400 ; go to first probe point
            G29 S1 ; autoload the height map -- initially was commented
            G30 ; home Z by probing the bed -- this was before G29

            ; Uncomment the following lines to lift Z after probing
            G91 ; relative positioning
            G1 Z2 F100 ; lift Z relative to current position
            G90 ; absolute positioning

            1 Reply Last reply Reply Quote 0
            • undefined
              fcwilt @campeancalin
              last edited by fcwilt 14 Oct 2020, 13:33

              @campeancalin said in G29 failing height map for a core XY config with fixed bed:

              Also the G31 command from config.g has been changed:

              G31 P25 X20 Y37 Z2.23

              OK those offsets looks better.

              Assuming the center of the bed is X300, Y300 the command to position for G30 would be G1 X280 Y263.

              To determine those values I did that math: X280 = X300 - X20 and Y263 = Y300 - Y37

              And I assume you are going to do the G29 S1 somewhere else?

              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 14 Oct 2020, 13:51 Reply Quote 0
              • undefined
                campeancalin @fcwilt
                last edited by 14 Oct 2020, 13:51

                @fcwilt the G29 S1 is called for in homez.g, and also , I've written it in the printing start script

                ; homez.g
                ; called to home the Z axis
                ;
                ; generated by RepRapFirmware Configuration Tool v3.1.4 on Mon Oct 05 2020 11:50:09 GMT+0300 (Eastern European Summer Time)
                G91 ; relative positioning
                G1 H2 Z5 F800 ; lift Z relative to current position
                G90 ; absolute positioning
                G1 X270 Y270 F2400 ; go to first probe point
                G29 S1 ; autoload the height map
                G30 ; home Z by probing the bed

                ; Uncomment the following lines to lift Z after probing
                G91 ; relative positioning
                G1 Z2 F100 ; lift Z relative to current position
                G90 ; absolute positioning

                And the start script for printing:

                G28 ; home all axes
                G29 S1

                undefined 1 Reply Last reply 14 Oct 2020, 13:53 Reply Quote 0
                • undefined
                  campeancalin @campeancalin
                  last edited by 14 Oct 2020, 13:53

                  However I'm not really too sure about G29 S1 in the start script , if I already call for G 29 S1 in homez.g

                  undefined 1 Reply Last reply 14 Oct 2020, 14:22 Reply Quote 0
                  • undefined
                    fcwilt @campeancalin
                    last edited by fcwilt 14 Oct 2020, 14:22

                    @campeancalin said in G29 failing height map for a core XY config with fixed bed:

                    However I'm not really too sure about G29 S1 in the start script , if I already call for G 29 S1 in homez.g

                    I do things a little different from many folks.

                    For instance I have a macro (map_create.g) to create the height map. It performs all the commands needed to insure the map is correct. It does not depend on anything else (like config.g or homeall.g) to have done some important commands first. So when I run the macro I know that height map is created correctly.

                    Likewise I have a macro (map_load.g) to load the height map. And like the macro described above it does not depend on anything else. It does assume the height map has been created.

                    As you know most slicers can execute code prior to starting a print and after finishing a print.

                    Again I do not rely on the slicer to do everything that needs to be done to start or end a print.

                    Instead I have two macros (print_begin.g and print_end.g) that are invoked by the slicer.

                    One of the many things that print_begin.g does is to invoke map_load.g

                    If I desired I could have it instead invoke map_create.g if I wished to create the height map at the start of every print.


                    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 14 Oct 2020, 14:57 Reply Quote 0
                    • undefined
                      campeancalin @fcwilt
                      last edited by 14 Oct 2020, 14:57

                      @fcwilt Can you share an example of each of the macros you specify? Just so I have an idea where to start from.

                      undefined 1 Reply Last reply 14 Oct 2020, 17:04 Reply Quote 0
                      • undefined
                        Phaedrux Moderator @campeancalin
                        last edited by 14 Oct 2020, 16:50

                        @campeancalin said in G29 failing height map for a core XY config with fixed bed:

                        @Phaedrux

                        Bellow you have the slicer star g code:

                        G28 ; home all axes
                        G29 S1
                        G1 X20 Y37 Z0.5
                        G1 X10 Y10 F1500 ; move to prime
                        G1 Z0.2 F3000 ; get ready to prime
                        G1 X100 F5000 ; quick wipe

                        That looks fine.

                        @campeancalin said in G29 failing height map for a core XY config with fixed bed:

                        After the G28 and before G29 S1 , there has to be the G30 command?

                        In your case your G28 already does a G30 in your homez.

                        @campeancalin said in G29 failing height map for a core XY config with fixed bed:

                        G1 X270 Y270 F2400 ; go to first probe point
                        G29 S1 ; autoload the height map -- initially was commented
                        G30 ; home Z by probing the bed -- this was before G29

                        This is incorrect. Remove the G29 S1 from your homez. Or at least move it until AFTER the G30. The way you had it before was already fine.

                        @campeancalin said in G29 failing height map for a core XY config with fixed bed:

                        Just so I have an idea where to start from.

                        You already had it right.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        1 Reply Last reply Reply Quote 1
                        • undefined
                          fcwilt @campeancalin
                          last edited by 14 Oct 2020, 17:04

                          @campeancalin said in G29 failing height map for a core XY config with fixed bed:

                          @fcwilt Can you share an example of each of the macros you specify? Just so I have an idea where to start from.

                          Hi,

                          I would be glad to share them with you BUT my approach is not what you would call a common approach.

                          You might say it's a bit more "advanced" or maybe just "complicated" because you have tasks coded in different macros. You cannot just look at one file and see every command. You, of course, see the command to invoke the macro (M98 P"some_macro.g") but if you don't remember what the macro does you have to open that file.

                          It's a bit more work but I do it because I can invoke a given macro from different places and know that it is always going to do the same thing.

                          For example, I can invoke "map_load.g" from the console, from a DWC macro, from my "print_begin.g" macro and it will always do the same thing AND it will always work, assuming I have written it correctly and tested it to be sure it works.

                          So if you still want to see my macros just let me know.

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