Welcome! Log In Create A New Profile

Advanced

Marlin 2 prints on air (auto leveling issue?)

Posted by HADES 
Marlin 2 prints on air (auto leveling issue?)
June 27, 2019 10:59PM
Hi guys, I've installed marlin 2 on a azsmz mini and all seems to run OK, so just tried to do the first print but the print starts way above the bed surface, at z15, on the file I tried to print there is a line that cura ads:

G1 Z15.0 F6000 ;Move the platform down 15mm

so I remove it and tried again but now after the bed leveling routine the z axis leaves it at z5 so it start to print there.

This it's a segment of the gcode from the sd card:

;FLAVOR:Marlin
;TIME:5015
;Filament used: 5.8069m
;Layer height: 0.2
;MINX:54.348
;MINY:79.53
;MINZ:0.3
;MAXX:139.748
;MAXY:141.93
;MAXZ:19.9
;Generated with Cura_SteamEngine 4.1.0
M106 P1 S255 ;.TurnONFanHeatsinkHeater
M104 S200
M105
M109 S200
M82 ;absolute extrusion mode
G28 ;Home
G29 ;.AutoLeveling
G1 Z15.0 F6000 ;Move the platform down 15mm
;Prime the extruder
G92 E0
G1 F200 E3
G92 E0
G92 E0
G92 E0
G1 F1500 E-6.5
;LAYER_COUNT:99
;LAYER:0
M107
G0 F2571.4 X56.984 Y80.675 Z0.3
;TYPEconfused smileyKIRT
G1 F1500 E0

so there it's the line: G0 F2571.4 X56.984 Y80.675 Z0.3
which it tells marlin that has to move the z axis to z0.3 but marlin ignores it, x and y moves correctly so I imagine I failed to apply this guide to use an inductive sensor as auto leveling method.

Any of you guys can give me a clue what parameter to look for?, thanks.
Re: Marlin 2 prints on air (auto leveling issue?)
June 28, 2019 02:33AM
A bit more info, on repetier host If I run:

G1 X100Y100Z10

the printer only moves on the X axis but at a random position
if I run:

G1 X100Y100

the printer moves properly
same if I send:

G1 Z15

So the auto leveling must be messing the movement results drinking smiley


Ignore this, it seems that a space between each value it's required to be a valid command.

Still I don't know why the z position it's ignored while printing from the sdcard file.

Edited 1 time(s). Last edit at 06/28/2019 03:10AM by HADES.
Re: Marlin 2 prints on air (auto leveling issue?)
June 28, 2019 09:48AM
Try adding a G90 ;absolute postioning to you machine start code ,maybe it is only moving up 0.3 mm if in relative mode.
Re: Marlin 2 prints on air (auto leveling issue?)
June 28, 2019 05:00PM
Quote
obewan
Try adding a G90 ;absolute postioning to you machine start code ,maybe it is only moving up 0.3 mm if in relative mode.

Thanks obewan, I tried:

G90 ;abs
G28 ;Home
G29 ;.AutoLeveling
G1 Z15.0 F6000 ;Move the platform down 15mm
;Prime the extruder
G92 E0
G1 F200 E3
G92 E0
G92 E0
G92 E0
G1 F1500 E-6.5
;LAYER_COUNT:99
;LAYER:0
M107
G0 F2571.4 X56.984 Y80.675 Z0.3

but keeps ignoring the Z position, the print starts at Z15 (exact 15mm, according to the lcd) as the line that cura ads.
Out of curiosity I ran from repetier host the commands:

G28
G29
G1 Z15.0 F6000
G0 F2571.4 X56.984 Y80.675 Z0.3

And it's fine, the Z axis works properly. drinking smiley
Re: Marlin 2 prints on air (auto leveling issue?)
June 28, 2019 09:01PM
So something that I haven't realized until now it's that when executes the line for the gcode on the sdcard:

G0 F2571.4 X56.984 Y80.675 Z0.3

first moves to the X position after ends there then follows to the Y position and skips the Z, this command on the repetier host makes a movement that's simultaneous for the 3 axis.

I attached my config file, maybe I mess up something (probably the case).

Thanks (and sorry for keep posting).
Attachments:
open | download - Configuration.txt (78.7 KB)
Sorry, only registered users may post in this forum.

Click here to login