• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    brs
    last edited by 24 Jul 2022, 13:42

    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?

    undefined 1 Reply Last reply 24 Jul 2022, 13:43 Reply Quote 0
    • undefined
      jay_s_uk @brs
      last edited by 24 Jul 2022, 13:43

      @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

      undefined 1 Reply Last reply 24 Jul 2022, 13:48 Reply Quote 1
      • undefined
        brs @jay_s_uk
        last edited by 24 Jul 2022, 13:48

        @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
        • undefined
          appjaws
          last edited by 24 Jul 2022, 16:34

          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
          • undefined
            brs
            last edited by 24 Jul 2022, 22:52

            @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.

            undefined 1 Reply Last reply 25 Jul 2022, 01:53 Reply Quote 0
            • undefined
              Exerqtor @brs
              last edited by 25 Jul 2022, 01:53

              @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

              undefined 1 Reply Last reply 26 Jul 2022, 00:55 Reply Quote 0
              • undefined
                brs @Exerqtor
                last edited by 26 Jul 2022, 00:55

                @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.

                undefined undefined 2 Replies Last reply 27 Jul 2022, 12:47 Reply Quote 0
                • undefined
                  Exerqtor @brs
                  last edited by Exerqtor 27 Jul 2022, 12:47

                  @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
                  • undefined
                    dc42 administrators @brs
                    last edited by 27 Jul 2022, 14:32

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