Jump to content

Can Cura 5.0.0 handled ‘if’ statements?


Merlwynd

Recommended Posts

Posted · Can Cura 5.0.0 handled ‘if’ statements?

Does anyone know if Cura 5.0.0 can handle ‘if’ statements in the machine settings start or end gcode? I’d like to add an if statement in the end gcode to raise the print head by 10mm, but only if z height is 10mm less than printer envelope. I can easily do this with an ‘if’ statement in the end gcode…but earlier versions of Cura did not allow this…or it wasn’t recognized. 

  • Link to post
    Share on other sites

    Posted · Can Cura 5.0.0 handled ‘if’ statements?

    It does not support logic or math in the Start or End gcodes.

    Unless your prints are always at max height you can use a relative move of 5 or 10mm's to get the nozzle off the print.

  • Link to post
    Share on other sites

    Posted · Can Cura 5.0.0 handled ‘if’ statements?

    Thanks for reply. Ya, I could do that, and also reduce z height accordingly under printer limits to be sure no issues, but thought it would be neat if it could handle the logic…maybe in future….

  • Link to post
    Share on other sites

    Posted · Can Cura 5.0.0 handled ‘if’ statements?

    My printer lists a Zmax at 250.  I didn't like the way the bowden and cables were bent when it's that high so I lowered it to 240 in cura.  I can still use the 250 if I need it.  I go back into Machine Settings and move the height back up for just that print.  It doesn't happen often (I think once for me).

    There is a slicer (PrusaSlicer?) that does math in the StartUp and End gcodes but I'm not sure if it can do logic.

  • Link to post
    Share on other sites

    Posted · Can Cura 5.0.0 handled ‘if’ statements?
    4 hours ago, GregValiant said:

    There is a slicer (PrusaSlicer?) that does math in the StartUp and End gcodes but I'm not sure if it can do logic.

    Just for Information Yes they can do it ( Prusa And SuperSlicer) Ie for Ender-3 end Gcode

    image.thumb.png.79e5ddef68bd647cc1bc31b32f8db42b.png

  • Link to post
    Share on other sites

    Posted · Can Cura 5.0.0 handled ‘if’ statements?

    Yes thanks...I also use Prusa Slicer and that is where I got the idea from. Wanted to use with Cura as well if that was possible....but I guess it isn't.

  • 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
        • 16 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...