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

    automatic start a marco when the printer is on?

    Scheduled Pinned Locked Moved
    General Discussion
    4
    8
    298
    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.
    • Simoneundefined
      Simone
      last edited by

      I'm trying to automate my priter for an automatic bed mesh when i turn it on i have made 3 macros for this task, the first for delploy probe the second for the z=0 and the third retract probe.

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

        @Simone

        It is generally consider a bad idea to have any sort of movement occur when powering on the printer.

        Frederick

        Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

          @fcwilt ah

          Simoneundefined 1 Reply Last reply Reply Quote 0
          • Simoneundefined
            Simone @Simone
            last edited by

            @Simone so when i send a print?

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

              @Simone

              That is the way I do it.

              I make use of the slicer feature which allows executing some "external" user code.

              I have two files: print_begin.g and print_end.g

              In the slicer, in the appropriate places, I have M98 P"print_begin.g" and M98 P"print_end.g"

              Those two files do everything I wish to happen when the print begins and when the print ends.

              Among other things at the start of a print I...

              • set the Z=0 Datum using the Z probe
              • load the heightmap for mesh compensation

              Frederick

              Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

              BoAundefined 1 Reply Last reply Reply Quote 2
              • BoAundefined
                BoA @fcwilt
                last edited by

                @fcwilt Wouldn't it be easier to just use start.g and stop.g files that are called automatically on print start and stop instead of creating separe ones and putting a call in slicer generated g-code?

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

                  @BoA said in automatic start a marco when the printer is on?:

                  @fcwilt Wouldn't it be easier to just use start.g and stop.g files that are called automatically on print start and stop instead of creating separe ones and putting a call in slicer generated g-code?

                  It has to do when they are called. The file "start.g" is called before any slicer code executes which can result in the slicer code changing settings that were set in the "start.g" file.

                  At least with the slicers I have used I can insure that my files are called and take precedence over anything the slicer may have already done.

                  Frederick

                  Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                  1 Reply Last reply Reply Quote 0
                  • mikeabuilderundefined
                    mikeabuilder
                    last edited by

                    I have a macro that runs when I start the printer to do some startup tasks - heat the bed, home the printer, level the bed, generate the mesh. To deal with the issue of having the printer start moving on its own, I post a blocking M291 message to the user asking if they want to start the process. The need to give the OK.

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