Jump to content

Replacing Acceleration & Jerk G-code


l2n_pro

Recommended Posts

Posted · Replacing Acceleration & Jerk G-code

Hi all,

Cura uses M204 to set acceleration and M205 to set jerk. My printer uses M8008 for acceleration and M8007 for jerk control. At the moment, I have to manually set global jerk and speed in the machine start g-code. Is there a way to have cura use the correct g-code commands for speed and acceleration settings in a cura profile?

  • Link to post
    Share on other sites

    Posted · Replacing Acceleration & Jerk G-code

    There is a post processor called "Search and Replace".  You would need two instances.

     

    Search = M204

    Replace = M8008

    and

    Search = M205

    Replace = M8007

     

    Those will work as long as the units are the same and the parameters are the same.  Cura will use the S parameter for Accel.  Other parameters for Accel would be X and Y for each axis or P and T for print and travel.  You might have to get fancy with the regular expressions if there are numbers between the parameters.

    Jerk is by axis so it always uses X Y parameters.

    I think Search and Replace will start at the first layer (raft or model) but you'll need to check to make sure.

     

    Search = M204 S(\d*)

    Replace = M8008 P\1 T\1

    Use Regular Expressions = checked

    would go from

    M204 S1000

    to

    M8008 P1000 T1000

     

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
    ×
    ×
    • Create New...