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

Increase work coordinates precision

Scheduled Pinned Locked Moved
CNC
3
7
1.0k
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
    Catalin_RO
    last edited by 28 Mar 2018, 06:57

    Firmware 1.21 reports workplace coordinates with single decimal, and so does DWC. When doing precise workpiece alignments, better precision is needed. The screw driven WorkBee has 8mm per stepper revolution. With a 200 steps/rev stepper, that gives 25 steps/mm -> 0.04mm/step. With microstepping it gets well below 0.01mm/pulse.

    Also it would be great if DWC would allow jogging with 0.01 step!

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 28 Mar 2018, 09:02

      Added to the list!

      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
      • undefined
        dc42 administrators
        last edited by 30 Mar 2018, 19:34

        When you say "Firmware 1.21 reports workplace coordinates with single decimal", which report are you referring to? G10 P# reports to 2dp already, but I can change that to 3dp if you like. The coordinates reported to DWC and by the M114 and M408 commands are to 3dp.

        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
        • undefined
          Catalin_RO
          last edited by 30 Mar 2018, 20:16

          Very simple to replicate… Power up machine and home. Then manually issue "G0X25.55Y34.56". DWC will announce as head position 25.6 for X and 34.6 for Y.

          Realistically, 2 decimals are more than enough. Beyond that we are discussing of precision that comes only with really high price tags!

          1 Reply Last reply Reply Quote 0
          • undefined
            dc42 administrators
            last edited by 30 Mar 2018, 23:02

            OK, it's a DWC issue. I suggest you raise it in the DWC wishlist section of the forum.

            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
            • undefined
              Danal
              last edited by 31 Mar 2018, 00:56

              This ultimately needs to be a "Pull" request in Github to the DWC repository. If you want a temporary fix for yourself, do the following:

              1. Put the SD card from the Duet in a PC, Mac, or Linux box (whichever YOU like).

              2. Find the /www/js directory.

              3. Find the file dwc.js.gz
                The exact next step depends on what tools you wish to use to deal with "G-Zip" compressed files. If you are on Windows, I'd recommend 7-Zip.

              4. Open the dwc.js.gz file and find the dwc.js file inside it. Use a text editor that will not screw up Unix line ends to edit this file.

              5. Find the exact string [c]toFixed(axisNames _== 'Z' ? 2 : 1)[/c]
                Note: there will be other parentheses, etc. Be sure you change ONLY the above. As a double check, this will be around line 803 (as of R1.21).

              6. Change it to [c]toFixed(2)[/c]

              7. Save the edited dwc,js file. Put it back in the dwc.js.gz file, and put that file back in the SD card /www/js directory.

              Return the card to the Duet, power up, and give it a try. You MAY have to do a "Ctrl-Shift-R" refresh, or otherwise clear your browser cache, to see the change. Also, if it just doesn't seem to change, somehow the dwc.js did not get back into the dwc.js.gz. This can be a bit awkward on windows._

              Delta / Kossel printer fanatic

              1 Reply Last reply Reply Quote 0
              • undefined
                Danal
                last edited by 31 Mar 2018, 00:57

                If that breaks anything, put the DWC files from github back on the card.

                Delta / Kossel printer fanatic

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