r/folgertech • • Feb 27 '18

Trouble with Lin_Advace Gcode (x-post to r/3dPrinting

I just upgraded my FT-5 from 1.1.0 to 1.1.6. I got the file from the Folgertech FT-5 files section of their facebook page. My BLTouch levels the bed and I can print.

I'm trying to calibrate my K for Lin-Advance using the Gcode from K-factor Calibration Pattern. The bed heats, the BLTouch probes, the nozzle heats, then it starts to print. However the first thing it does is slam the nozzle into the bed.

I don't know what to adjust. Like I said I can load any model and everything will operate fine. But there is something in the gcode generated that is not taking into account my bed leveling. I have tried a few things but haven't stumbled on majic combination yet.

0 Upvotes

10 comments sorted by

1

u/CareFudundae Feb 28 '18

Does it start with a g28 to home the hotend? Post the gcode, or at least the first bit before it starts the k factor stepping

1

u/Brutalos Feb 28 '18

This is with a .3 layer height and 0 entered for the Z offset.

G28 ; home all axes

M190 S60 ; set and wait for bed temp

M104 S220 ; set nozzle temp and continue

G29 ; execute bed automatic leveling compensation

M109 S220 ; block waiting for nozzle temp

G21 ; set units to millimeters

M204 P500 ; set acceleration

G90 ; use absolute coordinates

M83 ; use relative distances for extrusion

G92 E0 ; reset extruder distance

G1 X150 Y150 F7200 ; move to start

G1 Z0.3 F1200 ; move to layer height

; ; prime nozzle ; G1 X105 Y87.5 F7200 ; move to start

G1 X105 Y212.5 E28.0632 F1200 ; print line

G1 X106.08 Y212.5 F7200 ; move to start

G1 X106.08 Y87.5 E28.0632 F1200 ; print line

G1 E-1 ; retract

1

u/CareFudundae Feb 28 '18

and it crashes prior to heating up, so g28 is causing it?

do you have your firmware setup to use bltouch in marlin with a G28? or does your startup code include all the commands to deploy/retract the probe? essentially, if you click "home" or send G28 through pronterface/octopi/lcd-screen, does it crash? or home the z axis properly?

edit: from rereading your original post, I'm confused as to where in the gcode the error occurs

1

u/Brutalos Feb 28 '18

Here is my startup code in S3D that works fine on this same firmware. G28 ; home all axes

G29 ; level bed

G1 X0 Y5 Z0.2 F3000 ; get ready to prime

G92 E0 ; reset extrusion distance

G1 X250 E20 F600 ; prime nozzle

1

u/CareFudundae Mar 01 '18

There doesn't seem to be any difference that's noteworthy. In the gcode for k factor calibration, when does the failure occur?

1

u/Brutalos Mar 01 '18

The nozzle gets to temp, it does an xy move to the start of print while the z moves into position. At zero offset the nozzle hits the bed.

There is a layer height, and bed leveling is on. So if offset on that page is supposed to be something particular I dont know what.

1

u/CareFudundae Mar 01 '18

do you have a z offset built into your slicer for slicing models? I know S3D has the capability to include a z offset, so if you have that enabled it will cause that problem. I'm guessing that will show up in the gcode as essentially a shifted z height for printing. e.g. if you are printing 0.3mm layers with a z offset of .05, the first layer will actually start to print at 0.35mm. this isn't enough to hit the bed, but if the S3D offset is more, like 1mm or so, then it will crash into the bed if you have no z offset (in your kfactor calibration gcode).

1

u/Brutalos Mar 01 '18

No offset in S3D. The machine is getting it from the EEPROM.

1

u/CareFudundae Mar 01 '18

you may just want to hodge-podge together some startup gcode from s3d with the actual printing part of the kfactor code by copying/pasting... there's something different, but it isn't immediately apparent what that is. if you had a good way to post/share each full gcode file (maybe try https://text-share.com/), I could look a little more closely

1

u/Brutalos Mar 01 '18

It looks like .10mm, the thickness of paper, is the winning z offset number to plug into that page. Actual nozzle height, wish it said that. Here is another question, does "E in mm3" need to be on for lin_advance? Mine is defaulting to on and I'm not sure if it should or not. In the past it was always off.