• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    Martin1454
    last edited by 1 Feb 2021, 08:12

    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
    • undefined
      Phaedrux Moderator
      last edited by 1 Feb 2021, 20:48

      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

      undefined 1 Reply Last reply 2 Feb 2021, 07:42 Reply Quote 1
      • undefined
        Martin1454 @Phaedrux
        last edited by 2 Feb 2021, 07:42

        @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
        • undefined
          Phaedrux Moderator
          last edited by 2 Feb 2021, 16:30

          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

          undefined 1 Reply Last reply 3 Feb 2021, 07:07 Reply Quote 0
          • undefined
            Martin1454 @Phaedrux
            last edited by 3 Feb 2021, 07:07

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

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