Using extrusion_multiplier in GCODE
 
Avisos
Vaciar todo

Using extrusion_multiplier in GCODE  

  RSS
Smutje
(@smutje)
Estimable Member
Using extrusion_multiplier in GCODE

Hi,

I use this code at layer change to have a higher flow on the first layer. Unfortunately PS does not fall back to the EM value given in the Filament settings and needs a M221 S... Code for following layers.

 

;BEFORE_LAYER_CHANGE
G92 E0
;[layer_z]
{if layer_num == 0}
M221 S110
{endif}
{if layer_num == 1}
M221 S90
{endif}

My idea is to use the extrusion_muliplier variable here, but this by factor 100 to small. So instead of S90, I get S0.9

Is there any chance to use the EM value in the filament settings here? It happens very often, that I changed the EM value, but the printer settings are still using S90.

 

kind regards

 

Respondido : 07/04/2021 1:01 pm
me gusta
FoxRun3D
(@foxrun3d)
Famed Member
RE: Using extrusion_multiplier in GCODE

Not sure I understand what you're trying to accomplish here but it seems the behavior you're seeing makes sense.

M221 S[percentage] expects percentage, eg M221 S90 for ninety percent. extrusion_multiplier is, well, a multiplier, so a value of 1 is 100%, 0.9 is 90 etc. 

I'm not a GCODE expert but I think M221 S{extrusion_multiplier * 100} might work (per https://help.prusa3d.com/en/article/macros_1775)

 
 
 

Formerly known on this forum as @fuchsr -- until all hell broke loose with the forum software...

Respondido : 07/04/2021 8:06 pm
me gusta
Smutje
(@smutje)
Estimable Member
Topic starter answered:
RE: Using extrusion_multiplier in GCODE

You are correct, that is the problem here. 

Thank you for the link, after a few test I found out, that the variable is an array, so this finally works for me

 

M221 S{extrusion_multiplier[0] * 100}

Respondido : 08/04/2021 5:03 am
me gusta
Compartir: