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

    how do i close the Damon file so i can edit it

    Scheduled Pinned Locked Moved
    Gcode meta commands
    6
    9
    770
    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.
    • moth4017undefined
      moth4017
      last edited by moth4017

      how do i stop the Damon file running so i can edit it

      Error: Cannot delete file /sys/daemon.g because it is open

      ;daemon.g
      ;if S2 P"temp2".lastReading > 50
      ;M98 P"homex.g"
      echo "Valkyrie OK : "
      ;Constantly runs in background to check outputs etc
      if {boards[0].vIn.current >= 23.6} ; check current PSU voltage
      echo "Voltage OK : " ^ boards[0].vIn.current ; display OK message and current voltage
      else
      echo "Voltage low : " ^ boards[0].vIn.current ; display low voltage warning & current voltage
      ;G4 S60 ; delay running again or next command for at least 60 seconds
      G4 S50 ; S time in second repeats.

      <

      cosmowaveundefined Stephen6309undefined 2 Replies Last reply Reply Quote 0
      • Phaedruxundefined Phaedrux moved this topic from Tuning and tweaking
      • cosmowaveundefined
        cosmowave @moth4017
        last edited by

        @moth4017 You can rename it. Then edit it. Then rename back.

        Mankati FSXT+, DeltaTowerV2, E3D MS/TC

        1 Reply Last reply Reply Quote 1
        • moth4017undefined
          moth4017
          last edited by moth4017

          @cosmowave

          cheers that was easy , now i feel silly

          <

          Exerqtorundefined 1 Reply Last reply Reply Quote 0
          • Exerqtorundefined
            Exerqtor @moth4017
            last edited by

            @moth4017 sounds like someone wants to remove that constant voltage echo spam? 😆

            moth4017undefined 1 Reply Last reply Reply Quote 0
            • moth4017undefined
              moth4017 @Exerqtor
              last edited by

              @exerqtor how did you guess 🙂

              <

              1 Reply Last reply Reply Quote 0
              • OwenDundefined
                OwenD
                last edited by

                @moth4017 said in how do i close the Damon file so i can edit it:

                ;daemon.g
                ;if S2 P"temp2".lastReading > 50
                ;M98 P"homex.g"

                I know it's commented out, but this just baffles me.

                1 Reply Last reply Reply Quote 1
                • Stephen6309undefined
                  Stephen6309 @moth4017
                  last edited by Stephen6309

                  @moth4017 I inclose mine within a while loop:
                  Set global.RunDaemon to true in config.g.

                  In deamon.g:
                  while global.RunDaemon
                  ; stuff goes here

                  I have macros to set while RunDaemon true or false (on/off)

                  It's better than the rename method, since my keyboard likes to misspell words. 🙄

                  Exerqtorundefined 1 Reply Last reply Reply Quote 0
                  • Exerqtorundefined
                    Exerqtor @Stephen6309
                    last edited by Exerqtor

                    @stephen6309 said in how do i close the Damon file so i can edit it:

                    @moth4017 I inclose mine within a while loop:
                    Set global.RunDaemon to true in config.g.

                    In deamon.g:
                    while global.RunDaemon
                    ; stuff goes here

                    I have macros to set while RunDaemon true or false (on/off)

                    It's better than the rename method, since my keyboard likes to misspell words. 🙄

                    Like that one, gonna adopt that 😅

                    EDIT:

                    in globals.g (ran by config.g at startup):

                    if !exists(global.RunDaemon)
                      global RunDaemon = true
                    

                    daemon.g:

                    ; daemon.g
                    ; Used to execute regular tasks, the firmware executes it and once the end of file is reached it waits. If the file is not found it waits and then looks for it again.
                    
                    ; Loop, to be able to turn on/off daemon.g
                    while global.RunDaemon
                      ; stuff goes here         
                      G4 S30                                                                       ; delay running again or next command for at least 30 seconds
                    

                    Toggle daemon macro:

                    ; Toggle daemon.g on / off
                    
                    ;Check if daemon.g is already enabled or not, and act accordingly
                    if global.RunDaemon = true
                      set global.RunDaemon = false
                      echo "daemon.g disabled"
                    elif global.RunDaemon = false
                      set global.RunDaemon = true
                      echo "daemon.g enabled"
                    
                    1 Reply Last reply Reply Quote 1
                    • rexxundefined
                      rexx
                      last edited by

                      could someone share what a daemon.g would look like for a heated chamber only to 80c tru a switching 3-32 vdc to SSR at mains VAC
                      i am getting way to many alarms in the 3.4 and wants to see 1.7C/sec without daemon.g and the chamber is expected to take about 10 min from cold chamber to set point and these types of alarms are no good for a chambers so i am here looking at daemon options to do so should someone have an example or kind of what it should look like?

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