Close



Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Ending Gcode

  1. #1
    Engineer
    Join Date
    Dec 2014
    Location
    Canada
    Posts
    498

    Ending Gcode

    Im using simplify 3d
    when the print is done. the hotend just sits on top of the finished print.. still in contact
    and then cools down.. leaving itself connected to the top

    In Simplify 3d there is the ability to add custom gcode to the end of a file

    How do i tell it to just raise Z 10mm?

  2. #2
    Engineer-in-Training beerdart's Avatar
    Join Date
    Feb 2014
    Location
    CT
    Posts
    345
    ;End GCode
    M104 S0 ;extruder heater off
    M140 S0 ;heated bed heater off (if you have it)
    G91 ;relative positioning
    G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
    G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
    G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
    M84 ;steppers off
    G90 ;absolute positioning

  3. #3
    Thanks! That is extremely useful

  4. #4
    Engineer
    Join Date
    Dec 2014
    Location
    Canada
    Posts
    498
    Thank you!

  5. #5
    Staff Engineer printbus's Avatar
    Join Date
    May 2014
    Location
    Highlands Ranch, Colorado USA
    Posts
    1,437
    Add printbus on Thingiverse
    I don't know that Cura's F{travel_speed} will work with Simplify3D. For comparison, here's the end gcode from my Simplify3D. Note that my home position is at the front left, so I manually position X and Y to the right rear corner after a print. The M117 command is there just to restore the status message on the LCD back to what it was before the print started. The values following F are speeds in mm/minute.

    G91 ; Relative positioning
    G1 E-2 F900 ; Retract 2mm at 15mm/sec to reduce filament ooze
    G1 F120 Z+10 ; Raise off print 10 mm at 2mm/sec
    G90 ; Absolute positioning
    G1 F6000 X185 Y185 ;go to rear corner at 100mm/sec
    M104 S0 ; Turn off hot end heater
    M107 ; Turn off print cooler
    M140 S0 ; Disable heated bed
    G92 E0 ; Reset extruder position
    M84 ; Turn steppers off
    M117 Printbus i3v ready
    Last edited by printbus; 01-13-2015 at 06:19 PM.

  6. #6
    Engineer
    Join Date
    Dec 2014
    Location
    Canada
    Posts
    498
    how do i turn off both hotends?

  7. #7
    Engineer-in-Training beerdart's Avatar
    Join Date
    Feb 2014
    Location
    CT
    Posts
    345
    You need two end codes

    end.gcode and end2.gcode


    ;End GCode
    M104 S0 ;extruder heater off
    M140 S0 ;heated bed heater off (if you have it)
    G91 ;relative positioning
    G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
    G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
    G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
    M84 ;steppers off
    G90 ;absolute positioning

  8. #8
    Engineer
    Join Date
    Dec 2014
    Location
    Canada
    Posts
    498
    Quote Originally Posted by beerdart View Post
    You need two end codes

    end.gcode and end2.gcode
    Sorry I dont really get what you mean, how do i apply the 2nd one?

  9. #9
    Engineer-in-Training beerdart's Avatar
    Join Date
    Feb 2014
    Location
    CT
    Posts
    345
    What slicer?

  10. #10
    Engineer
    Join Date
    Dec 2014
    Location
    Canada
    Posts
    498
    Simplify3d

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •