Filament specific Z offset  

  RSS
GoodyGizmos
(@goodygizmos)
Active Member

Using the same steel sheet, I find various brands and spools sometimes require a Z offset. I'd like to set this in the Filament profile (I know I can do this in the Printer Settings). It seems the only way to do this is through Filament Custom G-code.

Has anyone does this and can you share your G-code?

Thank you

Posted : 06/03/2021 9:05 pm
EricLMcCormick
(@ericlmccormick)
New Member

This can technically be done by adding this code to the your custom gcode field

G1 Z0.2 F500 ; Go to the level of 0.2 mm + your paper thickness
G92 Z0       ; This redefines the zero Z level

But this really should be something built in. Beyond various brands, various materials need offsets. You wouldn't want to print PETG at the same height as PLA.

 

Posted : 07/03/2021 2:17 pm
GoodyGizmos
(@goodygizmos)
Active Member

@ericlmccormick

I saw that same example somewhere in researching the proper G-code to insert in the Filament section. It seems like a G1 would not affect the offset for the entire print. Am I wrong? Either way, in the example, is the value supposed to be the correction (+ = +) or current position for the printer to correct from (+ = -)?

Posted : 07/03/2021 2:23 pm
EricLMcCormick
(@ericlmccormick)
New Member

@goodygizmos

The G1 command tells the nozzle to move up (+ = +) and then the G92 resets that new position as the new home. If you do baby stepping to figure out what height you need, just put that number in and the next time you run your file, you should be all set. 

Before switching to a Duet board, I used this type of code in my start gcode to fix my X, Y and Z offsets as it was a pain to fix it in firmware on the cheap Zonestar board.

Posted : 07/03/2021 2:45 pm
Share:

Please Login or Register