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

JSONresponses

Scheduled Pinned Locked Moved
Duet Web Control
3
5
243
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.
  • undefined
    CliveB
    last edited by 6 Apr 2020, 16:12

    I an running Duet Maestro 2 board and have just uploaded firmware V3.01RC6 and the latest DWC with it and the DWC actually shows the machine in the idle state.

    The JSONresponses.md file does not mention the 'I' status, although it is in the RepRep documentation.

    I have a machine specific web page which is keeping control of the status and scheduling of gcodes to create the particular prints I require, I rely on the 'I' status to let me know when the machine is static and I can rely on the X,Y,Z cords coming back in the status object.

    I am finding that although I am moving the X and Y motors in integer steps for probing positions, the position coming back is an approximation of the actual position and I have to round the values to get back to integer figures as indices in the probe point 2-dimensional array.

    A typical response debug message
    xGrid=1 yGrid=2 xPos=155 yPos=7.977 zPos=59.62 zMinPos=59.219 zMaxPos=59.719

    So far all the rounding works OK, but thought it worth mentioning.

    Retirement: when you work just as hard but without financial reward!
    You only stop learning when the lid is screwed down.
    www.remap.org.uk www.kyaningacdc.org
    Prusa i3 Mk3 - my workhorse

    ? 1 Reply Last reply 6 Apr 2020, 16:18 Reply Quote 0
    • ?
      A Former User @CliveB
      last edited by 6 Apr 2020, 16:18

      @CliveB said in JSONresponses:

      I am finding that although I am moving the X and Y motors in integer steps for probing positions, the position coming back is an approximation of the actual position and I have to round the values to get back to integer figures as indices in the probe point 2-dimensional array.

      you might find the its the other way around; the returned position is a the actual position to the closest microstep of the requested position (or its an artifact of limited resolution in decimal numbers)

      undefined 1 Reply Last reply 7 Apr 2020, 05:28 Reply Quote 0
      • undefined
        CliveB @A Former User
        last edited by 7 Apr 2020, 05:28

        @bearer Thanks for the reply.
        I had started thinking down that route, but have not explored it any further as the rounding is doing the job.
        It just initially threw me off guard when I was trying to access an array with a decimal number!

        Retirement: when you work just as hard but without financial reward!
        You only stop learning when the lid is screwed down.
        www.remap.org.uk www.kyaningacdc.org
        Prusa i3 Mk3 - my workhorse

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 7 Apr 2020, 05:47

          Have you taken account of the probe X and Y offsets?

          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

          undefined 1 Reply Last reply 7 Apr 2020, 05:56 Reply Quote 0
          • undefined
            CliveB @dc42
            last edited by 7 Apr 2020, 05:56

            @dc42 Yes, in config.g I have G31 X0 Y0 for now.
            I am working on the physical calibration of the printer at the moment and will add these in when complete.
            Thanks

            Retirement: when you work just as hard but without financial reward!
            You only stop learning when the lid is screwed down.
            www.remap.org.uk www.kyaningacdc.org
            Prusa i3 Mk3 - my workhorse

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