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.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!
        • 3 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...