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

    Purge and wipe in start script

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    5
    10
    2.2k
    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.
    • Corexyundefined
      Corexy
      last edited by

      I've seen a makerbot do a a small purge at the start of a print, with the extruder raised from the bed and moving on the X axis (right at the back of the bed, out of the print) before it started extruding. As it moved across the x axis, it started to extrude and lower to the build plate.

      I'd like to put a command like that between the bed levelling and the start of the print in the starting script in S3D.

      Could someone please give and example of the command that would do that? I'll work out the XY values I want from there.

      Thanks in advance for any help,

      Cheers

      1 Reply Last reply Reply Quote 0
      • DIY-O-Sphereundefined
        DIY-O-Sphere
        last edited by DIY-O-Sphere

        T0
        M116
        G1 Z10.0 F6000 ; Move the platform down
        G1 X0 Y10 F5000 ; move to front left corner
        G92 E0 ; reset extrusion distance
        G1 F200 E5 ; prime Nozzle
        G92 E0 ; reset extrusion distance
        M117 Priming and Cleaning Nozzle... ; output message
        M83 ; set extruder to relative mode
        G92 E0; reset extrusion distance
        G1 Z0.3 ; move down to the bed
        G1 Y60 E5 F500 ; move 40mm backwards printing a line
        G1 E-3 F1500 ; retracting
        G92 E0; reset extrusion distance
        G1 Y100 F7200 ; quick move 60mm backwards
        G1 Z20 ; lift nozzle
        G1 x10 Y10 ; move to the front
        G4 P3000 ; wait 3s
        M82 ; set extruder to absolute mode
        G92 E0; reset extrusion distance
        M117 Ready... ; output message

        Maybe not exactly what you want.
        I am printing a short line before the start of a print job.

        bb7a9504-5978-4cb6-bc3a-a7c7960ea680-grafik.png

        (UTC+1)

        1 Reply Last reply Reply Quote 0
        • SteveYYCundefined
          SteveYYC
          last edited by SteveYYC

          I have a "purge.g" in my macros subdirectory.

          I call it with an M98 command.

          M98 P"/macros/printing/purge.g";
          
          ; purge.g
          ; macro to purge leave a print in process and purge some filament in a safe location before returning to the print
          ; currently configured for use with a fixed (x,y,z) purge bucket
          ; NOTE: When using G1"R" to restore a position, axis args are offset and any axis not mentioned will not restore
          ; (So use X0 Y0 Z0 with restore moves or else the tool will just sit there)
          
          G60 S2 		; Store Current Tool Coordinates in slot 2 (same as would occur at tool change)
          G1 X0 Y0 Z5 R2 F6000	; move up 5 mm @ 100mm/s
          
          G1 X0 Y80 F12000	; move to a spot above the bucket location (in front of Z tower) @ 200mm/s
          G60 S1			; store position slot 1
          G1 X0 Y80 Z0.1 F6000	; move to purge coordinates @ 100mm/s
          G1 E20 F900		; purge 20mm filament @ 15mm/s
          G4 S2			; Wait for 2 second &
          G10			; retract to minimize ooze
          G1 X0 Y0 Z0 R1 F6000	; return to stored position 0 (above purge) @ 100mm/s
          G1 X0 Y0 Z5 R2 F12000	; return to stored position 2 (Z offset 5mm above print) @ 200mm/s
          G1 X0 Y0 Z0 R2 F3000	; return to stored position 2 (contact print) @ 50mm/s
          G11			; unretract
          
          ; print will resume at this point
          
          DIY-O-Sphereundefined 2 Replies Last reply Reply Quote 1
          • DIY-O-Sphereundefined
            DIY-O-Sphere @SteveYYC
            last edited by

            @SteveYYC said in Purge and wipe in start script:

            G10 ; retract to minimize ooze
            G11 ; unretract

            Nice, how easy... I will try that too. Thank you for sharing.

            (UTC+1)

            1 Reply Last reply Reply Quote 0
            • DIY-O-Sphereundefined
              DIY-O-Sphere @SteveYYC
              last edited by

              @SteveYYC
              Have you installed a wiper at the plunge bucket?
              Without I only could get rid of the leaking filament by printing the line.

              (UTC+1)

              SteveYYCundefined 1 Reply Last reply Reply Quote 0
              • SteveYYCundefined
                SteveYYC @DIY-O-Sphere
                last edited by

                @DIY-O-Sphere

                I do not have a wiper at this time, but I am only using the purge macro at the start of the print so I print a single-outline skirt that doesn't touch the print & that keeps the string from touching the part.

                When I initially wrote this macro I didn't have the G4 command in it and the string was pretty awful. Adding the 2-second dwell made the string much thinner. I am thinking about adding a step to pull up just a little before the dwell, blast the part-cooling fans and then a quick move to snap the string. I'll let you know how it goes.

                This macro is part of a project to add a moving purge bucket to my delta and once I get that built I will have a squeegee/wiper on the edge of the bucket.

                DIY-O-Sphereundefined 1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator
                  last edited by

                  Here's my wipe/prime line at back left of the bed.

                  ; called by M98 P"0:/sys/PrimeNozzle.g" after slicer temps are set
                  
                  G90 			; Absolute positioning
                  G1 X1 Y270 F6000 	; Move to front left corner
                  M400 			; clear movement buffer
                  M116 			; Wait for temps
                  G1 Z0.3 F100		; Move Z to prime height
                  G91 			; Relative positioning
                  M83 			; Relative extrusion
                  G1 X40 E10 F300 	; Prime nozzle
                  G10			; Retract
                  G1 Y-1 X1 F10000 	; Wipe nozzle
                  M400
                  

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 1
                  • DIY-O-Sphereundefined
                    DIY-O-Sphere @SteveYYC
                    last edited by DIY-O-Sphere

                    @SteveYYC said in Purge and wipe in start script:

                    move to snap the string

                    That is exacty what I do in my script.
                    It works perfect for PLA, good for ABS but should be improved for PETG.
                    The script is linked to the extruder, shurely it would be better to tweak and link it to the filament settings.

                    (UTC+1)

                    SteveYYCundefined 1 Reply Last reply Reply Quote 0
                    • SteveYYCundefined
                      SteveYYC @DIY-O-Sphere
                      last edited by

                      @DIY-O-Sphere I would like to have the purge tied to the filament eventually (especially for minimizing the purge volume) but I think I might try to do that with RRF3.0 variables and Conditional Meta Commands once they're working.

                      1 Reply Last reply Reply Quote 0
                      • 57buickundefined
                        57buick
                        last edited by

                        This is the script I use, it puts a little glob to prime extruder on front edge of bed before beginning print.

                        G32
                        G1 X30 Y30 F9000 ;Go to purge start position
                        G1 Z0.3 ;Drop to bed
                        G92 E0 ;Reset E position
                        G1 X50 E20 F2000 ;Draw purge line
                        G1 X200 F4200 ;Wipe out
                        G92 E0 ;Reset E position

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