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! > Machine Controllers Software and Solutions > NCPlot G-Code editor / backplotter


NCPlot G-Code editor / backplotter Discuss NCPlot software here.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-09-2010, 11:01 AM
 
Join Date: Dec 2005
Location: US
Posts: 42
forhire is on a distinguished road
Incremental arcs and Break arcs into lines

I have a thread mill path that I'm playing with. I need to break the arcs into lines for an old controller. The arcs are incremental. I've been able to break arcs that are absolute but the incremental arcs don't break properly. I tried setting the arc centers to absolute without success. Is there a way to convert incremental paths to absolute prior to breaking?

This is the test code:
G90 G00 X0 Y0
G91 G00 X0 Y0 Z-0.379
G01 G41 D60 X0.0148 Y-0.0802 Z0 F18.59
G91 G03 X0.0802 Y0.0802 Z0.0038 R0.0802 F18.59
G91 G03 X0 Y0 Z0.0417 I-0.0950 J0 F61.97
G91 G03 X-0.0802 Y0.0802 Z0.0038 R0.0802
G00 G40 X-0.0148 Y-0.0802 Z0
G90 G00 Z1.0000
Reply With Quote

  #2   Ban this user!
Old 09-09-2010, 05:04 PM
 
Join Date: Oct 2007
Location: usa
Posts: 48
patcareyis is on a distinguished road
Coordinates to absolute

Yes you can convert coordinates to absolute in NcPlot 2.20
Highlight the code that your editing (select the whole G91 string) then go to Tools\Convert Coordinates to ABS then change that G91 to G90 then you should be able to break arcs into lines. After finishing you can change the code back to incremental
Highlight the code that your editing (select the whole G90 string) then go to Tools\Convert Coordinates to INC then change that G90 to G91
Reply With Quote

  #3   Ban this user!
Old 09-09-2010, 05:25 PM
 
Join Date: Oct 2007
Location: usa
Posts: 48
patcareyis is on a distinguished road

you code may need to be cleaned up first i had to get rid of feed rates and z height save file under different name and open both under file\compare file. Then edit and add back needed feed rates and z height also if your controller doesn’t need redundant G moves (G00,G01,G02,G03) clean them up to
Reply With Quote

  #4   Ban this user!
Old 09-09-2010, 07:39 PM
 
Join Date: Dec 2005
Location: US
Posts: 42
forhire is on a distinguished road

Still can't quite get this to work. This is a helix so I can't really strip the z values but the z values are converting to abs fine.

This is after conversion:
G90 G00 X0 Y0
G00 X0 Y0 Z-0.379
G01 G41 D60 X0.0148 Y-0.0802 Z-0.379 F18.59
G03 X0.095 Y0 Z-0.3752 R0.0802 F18.59
G03 X0.095 Y0 Z-0.3335 I-0.0950 J0 F61.97
G03 X0.0148 Y0.0802 Z-0.3297 R0.0802
G00 G40 X0 Y0 Z-0.3297
G90 G00 Z1.0000

This appears to plot fine but when I convert the arcs to lines it breaks. Clearly I'm missing a step. Do you see anything obvious?
Reply With Quote

  #5  
Old 09-09-2010, 11:20 PM
MetLHead's Avatar
Gold Member
 
Join Date: Mar 2003
Location: USA
Posts: 740
MetLHead is on a distinguished road

Arggg... sorry about that. I thought I fixed the breaking of helical arcs but there is still something broken. Here is your code (in absolute):

G00 X0 Y0
G00 X0 Y0 Z-0.379
G01 G41 D60 X0.0148 Y-0.0802 Z-0.379 F18.59
G01F18.59X0.0261Y-0.0794Z-0.3787
X0.0372Y-0.077Z-0.3783
X0.0478Y-0.0731Z-0.378
X0.0577Y-0.0677Z-0.3776
X0.0669Y-0.061Z-0.3773
X0.0749Y-0.0531Z-0.3769
X0.0818Y-0.0441Z-0.3766
X0.0873Y-0.0342Z-0.3763
X0.0914Y-0.0236Z-0.3759
X0.094Y-0.0126Z-0.3756
X0.095Y-0.0013Z-0.3752
X0.095Y0Z-0.3752
G01F61.97X0.0942Y0.0123Z-0.3743
X0.0918Y0.0244Z-0.3735
X0.0879Y0.0361Z-0.3726
X0.0825Y0.0471Z-0.3718
X0.0757Y0.0574Z-0.3709
X0.0676Y0.0667Z-0.37
X0.0584Y0.0749Z-0.3692
X0.0482Y0.0819Z-0.3683
X0.0372Y0.0874Z-0.3674
X0.0256Y0.0915Z-0.3666
X0.0135Y0.094Z-0.3657
X0.0013Y0.095Z-0.3649
X-0.0111Y0.0944Z-0.364
X-0.0232Y0.0921Z-0.3631
X-0.0349Y0.0884Z-0.3623
X-0.046Y0.0831Z-0.3614
X-0.0564Y0.0764Z-0.3606
X-0.0658Y0.0685Z-0.3597
X-0.0741Y0.0594Z-0.3588
X-0.0812Y0.0493Z-0.358
X-0.0869Y0.0384Z-0.3571
X-0.0911Y0.0268Z-0.3562
X-0.0938Y0.0148Z-0.3554
X-0.095Y0.0025Z-0.3545
X-0.0945Y-0.0098Z-0.3537
X-0.0924Y-0.022Z-0.3528
X-0.0888Y-0.0337Z-0.3519
X-0.0837Y-0.0449Z-0.3511
X-0.0772Y-0.0554Z-0.3502
X-0.0694Y-0.0649Z-0.3494
X-0.0604Y-0.0734Z-0.3485
X-0.0504Y-0.0806Z-0.3476
X-0.0395Y-0.0864Z-0.3468
X-0.028Y-0.0908Z-0.3459
X-0.016Y-0.0936Z-0.345
X-0.0038Y-0.0949Z-0.3442
X0.0086Y-0.0946Z-0.3433
X0.0207Y-0.0927Z-0.3425
X0.0326Y-0.0892Z-0.3416
X0.0438Y-0.0843Z-0.3407
X0.0544Y-0.0779Z-0.3399
X0.064Y-0.0702Z-0.339
X0.0726Y-0.0613Z-0.3382
X0.0799Y-0.0514Z-0.3373
X0.0859Y-0.0407Z-0.3364
X0.0904Y-0.0292Z-0.3356
X0.0934Y-0.0172Z-0.3347
X0.0949Y-0.005Z-0.3339
X0.095Y0Z-0.3335
G01X0.0942Y0.0113Z-0.3332
X0.0918Y0.0224Z-0.3328
X0.0879Y0.033Z-0.3325
X0.0825Y0.0429Z-0.3321
X0.0758Y0.0521Z-0.3318
X0.0679Y0.0601Z-0.3314
X0.0589Y0.067Z-0.3311
X0.049Y0.0725Z-0.3308
X0.0384Y0.0766Z-0.3304
X0.0274Y0.0792Z-0.3301
X0.0161Y0.0802Z-0.3297
X0.0148Y0.0802Z-0.3297
G00 G40 X0 Y0 Z-0.3297
G00 Z1.0000

I'll get this fixed ASAP.

Thanks,
Scott
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-10-2010, 12:38 AM
 
Join Date: Dec 2005
Location: US
Posts: 42
forhire is on a distinguished road

Originally Posted by MetLHead View Post
Arggg... sorry about that. I thought I fixed the breaking of helical arcs but there is still something broken. Here is your code (in absolute):
Thanks Scott! I thought I was doing something wrong.
Reply With Quote

  #7  
Old 09-11-2010, 11:37 PM
MetLHead's Avatar
Gold Member
 
Join Date: Mar 2003
Location: USA
Posts: 740
MetLHead is on a distinguished road

OK, this is fixed now. I just released NCPlot v2.21 which includes your fix plus a few other improvements.

Thanks,
Scott
Reply With Quote

  #8   Ban this user!
Old 09-13-2010, 07:46 PM
 
Join Date: Dec 2005
Location: US
Posts: 42
forhire is on a distinguished road

Thanks for the fix Scott. Works great.
Reply With Quote

  #9   Ban this user!
Old 09-16-2010, 01:18 AM
 
Join Date: Dec 2005
Location: US
Posts: 42
forhire is on a distinguished road

Scott,

I think there may yet be an issue with the incremental helical arcs. With the code below the arcs are shifted when broken into lines. If I create this routine as absolute the arcs break fine. Something is still weird with the inc arcs.

This a drill and thread mill routine

N5 G00 G53 G40 G60 G90 D0 Z+0.0000
N10 G80
N15 T1 M06
N20 G54 X+0.0000 Y+0.0000 M08
N25 Z+0.039370 D1 S10729 M03
; ( PRE-DRILLING )
N30 G01 Z-0.039370 F42.24
; ( DRILLING )
N35 G01 Z-0.501378 F126.72
N40 G00 Z+0.0000
N45 G00 Z-0.462008
N50 G01 Z-0.748346
N55 G00 Z+0.0000
; ( CONVENTIONAL MILLING )
N60 G00 Z-0.636102
N65 G01 G91 G42 G64 X+0.0000 Y+0.116220 F59.14 ; (F8.69)
N70 G02 X+0.000000 Y-0.272480 I+0.0000 J-0.136240 Z-0.008333
N75 G02 X+0.0000 Y+0.000000 I+0.0000 J+0.156260 Z-0.055551 ; (F15.15)
N80 G02 X+0.000000 Y+0.272480 I+0.0000 J+0.136240 Z-0.008333 F147.84 ; (F21.72)
N85 G00 G40 G60 X+0.000000 Y-0.116220
N90 G00 G90 Z+0.039370
N95 G00 G53 G40 G90 D0 Z+0.0000 M95
N100 M30
Reply With Quote

  #10  
Old 09-16-2010, 10:05 AM
MetLHead's Avatar
Gold Member
 
Join Date: Mar 2003
Location: USA
Posts: 740
MetLHead is on a distinguished road

The problem here seems to be the comment at the end of the line, or rather the problem is with the way NCPlot updates the block:

G01; (F15.15)X-0.0158Y0.0008Z-0.0009

The X,Y,Z,I,J,K values are removed from the block and new values are tacked on to the end of whatever is left. In this case when the semicolon ";" is encountered NCPlot takes this to be the end of the line and so this block is being ignored. If you remove the "; (F15.15)" it will plot correctly. So I think the solution is going to be a change to the way I update these blocks.

Thanks,
Scott
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-16-2010, 10:55 AM
 
Join Date: Dec 2005
Location: US
Posts: 42
forhire is on a distinguished road

Originally Posted by MetLHead View Post
G01; (F15.15)X-0.0158Y0.0008Z-0.0009
Boy I feel dumb. I looked at the converted code but just couldn't see it. Your right, once I remove the comments it works perfectly. Thanks again.
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
Lines & Arcs Not Showing Up XxLT250RxX Mastercam 8 12-04-2009 12:30 PM
Converting lines to arcs? Fleck Rhino 3D 0 03-14-2009 12:47 PM
Tangent lines joining two arcs yongchiprsnapr Mastercam 18 11-30-2008 04:39 PM
points to lines/arcs vmax549 Autodesk Software (Autocad, Inventor etc) 7 10-14-2008 08:05 AM
lines-arcs vs spline problem metlcutr55 General CAM Discussion 1 07-07-2006 10:16 AM




All times are GMT -5. The time now is 10:37 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