Page 1 of 4

Adding auto leveling or tramming gcode to dual extruder

Posted: Thu Aug 06, 2015 3:02 pm
by Ronnien55
Does anyone know what lines have to be added to the lines of code need to be added to the Marlin code for the M2 dual extruder. I know that i must add the auto bed leveling feature under mechanical, however there are several different ways and lies of code. I am currently adding a proximity switch to my M2 just need to make sure i have the firmware right.

Re: Adding auto leveling or tramming gcode to dual extruder

Posted: Thu Aug 06, 2015 4:54 pm
by insta
Dual extrusion and auto-bed tramming are mutually incompatible, unfortunately. Some types of bed levelling are (where the levelling screws are automatically adjusted), but not the kind with the sense probe.

Sorry :?

Re: Adding auto leveling or tramming gcode to dual extruder

Posted: Thu Aug 06, 2015 4:54 pm
by Tim
Sorry I'm punting on your question, because I've installed a Smoothieboard controller on my M2 and no longer use the Marlin code. Once I get my own z-probe installed, I can probably answer that question better, but it may be a week or more before that happens.

But---you seem to be the first person to add a z-probe to the dual extruder. Where did you put it?

Re: Adding auto leveling or tramming gcode to dual extruder

Posted: Thu Aug 06, 2015 5:00 pm
by Tim
insta wrote:Dual extrusion and auto-bed tramming are mutually incompatible, unfortunately.
I wouldn't necessarily say that. You have to be fairly well-leveled to begin with, because if your bed is too far out of level or your two extruders are out of level with each other, then one or the other of them is going to plow into the print surface while the other one is extruding. Otherwise, there's no reason why you can't do it.

Also, you shouldn't dismiss the fact that most people with dual extruders use only a single extruder most of the time, with the 2nd extruder pulled up a bit to keep it out of the way, and there's absolutely no reason you shouldn't be able to use a z-probe with that setup.

The main problem with the dual extruders is that they're large and it's not easy to find a good place to put the z-probe.

Re: Adding auto leveling or tramming gcode to dual extruder

Posted: Thu Aug 06, 2015 5:01 pm
by PcS
If you look at the beta z probe thread the marlin code I attached will work for you. The only issue I see is which extruder to use for your offset. Although on the m2 one is left and one it right I personally feel if you used the dimension directly between the two it would get you close enough.Or add different offsets for the left and right maybe? I don't have a dual setup or I would test it.

Re: Adding auto leveling or tramming gcode to dual extruder

Posted: Thu Aug 06, 2015 5:06 pm
by PcS
Tim the z probe could be put anywhere you want or have room. Then you measure the offset and plug that in and you should be good . You may not be able to probe all your bed edges but it really does not matter. With your probe grid size set and bed dimensions in the code it can calculate the flat plane.

Re: Adding auto leveling or tramming gcode to dual extruder

Posted: Thu Aug 06, 2015 7:38 pm
by Ronnien55
Tim wrote:Sorry I'm punting on your question, because I've installed a Smoothieboard controller on my M2 and no longer use the Marlin code. Once I get my own z-probe installed, I can probably answer that question better, but it may be a week or more before that happens.

But---you seem to be the first person to add a z-probe to the dual extruder. Where did you put it?
Just need the code to be right.

Re: Adding auto leveling or tramming gcode to dual extruder

Posted: Thu Aug 06, 2015 7:38 pm
by Ronnien55
PcS wrote:If you look at the beta z probe thread the marlin code I attached will work for you. The only issue I see is which extruder to use for your offset. Although on the m2 one is left and one it right I personally feel if you used the dimension directly between the two it would get you close enough.Or add different offsets for the left and right maybe? I don't have a dual setup or I would test it.
Did not see the attachment

Re: Adding auto leveling or tramming gcode to dual extruder

Posted: Thu Aug 06, 2015 10:34 pm
by PcS
viewtopic.php?f=10&t=2547&start=40

Halfway down the page.

Re: Adding auto leveling or tramming gcode to dual extruder

Posted: Thu Aug 06, 2015 10:43 pm
by Tim
here is where
That's where I was going to put it, but then you haven't attempted to put the fan back on, which will require a substantial redesign of the fan duct (or not so substantial---I came up with something quick where I just imported the fan duct STL into openSCAD and cut a bore through it. Haven't tested it yet to see if it clears everything).

Let me know if there are any heat transfer issues with that setup.