Welcome! Log In Create A New Profile

Advanced

Trying to get rid of extruder codes M101,103 and 108

Posted by stefanst 
Trying to get rid of extruder codes M101,103 and 108
May 16, 2011 07:01PM
I'm using Skeinforge 41, Repsnapper and TeaCup FW. So I'm trying to go 5D all the way. Skeinforge seems to insist on putting in all those Extruder Codes that according to the WIKI are deprecated anyway. RepRap M Code Reference
Here's some example code:
G90
G21
M113 S0.0
M108 S20.0
M108 S16.0
G1 X80.36 Y80.36 Z0.2 F60.0
G1 F798.0
G1 E4.0
G1 F60.0
M101
G1 X119.64 Y80.36 Z0.2 F840.0 E1.829
G1 X119.64 Y119.64 Z0.2 F840.0 E1.829
G1 X80.36 Y119.64 Z0.2 F840.0 E1.829
G1 X80.36 Y80.36 Z0.2 F840.0 E1.829
G1 F798.0
G1 E-2.0
G1 F840.0
M103
M108 S20.0
M108 S16.0
G1 X80.36 Y80.36 Z0.6 F30.0

How to get rid of that? Am I missing some settings in SF?

Thanks!

ST

Edited 2 time(s). Last edit at 05/16/2011 07:24PM by stefanst.
Re: Trying to get rid of extruder codes M101,103 and 108
May 16, 2011 09:19PM
I commented them out in the speed.py

I haven't had any issues yet, but I have been informed that without them other scripts may not work correct because they rely on them as reference.


FFF Settings Calculator Gcode post processors Geometric Object Deposition Tool Blog
Tantillus.org Mini Printable Lathe How NOT to install a Pololu driver
Re: Trying to get rid of extruder codes M101,103 and 108
May 16, 2011 11:12PM
There is a replace.csv file in the skeinforge/alterations directory.

Save one of the sample replace .csv files as "replace.csv."

Open the file, type the code(s) you want to eliminate (one code per line) and it will edit them all out of the g-code.

Also, make sure skeinforge has replace.csv under Export-subheading "name of replace file" within the skeinforge gui.
Re: Trying to get rid of extruder codes M101,103 and 108
May 16, 2011 11:43PM
Andrew Diehl Wrote:
-------------------------------------------------------
> There is a replace.csv file in the
> skeinforge/alterations directory.
>
> Save one of the sample replace .csv files as
> "replace.csv."
>
> Open the file, type the code(s) you want to
> eliminate (one code per line) and it will edit
> them all out of the g-code.
>
> Also, make sure skeinforge has replace.csv under
> Export-subheading "name of replace file" within
> the skeinforge gui.


This does remove the M code but leaves the S code after them.

So instead of
M108 S20.0
you end up with
S20.0


FFF Settings Calculator Gcode post processors Geometric Object Deposition Tool Blog
Tantillus.org Mini Printable Lathe How NOT to install a Pololu driver
Re: Trying to get rid of extruder codes M101,103 and 108
May 17, 2011 12:54AM
Try putting this in the replace file:

M108;M108

This will comment out the offending line. Repsnapper won't send the comments to the printer so won't waste bandwidth.

JB
Re: Trying to get rid of extruder codes M101,103 and 108
May 17, 2011 05:46PM
Getting there, but not quite. When I just put this in the replace.csv:
M108
Instead of
M108 s20.0
I get
 s20.0
as predicted.

When I try this:
Quote

Try putting this in the replace file:

M108;M108
Nothing happens. Actually whatever I can think of putting after the M108, including semi-colons, commas, spaces, I only ever get the original line back. Looks like I'm missing some key element.
Re: Trying to get rid of extruder codes M101,103 and 108
May 17, 2011 06:00PM
If you look for speed.py in your /skeinforge_application/skeinforge_plugins/craft_plugins/

Then search for the M108

You will find

self.distanceFeedRate.addLine('M108 S' + flowRateString )

comment it out by adding quotes

"self.distanceFeedRate.addLine('M108 S' + flowRateString )"


FFF Settings Calculator Gcode post processors Geometric Object Deposition Tool Blog
Tantillus.org Mini Printable Lathe How NOT to install a Pololu driver
Re: Trying to get rid of extruder codes M101,103 and 108
May 17, 2011 06:01PM
figured it out! there needs to be a "tab" in between. so this:
M108"tab";M108

puts semi-colons on front of the M commands. That should do it!

ST

Edited 1 time(s). Last edit at 05/17/2011 06:02PM by stefanst.
Re: Trying to get rid of extruder codes M101,103 and 108
May 17, 2011 07:26PM
Correct, you need a tab. I put it between symbols for emphasis, but I guess the forum interpreted the symbols as something else and removed the text between them!

JB
Re: Trying to get rid of extruder codes M101,103 and 108
May 18, 2011 03:24AM
Interesting...

Any news on how it works? Does it bring any benefit to the building process?
Re: Trying to get rid of extruder codes M101,103 and 108
May 18, 2011 01:35PM
syncra Wrote:
-------------------------------------------------------
> Interesting...
>
> Any news on how it works? Does it bring any
> benefit to the building process?

Can't tell just yet. I thought I could just feed the gcode using Repsnapper, but that seems to add some code of its own which results in hanging prints. I can't make it past line 5. Even though Repsnapper works beautifully for sending single lines and my Reprap reacts as expected.

Now I started experimenting with RepG, using the version 0245 which was forked for Teacup, but I'm having some problems with that too. It seems to also add bits of code beyond what Skeinforge does. In addition it uses SF 35 or 39. I would prefer 40 or 41 which have the newer calculation for length of feed-stock instead of length of extrudate.

I like the output I can generate with SF41, so all I really want is something to feed that output to my controller without modification....

ST
Re: Trying to get rid of extruder codes M101,103 and 108
May 18, 2011 03:31PM
What mod's are you seeing from RepSnapper? I use it all the time with SF40 generated GCode with no issues.

If you have the temperature detection enabled on the print tabe it will slip M105's in every 2-seconds, which you don't want (see here), but just hit the 'Enable' button to switch that off.

JB


--
Check out my blog: AdventuresIn3-DPrinting
Re: Trying to get rid of extruder codes M101,103 and 108
May 18, 2011 07:51PM
I haven't had great success using RepG or Repsnapper to send code either. So I just use GTKterm to send the file to the machine.

I use Teacup with Xon/Xoff enabled.

Before using it I could only get through fifty percent of my builds without have to recover in the middle. Since using it I have printed an entire prusa and a pile of other art objects without so much as a pause.


FFF Settings Calculator Gcode post processors Geometric Object Deposition Tool Blog
Tantillus.org Mini Printable Lathe How NOT to install a Pololu driver
Re: Trying to get rid of extruder codes M101,103 and 108
May 19, 2011 06:29PM
YES!

Switching off the M105 did the trick, even though I had to click on error after some of the first steps, so it would go to the next step, but I can deal with that.
Thank you very much everybody. I just finished my first print and it was successful! Right away! OK- it was just a 40mm hollow calibration cube, but still. I'm sooooo proud right now.It even came out 40mm x 40mm x38mm.
Now to figure out how to get rid of blobbing and other little troubles, and I'm ready to print more complex stuff.

ST
Re: Trying to get rid of extruder codes M101,103 and 108
June 21, 2011 10:34PM
I'm running skeinforge 41. My problem is the exact op site of the above, there are no E codes. When I compare repsnapper generated codes, it includes E codes, skeinforge does not include these. With skeinforge, the extruder does not extrude. With repsnapper, it extrudes.

Any ideas on how to get the E codes included?
Re: Trying to get rid of extruder codes M101,103 and 108
June 21, 2011 10:50PM
You have to activate dimension under the dimension tab, and usually use relative extrusion distance.
Re: Trying to get rid of extruder codes M101,103 and 108
June 22, 2011 12:06AM
Thanks for the tip. I turned on Active Dimension - Relative Extrusion Distance. I still get g-code like the following (example):
G21
G90
T0
G92 E0
M104 S210.0

M101
G1 X-25.92 Y-23.01 Z1.0 F479.5
G1 X-25.92 Y-22.91 Z1.0 F799.167
G1 X-25.92 Y-22.81 Z1.0 F959.0

The E codes that repsnapper creates are still missing (example)
G21
G90
T0
G92 E0
M104 S210.0

G1 X49.65 E39.3 F2300
G1 X49.65 Y49.65 E78.6 F2300
G1 X10.35 E117.9 F2300

What am I missing?
Re: Trying to get rid of extruder codes M101,103 and 108
June 22, 2011 01:01AM
I use Absolute Extrusion Distance but as long as it is turned on (checkmark) it should generate the E codes.


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Re: Trying to get rid of extruder codes M101,103 and 108
June 22, 2011 09:10AM
Any other ideas? Everything is working except that I am not seeing any codes like "E117.9" which I assume is what makes the extruder turn.

What's the M101 code supposed to do? I know it means extruder forward, but is it actually supposed to start turning the extruder, then all the G1 plots below are completed until M103 is sent?

Edited 1 time(s). Last edit at 06/22/2011 09:14AM by sxt173.
Re: Trying to get rid of extruder codes M101,103 and 108
June 22, 2011 10:23AM
Attaching a zip of your .skeinforge profile may help us narrow it down.

I can't think of any reason it wouldn't generate E codes if dimension is activated.
Re: Trying to get rid of extruder codes M101,103 and 108
June 22, 2011 11:26AM
Here is the zipped Profiles folder. I appreciate the help!

Edit: Solution. I just deleted the contents of my profiles folder and restarted Skeinforge 41, turned on Dimensions, didn't change anything else and did a quick craft for a 40mm cude, the E codes show up!! Yay. I will go through setting by setting to see what broke it to begin with when I have time.

Edited 1 time(s). Last edit at 06/22/2011 11:57AM by sxt173.
Attachments:
open | download - profiles.zip (24.7 KB)
Re: Trying to get rid of extruder codes M101,103 and 108
June 22, 2011 12:55PM
Just went through the settings you sent. Your problem was "activate speed" and "add flow rate" were unchecked under the speed tab.
Sorry, only registered users may post in this forum.

Click here to login