CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > CAM Software > SprutCAM


SprutCAM Discuss SprutCAM software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-22-2010, 10:03 AM
 
Join Date: Sep 2008
Location: usa
Posts: 215
saabaero is on a distinguished road
NC File Numeric Precision

Just wondering if anyone has experienced something similar to what I have...

I am using the latest Tormach postprocessor for creasting NC files with Sprutcam Version 7. When I look at the NC files that are created the coordinates for the axes consist of numbers with 3 decimal places in spite of my having my Sprutcam system tolerance set to 8 decimal places.

The strange part is that for circular inperpolation using G2 and G3 commands the "I" and "J" parameters consist of 5 decimal places but the X,Y&Z coordinates are 3 place decimals. At first I thought that my axes values just typically consisted of only 3 decimal place as they normally do in my designs (except for fractional values - I usually specify them as 4 place decimals - i.e. 0.3125"). The other thing I noticed was that adjusting the cutter diameter in the tool selection in Sprutcam by 0.0001" or 0.0002" still resulted in 3 place decimal values for the axis coordinates.

Is this a function of the Tormach postprocessor or something I am doing wrong? I would expect that I should be able to get 4 decimal place accuracy for small parts with the PCNC mill.
Reply With Quote

  #2   Ban this user!
Old 09-22-2010, 04:26 PM
 
Join Date: Apr 2008
Location: US
Posts: 58
Cairns is on a distinguished road

Adding something possibly related to the question: Every time I open one of my projects in SprutCAM it displays some very poorly worded pop up dialog with a question about changing the precision of my drawing from 3 decimal points to 4 (and now 5 points in the newest version). It's unclear whether clicking Yes changes the project I'm opening to a higher precision or lower but no matter which way I answer the question, I always get prompted again the next time I open it. Any thoughts on how to make this go away and hopefully default all my projects to 4 decimal points? I've already set my preferences to reflect 4 points of precision.

Saabaero, is it possible that you are getting this question as well and it is changing your default setting?
__________________
111011 101101 101001
Reply With Quote

  #3   Ban this user!
Old 09-22-2010, 07:19 PM
 
Join Date: Sep 2008
Location: usa
Posts: 215
saabaero is on a distinguished road

Yes it is possible since I get the same message whenever I open a previously saved project regardless of the precision set in the settings when it was saved. You are correct about the question in the dialog box being ambiguous but I think it is asking to change a file saved in a lower precision to the current higher precision.The question is how do you set what precision the file is saved as? You would think it would be the same as the setting it was created in.

Regardless, I still see the coordinates in the NC file as 3 decimal places with a new file I created with an 8 decimal place setting. A key that the precision is correct in the project file is when I use the measure command. The precision of the measured values and coordinates are shown in the precision I chose in the project settings.
Reply With Quote

  #4   Ban this user!
Old 09-23-2010, 08:06 AM
 
Join Date: Apr 2008
Location: US
Posts: 58
Cairns is on a distinguished road

I did some work last night and can confirm that I'm seeing the same results as you.
__________________
111011 101101 101001
Reply With Quote

  #5   Ban this user!
Old 09-23-2010, 10:56 AM
 
Join Date: Sep 2005
Location: USA
Posts: 366
RTP_Burnsville is on a distinguished road

Same issue here and also with that annoying popup dialog box talking about precision (3 vs 5 for me). I have the all-post version and briefly looked at the Tormach driver and noticed a tolerence variable had a value of 3. I tried to change it to 5 but could not save it. I have not had time to investigate fruther.

Where I noticed an issue is when calculating the feed rate. If one gets the chip rate too low the calculated feed value is set to F0 by the post process. This appears to be a rounding issue with the 3 tolerence digits and puts an F0 into the Gcode. Needless to say if that happens (and you don't catch it)everything just hangs and one gets to restart.

If I remember right there is another post here from several months back about the pop menu and possibly this same issue.

Robert
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-23-2010, 03:14 PM
 
Join Date: Sep 2008
Location: usa
Posts: 215
saabaero is on a distinguished road

Thanks for the replies! At least I'm not the only one seeing this issue.

I did forward my initial post to Tormach for them to comment on.

I agree, F0's are not a good thing to have in a NC file. They really extends the machining time considerably!
Reply With Quote

  #7   Ban this user!
Old 09-23-2010, 04:06 PM
 
Join Date: Nov 2005
Location: USA
Posts: 124
mayhugh1 is on a distinguished road

Hi all,
There are three places in the Sprutcam workflow that determine the precision of the coordinates output in the G-code. The first is in the Measurement units tab of the Setup menu of Sprutcam. I use Imperical units exclusively and I have the indicated precision set to 5 (places to the right of the decimal.) The second place can be tricky. It is in the machine parameters for the particular machine you are using. Under Control Parameters ->Tolerance(digits) you will find a number here which by default in Sprutcam is 3 digits (to the right of the decimal). This defaults to 3 digits because it is a reasonable number for metric units which is what Sprutcam assumes by default. You can change this to 5 units as if you are an Imperical units user as I am. You must change it before you bring in your model and start defining macine operations, though. Choosinig your machine and setting this parameter should be the very first thing you do after launching the application. This default value of 3 is contained in the machine xml file (one file for all machines) and if you change it there you won't have to remember to change it each time you start Sprutcam. There is a tutotial on the Tormach site about how to customize Sprutcam's xml files. The third place that affects the outputted precision is in the postprocessor. Sprutcam's postprocessors allow a total of 8 digits maximum to be used to hold a coordinate register's output, i.e. x,y,z. Because the Tormach postprocessor was designed to handle metric/Imperical units transparently, a value of 4 digits to both the right and left of the decimal was selected by default. You can certainly modify this if you are using the all posts version but I wouln't recommend this unless you you kow what you are doing. Writing Sprutcam posts isn't for the faint-hearted. So, if you're only seeing 3 digits to the right of the decimal of your G-code, you are probably not setting the machine parameters to 4 or more digits. If you are setting this parameter, then you are somehow using a very old version of the Tormach postprocessor. A change to 4 digits to the right of the decimal from 3 digits was made some three-four years ago.

I agree about the very confusing message box that you sometimes see. Usually this message is warning you that you are trying to open a project with the current machine precision parameter set to a different value than were used to create the project you are trying to re-open. For me this was typically an "aw-sh*t" message which usually meant that I had forgotten to properly set the machine precision when I originally saved the project and now I have to start over. After I learned about the machine xml trick, I haven't seen this message again.
If you are a mixed metric/Imperical user you will see a similar message when opening a metric project with the current units set to Imperical or vice-versa. It is asking if you want to convert the units. Unfortunately if you allow it to try to convert the units, not everything gets converted and you can run into some pretty confusing things later in the workflow, especially in the lathe operations. It is best to stop and change the current units to match those of the project.

With respect to the feedrate, only 4 digits total are used in Sprutcam's postprocessors to output the Feedrate or F value. The Tormach post uses all four digits to the left of the decimal and so feedrate values less than 1 are rounded down to 0. I modified the version I use to 3 digits to the left and 1 digit to the right so I can output feedrates less than 1. I submitted the modified post to Tormach a few years ago but they weren't hearing complaints from other users and probably felt there was less risk leaving things as they are. Another problem that I seem to be the only one having is that the current post spins my fourth axis in a direction opposite to the direction that it should. I made many successful 4th axis parts until one day I tried to cut a complicated assymetrical part and discovered the issue. I modified the post I use to correct this also, but have not heard of a single complaint from another user. - Terry

Last edited by mayhugh1; 09-23-2010 at 04:32 PM.
Reply With Quote

  #8   Ban this user!
Old 09-23-2010, 07:43 PM
 
Join Date: Apr 2008
Location: US
Posts: 58
Cairns is on a distinguished road

With regards to seeing only 3 digits of precision in the GCode.

Go to the Machining tab
Tormach
parameters
machines tab
Tormach
Control Parameters
Tolerance (Digits) is set to 3

I changed it to 4 and now see 4 points in my Gcode.
__________________
111011 101101 101001
Reply With Quote

  #9   Ban this user!
Old 05-31-2011, 06:31 AM
 
Join Date: Jun 2006
Location: Australia
Posts: 139
bevinp is on a distinguished road

Hi Terry,
You may be inerested in a problem I had today that I found to be related to the tolerance setting.
The code produced by SC 7 for a pocketing operation would not load into to Mach3 because of a zero radius occurred in G3 command. After producing the code again (with the same result), and scratching my head (and various other parts of my body), I wondered if it was the tolerance difference between SC and Mach3. And yes it was. After I changed the tolerance from the SC default 3 digits to 5, Mach 3 loaded the new code without complaint.

I guess it was a rare event that the G3 maths reduced to zero radius because of the tolerance. But I am very pleased that this forum is so active with valuable information.

Thanks very much for your wisdom.

Regards,
Bevin
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help!- Restore dos on Grundig Numeric oyvind General CNC (Mill and Lathe) Control Software (NC) 0 05-21-2010 02:18 AM
Need Help!- General Numeric Redryder_85 General CNC (Mill and Lathe) Control Software (NC) 8 10-16-2009 12:16 AM
Need Help!- Using the dot key of the Numeric keypad - PLEASE HELP nmg.mendes Cimatron 3 06-18-2009 04:17 PM
NUMERIC CHANGE ON A FANUC OM? offroadxx Fanuc 6 01-06-2008 07:58 PM
precision servos (digital) vs. precision stepper (<3.6degree step angle) bennyben Servo Motors and Drives 6 03-05-2004 10:11 PM




All times are GMT -5. The time now is 06:10 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361