Jump to content

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


k5o52

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
    • Our picks

      • UltiMaker Cura 5.8 Stable released 🎉
        In the Cura 5.8 stable release, everyone can now tune their Z seams to look better than ever. Method series users get access to new material profiles, and the base Method model now has a printer profile, meaning the whole Method series is now supported in Cura!
        • 5 replies
      • 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
    ×
    ×
    • Create New...