Couture619
Posts: 2
Joined: Thu Mar 24, 2016 9:14 am

Change First Layers Jerk / Acceleration

Good morning everyone! I am searching a way to adjust the acceleration and jerk for the first ''X'' number of layers. Obviously to help adhesion of the first layer. I am using Repetier Firmware

// ************ Something like ************
If ( Z < 0.6)
{
Set jerk;
Set accel;
}
Else
{
Load values from EEPROM;
}
// **********************************

I am using Simplify3D and it has some speed reducing function (not accel) for the first layer but are very limited. My best solution so far is the manually add M201 M202 M207 in the Gcode.

I am also trying to learn how to make MXXX function within the firmware, this will probably work but I am not there yet. In Simplify3D there is an ‘’layer change script’’ option that can push G and M code at every layer change. One of my idea is to create a MXXX function that is call at every layer and if the height is below Y, it change the parameters.

Any solution?
thank you
CompoundCarl
Posts: 2005
Joined: Wed Aug 05, 2015 7:23 am

Re: Change First Layers Jerk / Acceleration

My best recommendation would have been to manually add the M201/202 commands in the gcode at whatever location you want. You can automate that process using the {REPLACE} post-processing commands that S3D already includes. For example: {REPLACE "; layer 5" "M201 X Y Z\n; layer 5"}
Couture619
Posts: 2
Joined: Thu Mar 24, 2016 9:14 am

Re: Change First Layers Jerk / Acceleration

:o Id never realized that the post-processing commands also change the .gcode file! :o

Thank you, it works!

Return to “General Discussion and Tips”