not1ofthepack
Posts: 3
Joined: Fri Dec 30, 2016 1:38 pm

Need help with Starting script

I am trying to figure out the code on the starting script. What I would like for it to do is after homing and just before starting to print. I would like for the hotend to raise up 10mm, extrude 3mm of filament, and then when lowering back down move to the center of the to begin printing from the 10mm up. I keep getting caught on the clips holding the glass in place.

Current code

Code: Select all

G21                     ;metric values
G90                     ;absolute positioning
M82                     ;set extruder to absolute mode
M107                    ;start with the fan off
G28 X0 Y0  ;move X/Y to min endstops
G28 Z0       ;move Z to min endstops
G1 Z15.0 F10500;move the platform down 15mm
G92 E0                  ; zero the extruded length
G1 F200 E0           ; extrude 3mm of feed stock
brian442
Posts: 1243
Joined: Mon Nov 28, 2016 5:35 am

Re: Need help with Starting script

Well, where are you stuck? What have you tried so far?
User avatar
kabali16
Posts: 159
Joined: Thu Jan 28, 2016 1:10 pm
Location: 4th Dimension

Re: Need help with Starting script

Code: Select all

G21                     ;metric values
G90                     ;absolute positioning
M82                     ;set extruder to absolute mode
G21 is default. G90 and M82 will automatically be generated by S3D

Code: Select all

G1 Z15.0 F10500;move the platform down 15mm
G92 E0                  ; zero the extruded length
G1 F200 E0           ; extrude 3mm of feed stock
You are telling the head to move away from the bed by 15 mm -> this is good
G1 F200 E0 => This literally extruder 0mm . Set this to E3 to extrude 3mm

At the end you can include G1 X 50 Y50 F5000 to make the head move closer to the center of the bed. In that way, when the nozzle comes down again it will go from inside to outside and potentially avoiding bed clips.
Kabali daww!!
Prusa i3 | Kossel
Simplify3D | Cura | Repetier Host | Octoprint

Return to “General Discussion and Tips”