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

    What happens at the end of a print job?

    Scheduled Pinned Locked Moved
    General Discussion
    5
    9
    615
    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.
    • brsundefined
      brs
      last edited by

      I have this line in my slicer 'Ending Script'...

      G28 X10 Y250 ; Move print head out of the way
      

      ...so that the print head will be at the back of the enclosure after the print is finished. Otherwise the gantry is in the way of print removal.

      For some reason this line only works if I cancel the print job. If the print finishes normally the print head parks itself at Home (front left). Where is the code that tells the printer to do this? What does the printer run at the end of each print job?

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @brs
        last edited by

        @brs that gcode is incorrect. G28 means home all axes.
        If you want to move to a specific point, it would be G1 X10 Y250

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        brsundefined 1 Reply Last reply Reply Quote 1
        • brsundefined
          brs @jay_s_uk
          last edited by

          @jay_s_uk said in What happens at the end of a print job?:

          @brs that gcode is incorrect. G28 means home all axes.
          If you want to move to a specific point, it would be G1 X10 Y250

          Ha. Well that was easy.
          Thanks Jay!

          1 Reply Last reply Reply Quote 0
          • appjawsundefined
            appjaws
            last edited by

            This is my macro "PrintEnd"

            ;PrintEnd
            G91 ; set to use relative coordinates
            G1 Z5 E-2 F3000 ; retract extruder 2mm and move bed down 5 mm
            G90 ; Set absolute mode
            G1 Y228 X118 F3000 ; Park position
            M104 S120 ; Set current tool temperature to 120C
            M140 S0 R0 ; Set bed to standby
            M106 S0 ; turn fan off
            M290 R0 S0 ; clear baby stepping
            M400 ; Wait for moves to complete
            M291 P"Print Completed " T5 ; Display message

            In S3D - scripts - Ending Script I have the following entry:-

            M98 P"0:/macros/PrintEnd"

            Hope that helps

            appjaws - Core XYUV Duet Ethernet Duex5
            firmware 3.5.0-rc.4 Web Interface 3.5.0-rc.4
            Ormerod 1-converted to laser engraver, Duet wifi
            OpenSCAD version 2024.03.18
            Simplify3D 5.1.2

            1 Reply Last reply Reply Quote 1
            • brsundefined
              brs
              last edited by

              @appjaws said in What happens at the end of a print job?:

              Thnx, I might use some of that. Copied it to my scripts and commented it out for later use.

              Now if you could give me one more line (M150) to make my DotStar lights flash that would be the cat's meow.

              Exerqtorundefined 1 Reply Last reply Reply Quote 0
              • Exerqtorundefined
                Exerqtor @brs
                last edited by

                @brs that can't be done with one M150, it has to be done with a series of on-off commands, and with a G4 time delay in betwen

                brsundefined 1 Reply Last reply Reply Quote 0
                • brsundefined
                  brs @Exerqtor
                  last edited by

                  @exerqtor
                  I knew that and, wasn't really serious when I posted the part about M150. Problem is, there is no loop feature (that I know of) in G code so that a light can be made to blink until the operator comes and notices. Just one of those little things that would be icing on the cake but not really needed.

                  Exerqtorundefined dc42undefined 2 Replies Last reply Reply Quote 0
                  • Exerqtorundefined
                    Exerqtor @brs
                    last edited by Exerqtor

                    @brs You can create a loop with conditional gcode? It's not just as simple as to flick a few switches in a plugin (or whatever) to set it up though, as of now atleast. Def. hope the implemitation / support for LED neopixels etc. get better with RRF down the road.

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

                      @brs said in What happens at the end of a print job?:

                      @exerqtor
                      I knew that and, wasn't really serious when I posted the part about M150. Problem is, there is no loop feature (that I know of) in G code so that a light can be made to blink until the operator comes and notices. Just one of those little things that would be icing on the cake but not really needed.

                      Yes there is a loop facility. https://docs.duet3d.com/en/User_manual/Reference/Gcode_meta_commands

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