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

    Did RRF stop writing print time to gcode files?

    Scheduled Pinned Locked Moved
    General Discussion
    4
    7
    341
    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.
    • oliofundefined
      oliof
      last edited by

      I am trying to gauge print time estimates with actual print time but I can't seem to get the actual print time for completed jobs anymore. I dimly remember that was written to the end of a gcode file in the past. Am I hallucinating, has this feature been removed? My usual code spelunking has proven inefficient this time.

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

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @oliof
        last edited by

        @oliof actual print time has never been written to GCode files. Simulated print time is.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        oliofundefined jay_s_ukundefined 2 Replies Last reply Reply Quote 0
        • oliofundefined
          oliof @dc42
          last edited by

          @dc42 ok, hallucination then (-:

          <>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
          • jay_s_ukundefined
            jay_s_uk @dc42
            last edited by

            @dc42 what's stopping actual being written at the end of a print? Could this make the wishlist?

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            dc42undefined 1 Reply Last reply Reply Quote 2
            • OwenDundefined
              OwenD
              last edited by OwenD

              Not sure what format is expected, but you can easily enough append the info to the file by putting something like this is stop.g

              Edited for better readability

              if (job.lastFileName != null)
              	var numHours = floor({job.lastDuration}/3600)
              	var numMins = floor(({job.lastDuration}-var.numHours*3600)/60)
              	var numSecs = mod({job.lastDuration},60)
              	var thisString = ";Print time = " ^ var.numHours ^ "hrs " ^ var.numMins ^ "min " ^ var.numSecs ^ "secs"
              	echo >>{job.lastFileName} ""
              	echo >>{job.lastFileName} ";Last printed:", state.time
              	echo >>{job.lastFileName} var.thisString
              
              

              note as written it will append the info if stop.g was run after a file was cancelled or aborted.
              I have another post about that as it seems to be a bug.

              1 Reply Last reply Reply Quote 3
              • dc42undefined
                dc42 administrators @jay_s_uk
                last edited by

                @jay_s_uk yes we could write last printed time to the end of the file, although if you adjust the printing speed during the print as I often do then the value is less useful than the simulated time.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                jay_s_ukundefined 1 Reply Last reply Reply Quote 2
                • jay_s_ukundefined
                  jay_s_uk @dc42
                  last edited by

                  @dc42 I personally don't. It would be appreciated if you could. Thanks

                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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