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

    M400 ignored in bed.g

    Scheduled Pinned Locked Moved Unsolved
    Beta Firmware
    4
    8
    336
    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.
    • gtj0undefined
      gtj0
      last edited by

      DSF: 1.1.0.5
      RRF: 3.0-beta11+latest homing fixes

      When I do a bed level via G32 S3, M400 commands seem to be ignored...

      With the following bed.g, the M400 near the end is ignored and the G29 S1
      command to load the heightmap is run directly after the G29 S2 command which clears it. This happens before any moves are actually executed.

      ; bed.g
      ; called to perform automatic bed compensation via G32
      M561
      G29 S2
      G1 Z5
      G1 X0 Y13 F6000
      G30 P0 X0 Y13 Z-99999 ; probe near a leadscrew
      G1 X238 Y450 F6000
      G30 P1 X238 Y450 Z-99999 ; probe near a leadscrew
      G1 X460 Y13 F6000
      G30 P2 X460 Y13 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors
      G1 X0 Y0 F3600
      M400
      G29 S1
      

      DuetControlServer log:
      dcs.txt

      1 Reply Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt
        last edited by fcwilt

        Hi,

        Why do you have those G1 commands moving to the point you are about to probe?

        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
        • JamesMundefined
          JamesM
          last edited by JamesM

          I don't believe you want to be loading your heightmap in your bed.g file...better to add that to the start-up script in your slicer.

          Granted, I'm not on RRF 3.xx firmware but still 2.03 but this is my entire bed.g

          G28 ; home
          M561 ; clear any bed transform
          G30 P0 X28.5 Y160 Z-99999 ; probe near left leadscrew
          G30 P1 X311.5 Y284 Z-99999 ; probe near rear right leadscrew
          G30 P2 X311.5 Y31 Z-99999 S3 ; probe near front right leadscrew

          You want to normally home your printer first before doing the leadscrew probing and have it probe in the center of the bed to properly establish a good z=0 point before the bed leveling occurs.

          1 Reply Last reply Reply Quote 0
          • gtj0undefined
            gtj0
            last edited by

            @fcwilt , @JamesM I appreciate your feedback but this is less about bed levelling methodology and more about the fact that M400 is ignored in bed.g in RRF3.

            fcwiltundefined dc42undefined 2 Replies Last reply Reply Quote 0
            • fcwiltundefined
              fcwilt @gtj0
              last edited by

              @gtj0 said in M400 ignored in bed.g:

              @fcwilt , @JamesM I appreciate your feedback but this is less about bed levelling methodology and more about the fact that M400 is ignored in bed.g in RRF3.

              Understood.

              Why do you want to use that M400 command?

              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

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

                @gtj0 said in M400 ignored in bed.g:

                @fcwilt , @JamesM I appreciate your feedback but this is less about bed levelling methodology and more about the fact that M400 is ignored in bed.g in RRF3.

                I asked chrishamm to look at this, because if it can be reproduced then it's likely to be an issue with how DSF and RRF interact.

                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
                • gtj0undefined
                  gtj0 @fcwilt
                  last edited by

                  @fcwilt said in M400 ignored in bed.g:

                  @gtj0 said in M400 ignored in bed.g:

                  @fcwilt , @JamesM I appreciate your feedback but this is less about bed levelling methodology and more about the fact that M400 is ignored in bed.g in RRF3.

                  Understood.

                  Why do you want to use that M400 command?

                  Frederick

                  At the beginning of the macro, I want to disable the heightmap before levelling, then when the levelling is complete, reload the heightmap. Unfortunately, both G29 commands are being run before the levelling even starts, even with the M400 after all the move commands are complete.

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

                    @gtj0 said in M400 ignored in bed.g:

                    At the beginning of the macro, I want to disable the heightmap before levelling, then when the levelling is complete, reload the heightmap. Unfortunately, both G29 commands are being run before the levelling even starts, even with the M400 after all the move commands are complete.

                    Sounds like there is more fundamental problem. I don't see why the G29 commands are executed in the existing order.

                    Be interested to see what dc42 finds.

                    I'm not using v3 so I cannot test this myself, but perhaps you could try putting the two G29 commands and the G32 command in a macro as a work around.

                    Thanks.

                    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