Jump to content

Modify G Codes on Longer LK4 pro


Garythebloke

Recommended Posts

Posted · Modify G Codes on Longer LK4 pro

Hi, I've been trying to add to the post processing on Cura 5.2.1 in particular I just want to just change filament colour using the G Code mod 

Although i'm a fairly seasoned maker I don't have much tech knowledge. But it seems that anything I change in post processing has no effect on my prints. I am saving the file to an sd card and printing from that but seems like no changes are being made to the code. Do I have to be connected to the printer?

Appreciate some advice, thanks for reading.

Gary

  • Link to post
    Share on other sites

    Posted · Modify G Codes on Longer LK4 pro

    Hi @Garythebloke.

    The Post Processing alters the gcode that is written to the file.  The method it gets to the printer (SD, USB, Octoprint) doesn't matter.

    From the top:

    Go to "Extensions/Post Processing/Modify Gcode" and then "Add Script".

    Select either Filament Change or Pause at Height.  Either will work.

    Choose your settings.

    Slice and save the gcode.

    Open the Gcode file in a text editor.

    Do a search for the command used for your color change.  Filament Change uses M600 and Pause at Height is adjustable so you would need to remember the command you used in the Pause settings (often M0) .

     

     

  • Link to post
    Share on other sites

    Posted · Modify G Codes on Longer LK4 pro
    50 minutes ago, GregValiant said:

    Hi @Garythebloke.

    The Post Processing alters the gcode that is written to the file.  The method it gets to the printer (SD, USB, Octoprint) doesn't matter.

    From the top:

    Go to "Extensions/Post Processing/Modify Gcode" and then "Add Script".

    Select either Filament Change or Pause at Height.  Either will work.

    Choose your settings.

    Slice and save the gcode.

    Open the Gcode file in a text editor.

    Do a search for the command used for your color change.  Filament Change uses M600 and Pause at Height is adjustable so you would need to remember the command you used in the Pause settings (often M0) .

     

     

     

  • Link to post
    Share on other sites

    Posted · Modify G Codes on Longer LK4 pro

    Hi Greg, thanks for the reply. I'm more or less doing as you described. The only thing i'm not doing is to edit the G code. Why is this necessary? I thought the saved Gcode had the relevant changes based on the Cura post mod. I'll certainly have a look at what you've suggested though. I have tried though to just add other scripts like display time remaining, create thumbnail but nothing changes.

    Thanks again, i'll have another go later.

  • Link to post
    Share on other sites

    Posted · Modify G Codes on Longer LK4 pro

    It isn't necessary when things are working right.  If for some reason the commands aren't in the gcode then they aren't there for the printer to follow.

    So the first trouble-shooting step is to figure out which side the error is occurring:  on the Cura side or on the printer side.  That will dictate the second step.

  • 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

      • 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
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...