Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Difference between tPreN.g and tPostN.g

    Duet Hardware and wiring
    3
    6
    536
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Urban
      Urban last edited by

      When changing a tool the firmware will run three scripts located in the /sys directory. The process is described in the documentation here:

      Tool Change

      They are:

      • tFreeN.g
      • TPreN.g
      • TPostN.g

      As I understand it the first script will release the old tool, which is understandable. The second script is executed before the new tool is selected and the third after.

      I can't understand why there is a Pre- and Post-script? Wouldn't it be enough with one script?

      1 Reply Last reply Reply Quote 0
      • fma
        fma last edited by

        It's all explained in the link: tPre is executed, then temperature is set, then tPost is executed. How to use them depends on your setup. It is very flexible, and can match a lot of configurations.

        1 Reply Last reply Reply Quote 0
        • Urban
          Urban last edited by

          OK, but can you give an example of when you actually need both pre and post scripts? I am trying to understand if this can be of use to me, but I can't think of a case where it actually would give an advantage.

          1 Reply Last reply Reply Quote 0
          • fma
            fma last edited by

            I don't have a tool changer config (yet), but, for example, if you set the temperature of parked tools to standby, and need to move them to a purge area before heating them up again to working temperature (so leaking PLA goes in the purge bucket, instead the park area), then you can put the move to purge area in tPre, and the real purge in tPost.

            T3P3Tony 1 Reply Last reply Reply Quote 1
            • T3P3Tony
              T3P3Tony administrators @fma last edited by

              @fma @Urban I do this slighty differently on my draft tool changer too change macros. The TFree drops off a toop, TPre moves the pickup heat to the selected tool to the point it can lock the new tool. T Post locks the tool and then extracts it, moved to the purge area, wiats for temps to stabalise, purges, cleans, continues. I do this because I have different tool offsets of each tool which are applied after TPre is run, but before TPost is run.

              1 Reply Last reply Reply Quote 0
              • Urban
                Urban last edited by

                OK, I understand. Thank you both!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA