Jump to content
Ultimaker Community of 3D Printing Experts

Changed my start gcode in Cura. Why does it stop halfway?


k5o52
 Share

Recommended Posts

Posted (edited) · Changed my start gcode in Cura. Why does it stop halfway?

Hi guys,

First off, kudos for building a nice and easy to use program. Recently I have been using Cura coming from Repetier host and Simplify3D to slice and connect to my Printrbot Metal Simple.

I have been struggling to get my custom gcode working on Cura. I runs through the code halfway and then stops responding at all. The Printrbot heats up as with the original Cura code and stops after it raises it nozzle. FYI; I attached the original PrintrBot gcode start sequence and the custom one.

Original code

 

G21        ;metric valuesG90        ;absolute positioningM82        ;set extruder to absolute modeM107       ;start with the fan offG28 X0 Y0 Z0 ;move X/Y to min endstopsG29G1 Z15.0 F{travel_speed} ;move the platform down 15mmG92 E0                  ;zero the extruded lengthG1 F{travel_speed}

 

Custom gcode

 

M104 S[extruder0_temperature]; set extruder temperatureM140 S[bed1_temperature]; set bed temperatureG21 ; set units to millimetersG28 X0 Y0 Z0 ;home x and yG29 ;auto level on z axisG1 F1000 Z50 ; raise nozzle for hand-wipe preheat droolM109 S[extruder0_temperature]; wait for extruder temperature to be reachedM190 S[bed1_temperature]; wait for bed temperature to be reachedM83 ; set extruder to relative coordinatesG1 E30 F300 ; purge nozzleG4 P5000 ; dwell (wait) 5 seconds so I can wipe nozzle.M82 ; set extruder to absolute absolute coordinates

 

Edited by Guest
  • Link to post
    Share on other sites

    Posted · Changed my start gcode in Cura. Why does it stop halfway?

    Are you sure it's caused by changing the start code? Does changing back again fix the issue?

    I'm not quite sure how we handle the tags in the code, but I see you use multiple types of tags mixed with eachother (eg with {} and [])

  • Link to post
    Share on other sites

    Posted · Changed my start gcode in Cura. Why does it stop halfway?

    Yep, switching back to the original code resolves the problem. All the other variables are the same, so I can safely say that the problem lies in the gcode.

    I haven't seen the brackets, so let me get back to you on that. The brackets are exactly at the moment I suspect the printer crashes/gets stuck. The G1 command to raise the nozzle works, but then nothing happens.

  • 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
     Share

    • Our picks

      • New here? Get ahead with a free 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
        • 11 replies
    ×
    ×
    • Create New...