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

    M571 does not recognize my logical pin number

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    6
    361
    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.
    • Scrabartundefined
      Scrabart
      last edited by

      I am driving a relay via a mosfet triggered on logical pin P1 which I setup using:
      M950 P1 C"exp.9" ; create GPIO pin 1 on pin 9 of expansion connector
      M42 P1 S0 ; set GPIO port 1 to Low

      I intend on using the M571 command to open a solenoid valve during extrude moves

      An M42 P1 S1 activates the solenoid, but for some reason If I enter a command:
      M571 P1 S1 I get an error stating "M571 P1 S1 Missing port name string".

      Running RRF3 on a Duet2 Wifi Rev 1.04c.

      Does anyone have any experience with this?
      Thanks.

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        I'm sorry, I forgot to document the change to M571. It now takes a port name, not a port number. So you don't need to create a GPIO port for it using M950, just specify the port name for it in the M571 command. The parameter for it is either P or C. I will update the documentation tomorrow.

        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

        1 Reply Last reply Reply Quote 0
        • Scrabartundefined
          Scrabart
          last edited by

          Thank you for getting back to me so quickly! I'll give it a try.

          1 Reply Last reply Reply Quote 0
          • Scrabartundefined
            Scrabart
            last edited by

            Will I be able to use the M571 to drive a fan output (F2), or only GPIO pins? I am driving a solenoid during extrude commands.
            Currently I am using external circuitry (mosfet) activated by GPIO, so activating a fan output directly to drive the solenoid would save some circuitry.

            dc42undefined 1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @Scrabart
              last edited by

              @Scrabart said in M571 does not recognize my logical pin number:

              Will I be able to use the M571 to drive a fan output (F2), or only GPIO pins? I am driving a solenoid during extrude commands.

              You can use any output pin: heater, fan, or GPIO. The syntax is:

              M571 P"pin-name" Snn

              where nn is the required PWM value as before.

              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

              1 Reply Last reply Reply Quote 0
              • Scrabartundefined
                Scrabart
                last edited by

                Thank you for getting this to me.
                On a related note, my application uses my two duet extruders for other axes.
                I don't actually need an extruder per se. However I do need to use the M571 to open and close a valve.
                Do I need to attach a Duex5 so that I can define an extruder to reference? I currently do not have one attached, but I have one available.
                I tried defining all 9 drives in my config.g [...M569 P5 S1], Mapping it to drive 5 [M584 E5] as well as setting up a Tools that use the extruder, but I get a tool definition error if I try to use an extruder other than D0 or D1 in my M563 command. [M563 P0 D2 S"Color 1" F0 ].

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