Jump to content
Ultimaker Community of 3D Printing Experts

Looking for tool change script / plugin in Cura


Roland
 Share

Recommended Posts

Posted · Looking for tool change script / plugin in Cura

My question is:

Is it actually possible to have a freely configurable tool change scrip in Cura?

I'm running my UM2 with dual head.

For tool change procedure I need to cool down inactive nozzle, and heat up the new one.

Actually I'm using S3D because they have tool change script.

I want this for Cura, is there anybody knowing how to?

S3D tool change script

{IF NEWTOOL=0}M104 S170 T1 ; set T1 inactive extruder to temperature-40 C

{IF NEWTOOL=0}G1 X115 Y140 F5000

{IF NEWTOOL=0}M109 S210 T0 ; set T0 new active extruder to temperature

{IF NEWTOOL=1}M104 S170 T0 ; set T0 inactive extruder to temperature-40 C

{IF NEWTOOL=1}G1 X115 Y140 F5000

{IF NEWTOOL=1}M109 S210 T1 ; set T1 new active extruder to temperature

Roland

  • Link to post
    Share on other sites

    Posted · Looking for tool change script / plugin in Cura

    I think Cura already does this automatically. The old cura has a pre and post hotend switch g-code bit where you can do these things.

     

    The point is l want to configure a position in x/y and temperature for inactive tool.

    When the tool change is performed the machine moves there, heats up the next tool head, waits for temperature reached and goes on printing. The inactive tool is cooling down (by 40 deg).

    If there is a possibility to configure that,

    Please tell me where it is.

    Thank you for your help.

    Roland

  • Link to post
    Share on other sites

    Posted · Looking for tool change script / plugin in Cura

    The movement comands you use para n s3d can be introduced on cura. There's on advanced on old cura you have the placeholder for t0 or t1. Other way it's to make the gcode and then do a search/replace.

  • Link to post
    Share on other sites

    Posted · Looking for tool change script / plugin in Cura

    Is there any way to have a tool change be set per profile. I want to run different materials but each would require a different gcode with my setup. I'm willing to hand write in the config files or in the profile settings but I'm not sure if this is even possible.

  • Link to post
    Share on other sites

    Posted · Looking for tool change script / plugin in Cura
    19 minutes ago, Jarren141 said:

    I'm willing to hand write in the config files

    In that case... The materials are xml files. You should be able to add something like this:

     

            <cura:setting key="machine_extruder_start_code">
    ;put your material-specific extruder start code here
    M117 Hello material!
            </cura:setting>

     

    (I have not tested this, but I can't really think of a good reason why it would not work)

    • Like 1
    Link to post
    Share on other sites

    Posted · Looking for tool change script / plugin in Cura

    I'll see if I can test this and circle back. I was a bit confused for a second with the M117 command but then smiled when I realized what it did.  I should also add that I tried to add [  machine_extruder_start_code = ";Test for tool change T0"  ] to the extruder settings in an unzipped extruder 0 profile setting but was unsuccessful and resulted in a bunch of error messages from Cura on startup complaining about corrupt profiles.

  • Link to post
    Share on other sites

    Posted · Looking for tool change script / plugin in Cura
    <?xml version="2.0" encoding="UTF-8"?>
    <!--
    Generic Nylon 1.75mm profile. The data in this file may not be correct for your specific machine.
    -->
    <fdmmaterial xmlns="http://www.ultimaker.com/material" xmlns:cura="http://www.ultimaker.com/cura" version="1.3">
        <metadata>
            <name>
                <brand>Essentium</brand>
                <material>Essentium Nylon 3</material>
                <color>Generic</color>
            </name>
            <GUID>283d439a-3490-4481-920c-c51d8cdecf9c</GUID>
            <version>5</version>
            <color_code>#3DF116</color_code>
            <description>Nylon is strong, abrasion-resistant, durable and engineered for low moisture sensitivity.</description>
            <adhesion_info>Use glue.</adhesion_info>
        </metadata>
        <properties>
            <density>1.14</density>
            <diameter>1.75</diameter>
        </properties>
        <settings>
            <setting key="print temperature">300</setting>
            <setting key="heated bed temperature">80</setting>
            <setting key="standby temperature">220</setting>
            <setting key="retraction amount">1</setting>
            <setting key="retraction speed">25</setting>
            <setting key="adhesion tendency">2</setting>
            <setting key="surface energy">100</setting>
            <cura:setting key="material_crystallinity">true</cura:setting>
            <setting key="build volume temperature">60</setting>
    		<cura:setting key="machine_extruder_start_code">;Test for tool change T0</cura:setting>
            <machine>
    			<cura:setting key="machine_extruder_start_code">;Test for tool change T1</cura:setting>
                <setting key="print cooling">0.0</setting>
                <setting key="standby temperature">160</setting>
                <setting key="retraction speed">40</setting>
                <setting key="heated bed temperature">60</setting>
                <setting key="print temperature">230</setting>
           </machine>
        </settings>
    </fdmmaterial>

    Looks like adding those lines did not take effect as we had hoped. I sliced a dual extrusion part after importing the edited material and restarting Cura. The ";Test for tool change" was not present in the entire gcode. Is there some notation I'm missing for a dual extruder printer, like extruder_no_0.  

  • Link to post
    Share on other sites

    Posted · Looking for tool change script / plugin in Cura

    Sorry, I can't get it to work either. I don't know why; it should work.

  • 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

      • The Ultimaker Showcase — October 14. What's new?
        Your dear friends at Ultimaker have some exciting news and insights for you!
         
        • 0 replies
      • 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
        • 8 replies
    ×
    ×
    • Create New...