Jump to content

How to know if a extruder is enabled or disabled?


matheusgcoppi

Recommended Posts

Posted · How to know if a extruder is enabled or disabled?

In software cura you can enable and disable the extruders, in my case I use two, but if I wanna pass to gcode if extruder 0 is enable or not? I have this link https://files.fieldofview.com/cura/Replacement_Patterns.html that inside there are many variables to get some informations like machine_name, but there isn't a variable to see if is enable, like extruder_enable and give me true or false. My question is, Did you guys know if there is a way to figure out this information? Thank you.

  • Link to post
    Share on other sites

    Posted · How to know if a extruder is enabled or disabled?

    I'm going to use it in a file in cura that will be added when I generate a gcode, path: cura/5.5/definitions/my_machine.def.json and you scrool to the end and it will be on "machine_start_gcode", there I can call any function that I have and pass parameters, this paramns is on the file that I sent before or you can find in the same folder but fdmprinter.def.json, but there is no variable to see if is enable or disable. i don't know if it exists, if it does please tell me.

  • Link to post
    Share on other sites

    Posted · How to know if a extruder is enabled or disabled?

    Okay, so that's just startup gcode you want to edit:

    image.thumb.png.f7e8c2e676912d8d54c3a7db553b9768.png

     

    Hate to break it to you, but it's not that easy. That's strictly a text field, it can't perform any logic on its own, it can't run functions. All that happens to it is Cura unescapes sequences (like \n to a new line) and replace replacement patterns (like {material_print_temperature} to 210).

     

    To perform different actions to the gcode depending on if an extruder is on would require writing a post-processing script and querying the application stack for each extruder (I make it sound harder than it is).

     

    For what it's worth, remember that each extruder for a machine has its own start and end gcode that you can customise.

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