nav111 / heekscnc

Automatically exported from code.google.com/p/heekscnc
Other
0 stars 0 forks source link

How to set Trailing digits in post processor #198

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am using the zig-zag function with units of inch and have gotten most
everything figured out, but it is outputing 5 trailing digits after the
decimal point and is causing errors with my machine.  For the Post
processor I am using ISO, but I have modified it to take the line numbers
out.  and insight into this would be hugely appreciated, I am really
impressed with what you have been able to do so far.

Thanks

Ryan

Original issue reported on code.google.com by rma...@gmail.com on 19 May 2010 at 1:55

GoogleCodeExporter commented 8 years ago
Ryan,

The simplest way to do this is to go to the file HeeksCNC/nc/iso_codes.py
and change line 4 from
    def FORMAT_IN(self): return('%.5f')
to
    def FORMAT_IN(self): return('%.3f')
if you want 3 decimal places.
If you are using the Windows installation, this will probably be at "C:\Program
Files\HeeksCNC\HeeksCNC\nc"

Original comment by danhe...@gmail.com on 19 May 2010 at 2:06

GoogleCodeExporter commented 8 years ago
Thank you so much, I am new enough to the code that I wasn't sure what 
everything was
referring too.

Thanks

Ryan

Original comment by rma...@gmail.com on 19 May 2010 at 2:10

GoogleCodeExporter commented 8 years ago

Original comment by danhe...@gmail.com on 24 May 2010 at 3:04