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

    Modifying built-in macros

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    9
    385
    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.
    • TomFundefined
      TomF
      last edited by

      This is most likely me missing the obvious, but how can I find, modify and save 'built-in' macros? For example pause.g, which I'd like to have a relative movement to get the bed away from a hot nozzle, or the macro to change filament that invokes load and unload filament macros.
      Thanks,

      Rushmere3Dundefined fcwiltundefined 2 Replies Last reply Reply Quote 0
      • Rushmere3Dundefined
        Rushmere3D @TomF
        last edited by

        @tomf

        To edit system files (Pause.g, Resume.g etc) You would find them via Files - System and click them, this opens a text editor.

        To edit Macro's, you find them via Files - Macros and right click to open a menu and then Edit file.

        Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

        TomFundefined 1 Reply Last reply Reply Quote 0
        • TomFundefined
          TomF @Rushmere3D
          last edited by

          @rushmere3d said in Modifying built-in macros:

          @tomf

          To edit system files (Pause.g, Resume.g etc) You would find them via Files - System and click them, this opens a text editor.

          To edit Macro's, you find them via Files - Macros and right click to open a menu and then Edit file.

          That was the first place I looked but those macros aren't there or they are not visible. There are 2 directories within System (System directory and Firmware directory) and neither have those macros, unless perhaps they are hidden in a 'bin' I have also looked in 'Macros' and they aren't there either.

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

            @tomf if you have pause.g and resume.g then they should be in the System directory. Perhaps you don't have them? Can you see config.g in the System directory?

            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

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

              @tomf

              The "built-in" macros are not really built-in - you have to create them if you need/want them.

              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

              TomFundefined 1 Reply Last reply Reply Quote 0
              • TomFundefined
                TomF @dc42
                last edited by

                @dc42
                Yes. config.g is there, so I guess I don't have the others. I though they were somehow built in based on the explanation in the M226 documentation "Initiates a pause in the same way as if the pause button is pressed, except that execution of all prior GCode commands in the same input stream is completed first. Then the SD card input stream is paused and file sys/pause.g is run" so I was looking for a file. Are there examples of pause, resume, load, etc. that I can use?

                1 Reply Last reply Reply Quote 0
                • TomFundefined
                  TomF @fcwilt
                  last edited by

                  @fcwilt said in Modifying built-in macros:

                  @tomf

                  The "built-in" macros are not really built-in - you have to create them if you need/want them.

                  Frederick

                  I'm now realising that! I will have to find some examples somewhere. Any suggestions?

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

                    @tomf said in Modifying built-in macros:

                    @fcwilt said in Modifying built-in macros:

                    @tomf

                    The "built-in" macros are not really built-in - you have to create them if you need/want them.

                    Frederick

                    I'm now realising that! I will have to find some examples somewhere. Any suggestions?

                    Perhaps these will help you get started.

                    Here is my pause.g:

                    M291 R"Pausing Print" P"Please wait..." T0
                    
                    M83                 ; relative extruder moves
                    G1 E-1 F3600        ; retract filament (see resume.g)
                    
                    G91                 ; relative moves
                    G1 Z10 F9999        ; move nozzle out of the way - step 1 (max speed)
                    
                    G90                 ; absolute moves
                    G1 X0 Y150 F6000    ; move nozzle out of the way - step 2
                    
                    M291 R"Print Paused" P"Done" T1
                    

                    Here is my resume.g:

                    M291 R"Resuming print" P"Please wait..." T0
                    
                    G1 R1 Z5    ; move  nozzle to 5mm above resume point (Z)
                    G1 R1 X0 Y0 ; move  nozzle to resume point (XY)
                    G1 R1 Z0    ; lower nozzle to resume point (Z)
                    
                    M83         ; relative extruder moves
                    G1 E1 F3600 ; undo the retraction done in pause.g
                    
                    M291 R"Print Resumed" P"Done" T1
                    

                    Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                    TomFundefined 1 Reply Last reply Reply Quote 2
                    • TomFundefined
                      TomF @fcwilt
                      last edited by

                      @fcwilt
                      Great, thanks! I found some through the Duet macros documentation, so I should hopefully be able to work out something from these.

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