A Cura plugin that adds a Linear Advance Factor setting for use in start gcode snippets

fieldOfView, updated 🕥 2023-03-20 16:14:23

LinearAdvanceSettingPlugin

This plugin adds a setting named "Linear Advance Factor", and a number of feature-specific subsettings to the Material category in the Custom print setup of Cura. The plugin inserts M900 commands in the Gcode to set the Linear Advance Factor for Marlin-based printers (that have the LIN_ADVANCE feature enabled) or M572 to set the Pressure Advance Factor for RepRap based printers.

For more information about Linear Advance, see the Marlin documentation: http://marlinfw.org/docs/features/lin_advance.html For more information about Pressure Advance, see the Duet documentation: https://duet3d.dozuki.com/Wiki/Pressure_advance

Users of Klipper can add the following lines to their printer.cfg: [gcode_macro m900] default_parameter_K: 0 gcode: SET_PRESSURE_ADVANCE ADVANCE={K}

Issues

Culture aware plugin

opened on 2023-02-12 10:49:41 by GMagician

Question 1: Is there any chance you may add languages to this plugin? Question 2: If I try to realize what above in a PR (not sure I can do it), is there any chance it will be merged?

Thanks for your attention

Disable Linear Advance for travel moves

opened on 2022-06-19 20:32:25 by NilsRo

Hi.

I do not know if this should be better implemented in marlin but it would increase print speed if travel moves are not done with linear advance. This would increase gcode size but results in a faster print.

Enable Linear Advance cannot be set in an extruder profile

opened on 2022-06-06 07:37:52 by x40-Community

Hello, I installed Ultimaker Cura 5.0.0 and the Linear Advance Settings plugin version 3.6.0.

I entered the following into the material file: 1.43

I entered the following into the intent profile: material_linear_advance_enable = True

When I call up the corresponding profile in Cura (after Cura restart), Linear Advance is always deactivated. When activated, the values are visible.

Even if I put material_linear_advance_factor in the intent profile it doesn't work.

You always have to activate Linear Advance manually. Bug or am I doing something wrong?

Documentation for Klipper users is incorrect

opened on 2022-04-03 21:00:01 by psiberfunk

The documentation has an invalid GCODE M900 conversion macro that doesn't work on current versions of klipper (maybe past versions too?). Instead, you should update the readme to this valid alternative: ```

[gcode_macro M900] gcode: # Parameters {% set pa = params.K|float %} SET_PRESSURE_ADVANCE ADVANCE={pa} ```

Initial layer factor not showing up, if all the other factors are the same.

opened on 2021-08-31 03:02:20 by aLECChe

Thank you very much for this great plugin.

pic-001

I use this plugin mostly to disable LA for the first layer. But it seems if I only set the Initial Layer Linear Advance Factor to 0. Nothing would happen.

pic-002

There is only ONE line of M900 in the sliced G code file.

pic-003

But if I changed any one of the other Factors in Cura, it seems the problem is gone.

pic-004

There are multiple M900, with the M900 K0 just before the first layer.

I am wondering, is this a problem ? or did I miss something on the correct usage ?

Thank you once again!

Feature request: Allow setting K values per mesh

opened on 2020-12-03 02:47:01 by JohnTasto

The results from the Marlin calibration pattern don't seem to translate to real world prints, so I'd like to be able to calibrate K by printing an array of test objects, each with a different K.

Alternatively, if K could be adjusted in the 'ChangeAtZ' post processing plugin, one could create K towers similar to what Klipper provides for calibrating pressure advance. I've already made K towers for my printer by hand editing G Code, but other Marlin users might be interested in K arrays or K towers.

Releases

v3.6.1-DEV 2023-03-20 16:08:09

Commits

  • b9e8402: Update Readme to reflect new Klipper syntax (soxhi8) #37
  • 6393c7c: Set version to 3.6.1-DEV (fieldOfView)
  • 8b77412: Use the proper i18n catalog (fieldOfView)
  • 674aff1: Add translation update action (fieldOfView)
  • bc9dcf7: Make setting dicts actual definition files (fieldOfView)
  • 0cd70ac: Translation update (fieldOfView) #48
  • ac178b6: Add Italian translation (GMagician) #49
  • 45fc35b: Translate settings if a translation is available (fieldOfView)
  • ed696ed: Include translations in repository (fieldOfView)
  • 29d6771: Change parameter order (fieldOfView)
  • 975b1e6: Update code style (fieldOfView)
  • 225da94: Add dutch translation (fieldOfView)
  • ea45018: Translation update (fieldOfView) #50
  • 961cb6c: Make linear advance settable per extruder (fieldOfView)
  • 7a6fdea: Merge branch 'master' of https://github.com/fieldofview/LinearAdvanceSettingPlugin (fieldOfView)
  • bb7cde4: Add resolve function for linear advance enable (fieldOfView)

v3.6.0 2022-05-23 14:05:43

Changes

  • Add compatibility with Cura 5.0
  • Add a setting to enable/disable linear advance for a printer
  • Fix error when linear advance settings are not set for all extruders

NB: if you used the linear advance plugin before, and load in an existing profile or project, you may have to enable the "Enable Linear Advance" setting. This setting was added to make the linear advance setting more in line with other settings.

Commits

  • 410a395: Set version to 3.5.12-DEV (fieldOfView)
  • a0ca056: Fix error when linear advance settings are not set for all extruders (fieldOfView)
  • 9d951d6: Add global disable setting (fieldOfView)
  • 681ba70: Update copyright (fieldOfView)
  • 88e60e9: Mark compatible with Cura 5.0 (fieldOfView)
  • 6f8bcc5: Update copyrights (fieldOfView)
  • 409f506: Add tagged release workflow (fieldOfView)
  • 3652c46: Set version to 3.6.0-DEV (fieldOfView)
  • 391b86a: Set version to 3.6.0 (fieldOfView)

v3.6.0-DEV 2022-04-22 16:30:46

Commits

  • 410a395: Set version to 3.5.12-DEV (fieldOfView)
  • a0ca056: Fix error when linear advance settings are not set for all extruders (fieldOfView)
  • 9d951d6: Add global disable setting (fieldOfView)
  • 681ba70: Update copyright (fieldOfView)
  • 88e60e9: Mark compatible with Cura 5.0 (fieldOfView)
  • 6f8bcc5: Update copyrights (fieldOfView)
  • 409f506: Add tagged release workflow (fieldOfView)
  • 3652c46: Set version to 3.6.0-DEV (fieldOfView)

cura cura-plugin marlin-firmware