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

    run code / trigger relay when heater 0 is active or standby?

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    5
    347
    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.
    • Martin1454undefined
      Martin1454
      last edited by

      Is it possible to setup the firmware to enable an output when you enable the heater 0 (off-> active?)

      I have an mechanical relay that is in series with my bed heater, but I'm using PS_ON to enable my 24V supply - So is there a way to make one of the GPIO high or low if im changing the state of the heater?

      I know that I can write a gcode to change the state of the GPIO, but I would like to avoid having to write that GCODE each time im trying to heat up the bed.

      Thanks for the help!

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        You could set up a monitoring loop in daemon.g to check the heater status perhaps.

        https://duet3d.dozuki.com/Wiki/Macros#Section_daemon_g

        https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands

        Z-Bot CoreXY Build | Thingiverse Profile

        Martin1454undefined 1 Reply Last reply Reply Quote 1
        • Martin1454undefined
          Martin1454 @Phaedrux
          last edited by

          @Phaedrux said in run code / trigger relay when heater 0 is active or standby?:

          You could set up a monitoring loop in daemon.g to check the heater status perhaps.

          https://duet3d.dozuki.com/Wiki/Macros#Section_daemon_g

          https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands

          That seems like a good way to do it - Do we know what the status variable is called for the bed heater? or is there an overview somewhere where I can find it?

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            Yes it would be in the object model.

            https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware

            In 3.2 you can load the object model browser plugin to explore the machine state and all of the objects available. That's where you can get the names.

            Z-Bot CoreXY Build | Thingiverse Profile

            Martin1454undefined 1 Reply Last reply Reply Quote 0
            • Martin1454undefined
              Martin1454 @Phaedrux
              last edited by

              @Phaedrux That is perfect, I will try to use that!

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