Notifications
Clear all

New Kfactor gcode?  

  RSS
arcwick08
(@arcwick08)
Active Member
New Kfactor gcode?

Hey folks - trying to update my kfactor for an Atomic PETG filament on my MK3S. Going off this KB: https://www.help.prusa3d.com/en/article/linear-advance_2252

However, not 100% clear on which section of the gcode in my filament's profile to update:


M900 K{if printer_notes=~/.*PRINTER_MODEL_MINI.*/ and nozzle_diameter[0]==0.6}0.12{elsif printer_notes=~/.*PRINTER_MODEL_MINI.*/}0.2{elsif nozzle_diameter[0]==0.6}0.04{else}0.06{endif} ; Filament gcode LA 1.5
{if printer_notes=~/.*PRINTER_MODEL_MINI.*/};{elsif printer_notes=~/.*PRINTER_HAS_BOWDEN.*/}M900 K200{elsif nozzle_diameter[0]==0.6}M900 K18{else}M900 K30{endif} ; Filament gcode LA 1.0

Any idea which of those to update for a MK3S and a .4 nozel? Or have a KB explaining the syntax for this code?

Thanks!

Best Answer by JoanTabb:

Is your printer running LA1.0, or LA1.5   (Later firmwares' are LA1.5)

I think this is how you decode it! :-)

M900 K{if printer_notes=~/.*PRINTER_MODEL_MINI.*/ and nozzle_diameter[0]==0.6}0.12 (Not a Mini) {elsif printer_notes=~/.*PRINTER_MODEL_MINI.*/}0.2(Not a Mini) {elsif nozzle_diameter[0]==0.6}0.04 Not 0.6mm nozzle {else}0.06{endif} ; Filament gcode LA 1.5 Guess this is your setting for a Mk3S on LA1.5
{if printer_notes=~/.*PRINTER_MODEL_MINI.*/};(Not a Mini) {elsif printer_notes=~/.*PRINTER_HAS_BOWDEN.*/}M900 K200 Mk3 doesn't have Bowden {elsif nozzle_diameter[0]==0.6}M900 K18 Not 0.6mm nozzle {else}M900 K30{endif} ; Filament gcode LA 1.0 Guess this is your setting for a Mk3S on LA1.0

But I could be wrong,....   
regards Joan

Opublikowany : 21/02/2021 1:16 pm
JoanTabb
(@joantabb)
Veteran Member Moderator
RE: New Kfactor gcode?

Is your printer running LA1.0, or LA1.5   (Later firmwares' are LA1.5)

I think this is how you decode it! :-)

M900 K{if printer_notes=~/.*PRINTER_MODEL_MINI.*/ and nozzle_diameter[0]==0.6}0.12 (Not a Mini) {elsif printer_notes=~/.*PRINTER_MODEL_MINI.*/}0.2(Not a Mini) {elsif nozzle_diameter[0]==0.6}0.04 Not 0.6mm nozzle {else}0.06{endif} ; Filament gcode LA 1.5 Guess this is your setting for a Mk3S on LA1.5
{if printer_notes=~/.*PRINTER_MODEL_MINI.*/};(Not a Mini) {elsif printer_notes=~/.*PRINTER_HAS_BOWDEN.*/}M900 K200 Mk3 doesn't have Bowden {elsif nozzle_diameter[0]==0.6}M900 K18 Not 0.6mm nozzle {else}M900 K30{endif} ; Filament gcode LA 1.0 Guess this is your setting for a Mk3S on LA1.0

But I could be wrong,....   
regards Joan

I try to make safe suggestions,You should understand the context and ensure you are happy that they are safe before attempting to apply my suggestions, what you do, is YOUR responsibility. Location Halifax UK

Opublikowany : 21/02/2021 1:39 pm
arcwick08 polubić
arcwick08
(@arcwick08)
Active Member
Topic starter answered:
RE: New Kfactor gcode?

Thank you Joan! I reached the same conclusion... we can't both be wrong?? :-O 

Opublikowany : 21/02/2021 2:30 pm
JoanTabb
(@joantabb)
Veteran Member Moderator
RE: New Kfactor gcode?

Great Minds think Alike,
Fools seldom differ!

Lol!

Joan

I try to make safe suggestions,You should understand the context and ensure you are happy that they are safe before attempting to apply my suggestions, what you do, is YOUR responsibility. Location Halifax UK

Opublikowany : 21/02/2021 2:33 pm
arcwick08 polubić
bobstro
(@bobstro)
Illustrious Member
RE: New Kfactor gcode?

Prusa is trying to develop and maintain a single profile that can be used across multiple printers, nozzle sizes, and with the MMU2, so they're trying to do all of this witht monstrous conditional checks. There's no need for us to maintain that in our custom profiles, and simpler is easier to troubleshoot.

If you are running firmware v3.9 or later, use Linear Advance 1.5 values. Older firmware uses only Linear Advance 1.0 values. There is a conversion routine in v3.9 that will recognize and scale a LA1.0 value (>10) if specified without a LA1.5 value also specified. However, the conversion routine has had mixed results. Since I'm only using a Mk3 with firmware v3.9 or later, I simply eliminate the complex conditional test and specify the LA1.5 value directly in my filament start gcode:

M900 K0.04 ; set linear advance

 

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Opublikowany : 21/02/2021 5:25 pm
arcwick08
(@arcwick08)
Active Member
Topic starter answered:
RE: New Kfactor gcode?

@bobstro

This is awesome, thanks bobstro. I already use per-printer filament profiles for PETG, so this is a much easier solution! Cheers!

Opublikowany : 21/02/2021 6:46 pm
JoanTabb
(@joantabb)
Veteran Member Moderator
RE: New Kfactor gcode?

@arcwick08

Being a dinosaur... 
I have
A Mk2 MMUv1 Printer  LA1.0 with Bowden Feed
A Mk3 Standard printer currently on loan, with 3.8.x firmware... LA1.0
A Mk3 with MMU2  with 3.9.x Firmware   LA 1.5
and  a Mk3 with Palette3S  and 3.9.x Firmware   the Palette Slicer Canvas, doesn't natively handle Linear advance, 
when I use it without the Palette, I use  LA1.5....

lots to juggle with!

I try to make safe suggestions,You should understand the context and ensure you are happy that they are safe before attempting to apply my suggestions, what you do, is YOUR responsibility. Location Halifax UK

Opublikowany : 21/02/2021 10:44 pm
Share: