Adding auto leveling or tramming gcode to dual extruder
Re: Adding auto leveling or tramming gcode to dual extruder
Actually I was slightly wrong on the marlin. G28 homes one or more axis. G29 probes bed at multiple grid positions to get average and then sets height from that. If you could do similar in smoothie you just home x and y. Then probe z with the inductive sensor. You should not need the z stop with a probe. May require a lot more fiddling. Lol
Re: Adding auto leveling or tramming gcode to dual extruder
Technically, you shouldn't. The main problem is that you need to catch any possible instance of G-code coming from a print or the console that will run a "home Z" in the wrong place. The whole point of a homing command is that you do not suppose that the machine has any knowledge of what the current position is; the homing function will determine that. So at any time that you do "home Z", you cannot assume that X and Y are known. Without knowing the X and Y, you have no idea if the "home Z" is going to work or if it's going to crash the extruder into the bed.You should not need the z stop with a probe.
I'm getting more warm to the idea of implementing a "backup Z-min endstop" in the firmware. The old Z-min switch will force a stop even if the Z-probe isn't over the bed. Maybe that's all it needs to do; just prevent a wayward G-code from damaging the machine. Everything else can be taken care of by the Z-probe.
Definitely will require a lot more fiddling!May require a lot more fiddling. Lol
Re: Adding auto leveling or tramming gcode to dual extruder
That's why G28 and G29 are separate. I always run G28 to home x and y then G29. Machine knows where it is at.
Re: Adding auto leveling or tramming gcode to dual extruder
Sometimes I feel like I'm riding in two boats, one foot in each hoping that both boats are going the same place.
Someone has a wrong impression of what G28 does, unless G28 is used differently in the 3D printing world from its use in the CNC world.
Before I go off the deep end --- is G28 different for 3D printers?
Someone has a wrong impression of what G28 does, unless G28 is used differently in the 3D printing world from its use in the CNC world.
Before I go off the deep end --- is G28 different for 3D printers?
Re: Adding auto leveling or tramming gcode to dual extruder
That's part of what I'm trying to find out, including whether or not it's different for different 3D printers. At least for the Smoothieboard, G28 moves all axes to minimum until the endstops trigger. The order in which the axes are moved depends on an internal configuration setting. There are minimalist options: "G28 X0" just runs the X axis to the minimum endstop. But after that, depending on various internal settings, the position may be redefined as something other than zero; or it might move to an origin position (like the center) that is not home, or it may move to a back-off position so that the switches will turn off. So it's not very rigorously defined. On the other hand, I don't think that this code would appear in any slicer-generated code; it would only appear in a prefix g-code block that would be unique to a specific printer.lem wrote:is G28 different for 3D printers?
If it has been implemented differently from CNC machines, that would not surprise me at all.
Re: Adding auto leveling or tramming gcode to dual extruder
Ok, Tim.
Thanks....
Larry
Thanks....
Larry
Re: Adding auto leveling or tramming gcode to dual extruder
You're coming along nicely, Grasshopper: [evil grin]Tim wrote:If it has been implemented differently from CNC machines, that would not surprise me at all.
http://linuxcnc.org/docs/html/gcode/g-c ... d_position
Why the RepRap folks stirred homing into that mix, we'll never know.
LinuxCNC, at least, doesn't implement G29, which probably explains everything...
Re: Adding auto leveling or tramming gcode to dual extruder
In marlin at least ....according to their documentation G28 is simply listed as "home one or more axis" So when it is executed in my gcodes startup script it only homes x and y. Then G29 executes and that moves to center of bed to probe z and start the grid probing sequence. I have no cnc experience I simply look things up about marlin from their site and apply it to my needs for marlin to do the things I want for my printer.