Duet3D Logo

    Duet3D

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

    Polling Position of Printer

    General Discussion
    3
    3
    87
    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.
    • Garth_42
      Garth_42 last edited by

      Hello everyone, we are polling the state of one of our printers via a get request of machine/status. When we poll the machine this way we aren't able to tell when the printer is moving or not moving as it reports "idle" regardless of movement. Is there a better way to understand the true position of the machine at a point in time?

      zapta T3P3Tony 2 Replies Last reply Reply Quote 0
      • zapta
        zapta @Garth_42 last edited by

        @garth_42, DWC shows the current x,y,z coordinates. Have you tried to see how it gets it?

        E.g. using the Inspect function of browsers such as Chrome which show you the HTTP requests/responses.

        1 Reply Last reply Reply Quote 0
        • T3P3Tony
          T3P3Tony administrators @Garth_42 last edited by

          @garth_42 you can test if this is an issue with the timing/formatting of your network request vs what is been reported by making a move and using echo command to report what the printer status is during the move. very simplistically:

          sent: echo state.status
          received: idle
          

          then

          sent: G1 Z25 F2000
          sent: echo state.status
          received: busy
          

          this is just using the console in DWC

          www.duet3d.com

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