Welcome! Log In Create A New Profile

Advanced

Start code & end code

Posted by NelsonRap 
Start code & end code
April 30, 2011 11:57PM
I have the following start code and end code set and for some reason they always cause an error when trying to convert an .stl to Gcode

start
G21
G90
G92 X0 Y0 Z0 E0

end
G91
G1 F70
G1 Z7 F70
G1 F2300
G1 X-100 F2300
G90
M104 SO

Can anyone shed any light on the I'm using SF40

Thanks


__________________________________________________________________________
Experimenting in 3D in New Zealand
Re: Start code & end code
May 01, 2011 01:02AM
The GCode itself looks good to me. This could be a typo error, but I'm assuming you cut and paste this - the last line in your 'end' file where you set your extruder temp to switch off the heater, you have an 'O' and not a '0'. I'm not sure if this is what's causing your tool-chain to barf?

JB
Re: Start code & end code
May 01, 2011 01:40AM
Hmm I copied it from a forum so good spotting I changed it and now it works talk about senior moment smileys with beer time for one of these

Edited 1 time(s). Last edit at 05/01/2011 01:54AM by NelsonRap.


__________________________________________________________________________
Experimenting in 3D in New Zealand
Re: Start code & end code
May 02, 2011 10:37AM
Hi NelsonRap,
dangereous Endcode IMHO..

G91
G1 F70
G1 Z7 F70
G1 F2300
G1 X-100 F2300
G90
M104 S0


How can you be sure that You can go down to 7mm with your Z....
You might crash your extruder and x axis into the print...

I would remove the Z code and let the head move to some Parkposition only and turn off heater...

Suggestion:

G1 X0 Y130 F1000
M104 S0
Re: Start code & end code
May 02, 2011 04:04PM
I got the code off of another forum member and it seems to work ok. At the moment because I'm still learning I am at the machine while it prints so if it looks likely to crash I can stop it


__________________________________________________________________________
Experimenting in 3D in New Zealand
Re: Start code & end code
May 02, 2011 04:19PM
ahmetcemturan Wrote:
-------------------------------------------------------
> Hi NelsonRap,
> dangereous Endcode IMHO..
>
> G91
> G1 F70
> G1 Z7 F70
> G1 F2300

Not dangereous at all the G91 put it into relative mode and so the G1 Z7 is a relative move of +7.


Matt
Re: Start code & end code
May 05, 2011 07:33AM
I have also a trouble on the end file. I would like extruder to retract, I use a G92 E0 and following line G1 E-2 F2000 plus some other lines...
When I look at the Gcode generated byt skeinforge, my whole end file is attached there at the end of the gcode, but the lines G1 E-2 F2000 is not there!
Anybody knows why?
Thanks
Re: Start code & end code
May 05, 2011 07:58AM
Skeinforge automatically retracts after the end of a filament segment. So, why do you need to put a retract command in your end code?
Re: Start code & end code
May 05, 2011 11:52AM
Simply because at the end of the build, a big bubble drops before the head moves away from the part! I would like to increase that final retraction and that's why I tried to add it to the "end" file, but it is ignored during the generation of the gcode.
Any other way to increase that?
Re: Start code & end code
May 05, 2011 12:14PM
Looking through the code in Skeinforge where it adds in the ending code it doesn't really do anything specific other than grab the contents of the file and append it to the GCode. One thing to double check is that you have a at the end of the line in question. When it grabs the contents of the file it does the following modification:


textLines = text.replace('\r', '\n').replace('\n\n', '\n').split('\n')

Essentially replacing CR with LF, replacing any double LF then splitting lines on LF.

JB
Re: Start code & end code
May 05, 2011 12:16PM
sorry the ignorance, what's CR and LF? Is it a "space" character?
Re: Start code & end code
May 05, 2011 12:43PM
It's essentially hitting the key at the end of the line, but it can vary by OS slightly. The best way to be sure is to copy a line from the existing file, paste it, then edit the text to reflect your required GCode.

JB
emt
Re: Start code & end code
May 05, 2011 12:48PM
Hi Syncra

The work around for this is in this thread:-

[forums.reprap.org]


Regards

Ian
Re: Start code & end code
May 08, 2011 07:57PM
I wan to add a G code to tell my mendel to run the extruder before each print as I get better results that way. Can I just a add a M101 line to my start code?

My current start code is

G21; metric is good
G90; absolute positioning
G92 X0 Y0 Z0 E0; zero the extruded length axes
M109 S220;


__________________________________________________________________________
Experimenting in 3D in New Zealand
Re: Start code & end code
May 08, 2011 09:55PM
Try adding this:


G92 E0 ; reset extruder length
G1 X6 F1000 E20 ; move bit out of X0 while extruding
G92 E0 ; reset extruder length


JB
Re: Start code & end code
May 08, 2011 10:53PM
You should have preheated your extruder already before sending the G-code with JB's addition (or even without it) to make sure that the tip is hot enough. Otherwise, use M104 instead of M109 to set the temperature. I always preheat to be safe.
Re: Start code & end code
May 09, 2011 03:34AM
NelsoRap: have you tried Skeinforge 41's skirt function? Should be your solution...
Re: Start code & end code
May 09, 2011 03:51AM
Yes think I have it sorted now,

thanks


__________________________________________________________________________
Experimenting in 3D in New Zealand
Sorry, only registered users may post in this forum.

Click here to login