Jump to content
Ultimaker Community of 3D Printing Experts

Changing Cura generated start code


Recommended Posts

Posted · Changing Cura generated start code

* Tick the "use regular expressions" box (so you can use "\n" for a new line)

* Search ";LAYER:"

* Replace ";whatever gcode you want goes here\n;LAYER:"

 

Because you only have a single line to enter the replace code, use "\n" instead of a return

  • Thanks 1
Link to post
Share on other sites
Posted · Changing Cura generated start code

so to make sure the replace code will be ";G90; Absolute Positioning\n;G1 F9000 X220 Y215; Quick Move\n;G1 F1000 X232; Precission Poke\n;G4 P700; Hold it hold it\n;G1 F9000 X220; Quick Move:"  right ?

 

the original code:

 G90; Absolute Positioning

G1 F9000 X220 Y215; Quick Move

G1 F1000 X232; Precission Poke

G4 P700; Hold it hold it

G1 F9000 X220; Quick Move

 

pleas tell me if anything is wrong.

 

thank you for everything 

  • Link to post
    Share on other sites
    Posted (edited) · Changing Cura generated start code

    Almost. Don't put a ";" in front of each line. This will make the firmware ignore the line as a comment.

     

    Update:

    It is also smart to put a final "\n;LAYER:" at the end, so you put that text that you are finding back in.

     

    Edited by ahoeben
    • Like 1
    Link to post
    Share on other sites
    Posted · Changing Cura generated start code

    "G90; Absolute Positioning\nG1 F9000 X220 Y215; Quick Move\nG1 F1000 X232; Precission Poke\nG4 P700; Hold it hold it\nG1 F9000 X220; Quick Move\n;LAYER:"

     

    this is the code i am using 

  • Link to post
    Share on other sites
    Posted · Changing Cura generated start code

    Yes, it works for me that way.

    Can you post a screenshot like I did, and a link to a saved gcode file?

    • Like 1
    Link to post
    Share on other sites
    Posted · Changing Cura generated start code

    Yes I will post a photo now 

  • Link to post
    Share on other sites
    Posted · Changing Cura generated start code

    20180918_004340.thumb.jpg.5904ce4161d22d640950a503a9cb1a23.jpg

  • Link to post
    Share on other sites
    Posted · Changing Cura generated start code
    Link to post
    Share on other sites
    Posted · Changing Cura generated start code

    It works for me with Cura 3.4.1. All I can think of is that perhaps something was fixed after Cura 3.2.1, but I would not know what.

    • Thanks 1
    Link to post
    Share on other sites
    Posted · Changing Cura generated start code

    I tried it another time and it worked 

    I don't know how 

    Thank you very much that was very helpful 

  • Link to post
    Share on other sites
    Posted · Changing Cura generated start code

    I know this is an old topic, but I am having the most frustrating time editing my cgode. 
    First of all, im using cura 3.6 and my Machine option setting isnt even listed as an option. 
    I have tried multiple text editing documents but there seems to be no way to export the edited files as gcode for my printer.
    I have to remove the G1 Z15.0 F3000 ;move the platform down 15mm as it is making my first layer print in the air

    Please help, someone, there is nothing on the internet about exporting gcode with these programs, or editing raw gcode in cura.

     

  • Link to post
    Share on other sites
    Posted · Changing Cura generated start code
    On 6/21/2017 at 6:56 PM, ahoeben said:

    M104 S{material_print_temperature} ;Start heating extruder
    M140 S{material_bed_temperature} ;Start heating bed
    M109 S{material_print_temperature} ;Wait for extruder to reach temp before proceeding
    M190 S{material_print_temperature} ;Wait for bed to reach temp before proceeding

     

     

    This mistake in the code here destroyed my Ender 3 and it's enclosure. Luckily I had it in a tiled room and didn't set the house on fire. This happened so quickly that even though I was home and checking it regularly it still caught fire after only 4 minutes.

     

    For the love of God, please fix this now before someone else uses the same code.

  • Link to post
    Share on other sites
    Posted · Changing Cura generated start code
    5 hours ago, haydenwicks said:

     

    This mistake in the code here...

     

    I'm pretty sure the misinput in the g-code should have been caught by a safety precaution in the firmware by usual standards. Nevertheless, sorry to hear it caught fire tho, glad to hear you are safe! 

     

    - edit: learned which mistake. 

  • Link to post
    Share on other sites
    Posted (edited) · Changing Cura generated start code

    I fixed the old comment.

      

    4 hours ago, haydenwicks said:

    This mistake in the code here destroyed my Ender 3 and it's enclosure

     

    I am very sorry that happened to you.

     

    I am also surprised there are still printers around that you can set on fire this easily via gcode.

    Edited by ahoeben
  • Link to post
    Share on other sites
    Posted (edited) · Changing Cura generated start code
    5 hours ago, haydenwicks said:

     

    This mistake in the code here destroyed my Ender 3 and it's enclosure.

     

    Just curious , normaly on Ender3 in the firmware configuration the MAXTEMP is set to 150°C and HEATER to 275°C

    #define BED_MAXTEMP 150

    As most of the times the material_print_temperature is always upper to 180/190°C  using M190 S{material_print_temperature} should have protected your printer from accidental overheating by going over the BED_MAXTEMP limit.  What was your print temperature in that case ?

    Edited by Cuq
  • Link to post
    Share on other sites
    Posted · Changing Cura generated start code
    8 hours ago, SandervG said:

     

    I'm pretty sure the misinput in the g-code should have been caught by a safety precaution in the firmware by usual standards. Nevertheless, sorry to hear it caught fire tho, glad to hear you are safe! 

     

    - edit: learned which mistake. 

     

    Not all Ender 3 have thermal runaway protection enabled... Big fault made by Creality...

  • 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 Transformation Summit

        On April 20 - April 23 we will host the Ultimaker Transformation Summit. Come talk to us via Live chat and get inspired by any of our relevant presentations!
        • 6 replies
      • New here? Register your Ultimaker for free 3D printer onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 0 replies
    ×
    ×
    • Create New...