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

    Object Model - Report Contents of Object?

    Scheduled Pinned Locked Moved
    General Discussion
    2
    3
    176
    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.
    • DocTruckerundefined
      DocTrucker
      last edited by

      Hi All,

      Is there a way to report the contents of an object?

      eg:

      echo move.axes[2].machinePosition

      ...in the terminal reports the current position.

      Whereas:

      echo move.axes[2]

      ...just responds "{object}".

      How do I find a list of keys for data held within an object?

      Thanks!

      Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

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

        @doctrucker you can send this command to see the whole object:

        M409 k"move.axes[2]"

        Or you can use the Object Model browser in DWC.

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

          @dc42 thank you!

          Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

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