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

    Activation sortie OUT1

    Scheduled Pinned Locked Moved
    General Discussion
    2
    3
    96
    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.
    • Nadège Andréundefined
      Nadège André
      last edited by

      Hello
      I have a duo 3 6HC and I would like to put a solenoid valve on OUT1.
      I wish I could turn OUT1 on ON / OFF while printing, but I don't see how.
      I thought I would define a Gpio port with M950 and then activate it with M42, but then how to do an ON / OFF on this output?
      Thank you in advance for your help!

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @Nadège André
        last edited by

        @nadège-andré that is correct. If you choose gpOut pin 0 for this purpose then the commands would be:

        M950 P0 C"out1" ; define the port
        M42 P0 S1 ; turn the valve on
        M42 P0 S0 ; turn the valve off

        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

        Nadège Andréundefined 1 Reply Last reply Reply Quote 0
        • Nadège Andréundefined
          Nadège André @dc42
          last edited by

          @dc42 said in Activation sortie OUT1:

          @nadège-andré that is correct. If you choose gpOut pin 0 for this purpose then the commands would be:

          M950 P0 C"out1" ; define the port
          M42 P0 S1 ; turn the valve on
          M42 P0 S0 ; turn the valve off

          Super merci je vais essayer de suite!

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