G code help needed...

All things related to the Rostock MAX 3D Printer, the worlds FIRST Delta kit!
Post Reply
User avatar
DavidF
Printmaster!
Posts: 779
Joined: Thu Aug 29, 2013 12:12 pm
Location: Delaware

G code help needed...

Post by DavidF »

Ok so I have been dooing good with printing and really havent hit any snags, that is until today... I was printing a part when suddenly the x carriage crashed into the bed :shock: I have never seen this happen before so I started thinking all kinds of things like the driver dropping out from ove heating or what not. So I changed the layer height from .1 mm to .2 mm and tried it again....Same thing!! I tracked the problem down to layer 25 by looking at it in cura layer by layer and sure enough it shows that there is a move way way off for no known reason. Now rather than trying to figure out a bug in the slicer program I would just like to edit the g code to correct it. But im not real sure what im looking at. With a little time Im sure I can figure it out on my own (deleting the layer comes to mind :evil: ) But I do need to learn how to do this...... Im also throwing this out there for others to learn from so they dont go chaseing ghosts thinking that there is a problem with the printer itself...
MOLD.gco
(732.78 KiB) Downloaded 326 times
http://www.youtube.com/user/aonemarine" onclick="window.open(this.href);return false;
Lost pla castings? see me
User avatar
DavidF
Printmaster!
Posts: 779
Joined: Thu Aug 29, 2013 12:12 pm
Location: Delaware

Re: G code help needed...

Post by DavidF »

I guess what I am looking for is someone to point out the line number that the error is in, Im just not seeing it in the g code.....
http://www.youtube.com/user/aonemarine" onclick="window.open(this.href);return false;
Lost pla castings? see me
User avatar
mhackney
ULTIMATE 3D JEDI
Posts: 5391
Joined: Mon Mar 26, 2012 4:15 pm
Location: MA, USA
Contact:

Re: G code help needed...

Post by mhackney »

Ok, this is odd. I don't see a crash into the bed but at the end of layer 24 I see:

Code: Select all

M83
G1 E-5 F6000
G1 X190 Y190 F9000
G1 Z15 F300
M0
G1 E5 F6000
G1 E-5 F6000
G1 X60.12 Y0.22 F9000
G1 E5 F6000
G1 F9000
M82
and then it continues at layer 25 at z=5.1 (I may be off by a layer or so but this corresponds with where you saw the problem.

This code puts the extruder into relative mode and reverses 5 mm. Then it moves to X190 Y190 fast and then to Z=15 or UP from where the layer was printing. I have no idea what its doing! Then it extrudes and retracts 5mm quickly and travels to X60.12 Y0.22. Finally it extrudes 5mm and puts the extruder into absolute mode.

Is there some odd geometry at this layer? It's odd that Cura would generate code like this for no reason.

But, it looks like you could just remove this entire block from M83 to M82 (inclusive) and things should be fine since the next move is to position to the next layer (z=5.1) to print.

Sublime Layers - my blog on Musings and Experiments in 3D Printing Technology and Art

Start Here:
A Strategy for Successful (and Great) Prints

Strategies for Resolving Print Artifacts

The Eclectic Angler
User avatar
DavidF
Printmaster!
Posts: 779
Joined: Thu Aug 29, 2013 12:12 pm
Location: Delaware

Re: G code help needed...

Post by DavidF »

that is where I think it starts filling in the bottom cavity of the mold, the walls in that area go to a 2' draft....interesting.....well now I know why i didnt see it in layer 25.... Thanks!!! Now Im going to go and have a closer look....
http://www.youtube.com/user/aonemarine" onclick="window.open(this.href);return false;
Lost pla castings? see me
User avatar
mhackney
ULTIMATE 3D JEDI
Posts: 5391
Joined: Mon Mar 26, 2012 4:15 pm
Location: MA, USA
Contact:

Re: G code help needed...

Post by mhackney »

Yes, I ran the code through a simulator and that is where the cavity begins. This is the simulator - free and on the web: http://gcode.ws

Sublime Layers - my blog on Musings and Experiments in 3D Printing Technology and Art

Start Here:
A Strategy for Successful (and Great) Prints

Strategies for Resolving Print Artifacts

The Eclectic Angler
User avatar
mhackney
ULTIMATE 3D JEDI
Posts: 5391
Joined: Mon Mar 26, 2012 4:15 pm
Location: MA, USA
Contact:

Re: G code help needed...

Post by mhackney »

Is it possible that you have an artifact in the STL file?

Sublime Layers - my blog on Musings and Experiments in 3D Printing Technology and Art

Start Here:
A Strategy for Successful (and Great) Prints

Strategies for Resolving Print Artifacts

The Eclectic Angler
User avatar
DavidF
Printmaster!
Posts: 779
Joined: Thu Aug 29, 2013 12:12 pm
Location: Delaware

Re: G code help needed...

Post by DavidF »

could be, maybe I should run it thru netfabb and check for errors???
http://www.youtube.com/user/aonemarine" onclick="window.open(this.href);return false;
Lost pla castings? see me
User avatar
mhackney
ULTIMATE 3D JEDI
Posts: 5391
Joined: Mon Mar 26, 2012 4:15 pm
Location: MA, USA
Contact:

Re: G code help needed...

Post by mhackney »

Wouldn't hurt. Something must be strange in the source file.

Sublime Layers - my blog on Musings and Experiments in 3D Printing Technology and Art

Start Here:
A Strategy for Successful (and Great) Prints

Strategies for Resolving Print Artifacts

The Eclectic Angler
bubbasnow
ULTIMATE 3D JEDI
Posts: 1061
Joined: Fri Aug 02, 2013 4:24 pm
Location: Dayton, WA

Re: G code help needed...

Post by bubbasnow »

how did you make the stl?
User avatar
DavidF
Printmaster!
Posts: 779
Joined: Thu Aug 29, 2013 12:12 pm
Location: Delaware

Re: G code help needed...

Post by DavidF »

bubbasnow wrote:how did you make the stl?
Cad modeled it in alibre, then exported it....

dropped it in net fabb, no errors, tried repair, same code....
http://www.youtube.com/user/aonemarine" onclick="window.open(this.href);return false;
Lost pla castings? see me
User avatar
DavidF
Printmaster!
Posts: 779
Joined: Thu Aug 29, 2013 12:12 pm
Location: Delaware

Re: G code help needed...

Post by DavidF »

re printing now with the block removed... fingers crossed.... funny thing is in the code it stated ( Type; custom ) dont think I have seen that before... but then again I havent been looking.....
http://www.youtube.com/user/aonemarine" onclick="window.open(this.href);return false;
Lost pla castings? see me
User avatar
mhackney
ULTIMATE 3D JEDI
Posts: 5391
Joined: Mon Mar 26, 2012 4:15 pm
Location: MA, USA
Contact:

Re: G code help needed...

Post by mhackney »

Try rotating it say 30° and slicing and see if this artifact occurs.

Sublime Layers - my blog on Musings and Experiments in 3D Printing Technology and Art

Start Here:
A Strategy for Successful (and Great) Prints

Strategies for Resolving Print Artifacts

The Eclectic Angler
User avatar
DavidF
Printmaster!
Posts: 779
Joined: Thu Aug 29, 2013 12:12 pm
Location: Delaware

Re: G code help needed...

Post by DavidF »

mhackney wrote:Try rotating it say 30° and slicing and see if this artifact occurs.

Yep, still there.....
http://www.youtube.com/user/aonemarine" onclick="window.open(this.href);return false;
Lost pla castings? see me
User avatar
DavidF
Printmaster!
Posts: 779
Joined: Thu Aug 29, 2013 12:12 pm
Location: Delaware

Re: G code help needed...

Post by DavidF »

http://www.youtube.com/user/aonemarine" onclick="window.open(this.href);return false;
Lost pla castings? see me
User avatar
DavidF
Printmaster!
Posts: 779
Joined: Thu Aug 29, 2013 12:12 pm
Location: Delaware

Re: G code help needed...

Post by DavidF »

Made it past the bad spot, Thanks MHackney..... now I will be able to decifer g code a little better and maybe be able to find the errors myself...well i hope any ways... :D
http://www.youtube.com/user/aonemarine" onclick="window.open(this.href);return false;
Lost pla castings? see me
User avatar
mhackney
ULTIMATE 3D JEDI
Posts: 5391
Joined: Mon Mar 26, 2012 4:15 pm
Location: MA, USA
Contact:

Re: G code help needed...

Post by mhackney »

Nice looking part! It's really bugging me though why Cura put that in the code. You should post that section on the Cura forum (there must be a Cura forum!)

cheers,
Michael

Sublime Layers - my blog on Musings and Experiments in 3D Printing Technology and Art

Start Here:
A Strategy for Successful (and Great) Prints

Strategies for Resolving Print Artifacts

The Eclectic Angler
User avatar
DavidF
Printmaster!
Posts: 779
Joined: Thu Aug 29, 2013 12:12 pm
Location: Delaware

Re: G code help needed...

Post by DavidF »

mhackney wrote:Nice looking part! It's really bugging me though why Cura put that in the code. You should post that section on the Cura forum (there must be a Cura forum!)

cheers,
Michael

Well I figured it out. It was a pause at height plug in that was causing the problem, got me on a few other prints when I wasnt looking for that line of code :oops: I finally got tired of it and deleted the file plug in :lol: back to running great and worry free again. Im not real computer savy so this is just what worked for me....
http://www.youtube.com/user/aonemarine" onclick="window.open(this.href);return false;
Lost pla castings? see me
User avatar
mhackney
ULTIMATE 3D JEDI
Posts: 5391
Joined: Mon Mar 26, 2012 4:15 pm
Location: MA, USA
Contact:

Re: G code help needed...

Post by mhackney »

Plug-ins are the bane of software companies. On one hand you want to provide the flexibility to allow 3rd party plug-ins, on the other they give you bad press when the plug-in fails.

Sublime Layers - my blog on Musings and Experiments in 3D Printing Technology and Art

Start Here:
A Strategy for Successful (and Great) Prints

Strategies for Resolving Print Artifacts

The Eclectic Angler
User avatar
MSURunner
Printmaster!
Posts: 200
Joined: Thu Jan 03, 2013 1:28 pm

Re: G code help needed...

Post by MSURunner »

mhackney wrote:Plug-ins are the bane of software companies. On one hand you want to provide the flexibility to allow 3rd party plug-ins, on the other they give you bad press when the plug-in fails.

That could also be related to Cura being centered around Marlin as opposed to Repetier.... I've used the pause at height on the Ultimaker without problems, but haven't tried it on the Rostock. I did try to utilize the pause feature for a little while on filament changing with Steve's Extruder and haven't touched it in a while because the coding worked differently in Repetier than Marlin...
Post Reply

Return to “Rostock MAX”