Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. chrisqwertz
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Best 1
    • Controversial 0
    • Groups 0

    chrisqwertz

    @chrisqwertz

    Hardware Engineer in R&D

    Voron 2.4R2

    3
    Reputation
    2
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Vienna

    chrisqwertz Unfollow Follow

    Best posts made by chrisqwertz

    • RE: Total hours of operation/printing feature.

      Hi!

      I think I have a solution to the problem:

      create sys/runtime.g and add

      global runtime = 0
      

      in sys/config.g add

      ; init print time logging
      if !exists(global.runtime)
        M98 P"runtime.g"
      

      create sys/daemon.g if it doesn't already exist and add

      if state.status == "processing"
        if exists(global.runtime)
          set global.runtime = {global.runtime + 10}
          echo > "runtime.g" "global runtime = " ^ {global.runtime} ^ " ; AUTO GENERATED by daemon.g"
      

      This will increment the global variable "runtime" every time daemon.g is called by 10 and write the new value into runtime.g. This should be correct as daemon.g is called every 10 secs as of RRF 3.3

      Let me know if it doesn't work for you.

      posted in Firmware wishlist
      chrisqwertzundefined
      chrisqwertz

    Latest posts made by chrisqwertz

    • RE: Total hours of operation/printing feature.

      @t3p3tony Ah i see, that makes sense. Thank you, your feedback is very much appreciated!

      posted in Firmware wishlist
      chrisqwertzundefined
      chrisqwertz
    • RE: Total hours of operation/printing feature.

      Hi!

      I think I have a solution to the problem:

      create sys/runtime.g and add

      global runtime = 0
      

      in sys/config.g add

      ; init print time logging
      if !exists(global.runtime)
        M98 P"runtime.g"
      

      create sys/daemon.g if it doesn't already exist and add

      if state.status == "processing"
        if exists(global.runtime)
          set global.runtime = {global.runtime + 10}
          echo > "runtime.g" "global runtime = " ^ {global.runtime} ^ " ; AUTO GENERATED by daemon.g"
      

      This will increment the global variable "runtime" every time daemon.g is called by 10 and write the new value into runtime.g. This should be correct as daemon.g is called every 10 secs as of RRF 3.3

      Let me know if it doesn't work for you.

      posted in Firmware wishlist
      chrisqwertzundefined
      chrisqwertz