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

    Error : M42 : parameter ‘p’ too high

    Scheduled Pinned Locked Moved Solved
    CNC
    3
    7
    454
    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.
    • Jimmykcundefined
      Jimmykc
      last edited by

      My Duet3 board is MB6HC Revision 1.0, and the firmware is 3.01-RC9.
      If I configure GPIO P15, I send “M42 P15 S1” command.
      The duet3 board will show “M42 P15 S1”.
      444.jpg
      If I configure GPIO P16, I send “M42 P16 S1” command.
      The duet3 board will show “Error : M42 : parameter ‘p’ too high”.
      333.jpg
      Why do I only configure the GPIO less than P16 ?
      If I want to use one Duet3 main board and two Duet3 expansion boards, I will not configure all GPIO.

      1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators
        last edited by

        Are you really configuring 16 different GPIO pins? RRF lets you define 16 input and 16 output pins, which is more than enough is for most applications. M42 P defines the index and you can choose an arbitrary number between 0 and 15 for that.

        Duet software engineer

        Jimmykcundefined 1 Reply Last reply Reply Quote 0
        • Jimmykcundefined
          Jimmykc @chrishamm
          last edited by

          @chrishamm Yes, I am really configuring 16 different GPIO pins because I use a Duet3 main board and two Duet3 expansion boards. The Duet3 main board has 9 GPIO. The two Duet3 expansion board have 12 GPIO. Total GPIO is 21 is more than the limit of GPIO.

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

            @Jimmykc, I can increase the limit. May I ask what you are using all these GPIO pins for? How many do you need?

            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

            Jimmykcundefined 1 Reply Last reply Reply Quote 0
            • Jimmykcundefined
              Jimmykc @dc42
              last edited by

              @dc42 Thanks for your help, but I am sorry.
              I can’t tell you what function we need.
              Now I develop the controller for our product.
              The system is based on the main board and two expansions board in the future.
              I try all G code and M code in the beginning, and I have to find the max limit of duet3 board IO if we want to use them to control new functions.
              Could you increase the limit to parameter ‘p’ to 30 ?
              The parameter ‘p’ is 30 is enough for me. Thanks a lot again.

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

                I'll increase it to 32 in RRF 3.01-RC11, subject to sufficient RAM on the tool board.

                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

                Jimmykcundefined 1 Reply Last reply Reply Quote 0
                • Jimmykcundefined
                  Jimmykc @dc42
                  last edited by Jimmykc

                  @dc42 I am very looking forward to your success. Thank you.

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