Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Can't use io1 on toolboard like gpIn?

    General Discussion
    2
    4
    74
    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.
    • Dep
      Dep last edited by

      Because I define

      M950 J4 C "!^31.io1.in"; Input 4 for trigger
      

      Then I look at the state of the input with the command

      M409 K "sensors.gpIn [4]"
      
      And I always get
      
      "result": {
              "value": 0
          }
      

      But if I define an input on the motherboard:

      M950 J4 C"!^io6.in"
      

      then when I close input to the ground I can see a change in state.

      1 Reply Last reply Reply Quote 0
      • Dep
        Dep last edited by Dep

        I would like to just understand these limitations in the firmware, or am I just doing something wrong?

        It's just that the wires are already routed into the printer. It's not difficult for me to redo it, but maybe it should work?

        Maybe someone knows?

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

          @Dep said in Can't use io1 on toolboard like gpIn?:

          M950 J4 C "!^31.io1.in"; Input 4 for trigger

          Try removing the space between C and ".

          Hint: run M98 P"config.g" to detect errors in config.g.

          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
          • Dep
            Dep last edited by

            I think a space appeared when copying or the translator inserted it 🙂

            Because value on gpin is "0" not null.

            As I understand it, there are no restrictions and should work. Thanks, I'll check the wires and commands.

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