Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Layer hight specific g-code?

    Scheduled Pinned Locked Moved
    General Discussion
    3
    8
    188
    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.
    • Chrissundefined
      Chriss
      last edited by

      Hi *,

      I have a problem which should be easy to solve but I do not know how again. 😞

      I want to setup the hotend temperature based on the layer hight but I do not know how to be honest. I think that a condition based on the hight of Z should do it. Can somebody please help me with an example?

      Cheers, Chriss

      oliofundefined T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
      • oliofundefined
        oliof @Chriss
        last edited by

        @Chriss better to do this via gcode post processing in the slicer IMO.

        <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

        1 Reply Last reply Reply Quote 0
        • T3P3Tonyundefined
          T3P3Tony administrators @Chriss
          last edited by

          @Chriss i agree with @oliof oliof, AFAIR Prusa slicer for example has the ability to do this.

          If not then you could use the object model key job.layer to determine what layer your were on (assuming the slicer correctly labelled the layers) and then set a temperature in daemon.g. IMO that would be more work than setting the temps in the slicer to start with.

          www.duet3d.com

          Chrissundefined 1 Reply Last reply Reply Quote 0
          • Chrissundefined
            Chriss @T3P3Tony
            last edited by Chriss

            @T3P3Tony There is more to do than only setting the temperature....I need to set the standby temps of the tools etc. I do not want to do that via the slicer, I try to make my printers as slicer agnostic as possible.

            Anyway, to the practical thing.... would something like that work?

            if move.axes.[2].machinePosition < 0.01
               M116 S"Bla"
            

            (I do not understand why this reports "bad command"... 😞

            Sorry, I do not want to discuss the best way om implementation, my question is more about how.

            Cheers, Chriss

            Chrissundefined T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
            • Chrissundefined
              Chriss @Chriss
              last edited by

              We can forget that.. I just learned that the "if" does not work via the serial interface.

              if move.axes[2].machinePosition < 0.2
                      M118 S"TEST"
              

              Worked as soon as I places it into a macro. 🤷

              1 Reply Last reply Reply Quote 0
              • T3P3Tonyundefined
                T3P3Tony administrators @Chriss
                last edited by

                @Chriss fair enough.

                So yes you could use the daemon.g to check if a job was being processed, if one was then set the temperature based on the Z axis position.

                www.duet3d.com

                Chrissundefined 1 Reply Last reply Reply Quote 0
                • Chrissundefined
                  Chriss @T3P3Tony
                  last edited by

                  @T3P3Tony

                  Thanks Tony, but I did it with the if in the tpost file finally. The idea was to change hotebd temp to the "first layer" temperature if Z is below 0.2 or something like that. SO it is a one time job in this case.

                  I had to learn that slicers like SuSi are not very good in dealing with more than one tool 😉

                  Cheers, Chriss

                  T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                  • T3P3Tonyundefined
                    T3P3Tony administrators @Chriss
                    last edited by

                    @Chriss ok cool, yes on that case that would work

                    www.duet3d.com

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