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

    Conditional Gcode and GPIO State

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    3
    5
    377
    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.
    • code7undefined
      code7
      last edited by

      Re: [In addition to Conditionals](loops and maths ......)

      With RRFW 3.01, is it now possible to display the state of a GPIO pin and then store the state in a variable? If so, can you show me how?

      Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

      1 Reply Last reply Reply Quote 0
      • Danalundefined
        Danal
        last edited by

        Conditional GCode does not (yet) have variables.

        Delta / Kossel printer fanatic

        1 Reply Last reply Reply Quote 0
        • code7undefined
          code7
          last edited by

          Ok. Can you tell me how to display the current state of the GPIO pins in the meantime?

          I saw this statement in the RepRapFirmware 3.01-RC2 notes.
          "Object model key sensors.inputs has been added. This lists the input states of the configured general purpose inputs."

          Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

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

            @code7 said in Conditional Gcode and GPIO State:

            Ok. Can you tell me how to display the current state of the GPIO pins in the meantime?

            I saw this statement in the RepRapFirmware 3.01-RC2 notes.
            "Object model key sensors.inputs has been added. This lists the input states of the configured general purpose inputs."

            If you just want to display them on the console, send this:

            M409 K"sensors.inputs"

            The JSON response will list the states of all the inputs that you have configured using M950 with the J parameter.

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

              Perfect - Thanks

              Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

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