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 > CamBam


CamBam Discuss CamBam software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-08-2009, 10:38 PM
 
Join Date: Jul 2008
Location: New Zealand
Posts: 473
Dougal is on a distinguished road
Need Direction for Arcs.

Can someone clarify the G-code arc descriptions and how they are generated from Cambam?

I understand the absolute vs incremental aspect well, but there seems to be also variation in describing arcs from start-points, end-points and centres.

Which does CAMBAM do by default, is there a standard for each of absolute and incremental?

Originally Posted by code from CAMBAM
G0 X-73.4983 Y10.1206
G1 F50.0 Z0.1
G2 F200.0 X-72.9524 Y10.2539 I-72.7909 J8.4078
G3 X-72.6026 Y10.32 I-73.1773 J12.4036
I'm working with a 4000 line engraving file which starts with the above. The interesting point is I engraved it successfully (mach3) but am having no luck running it through cut-viewer to demonstrate how it went.

It's abosolute positioning (obviously) but cutviewer tells me I have a difference in arc length with the given arc centre (73.8 vs 73.27mm).
How do I fix it?
__________________
My X2 CNC Brain Build: http://www.cnczone.com/forums/showthread.php?t=61345
Gecko G250 wiring errors: http://www.cnczone.com/forums/showthread.php?t=68960
Tweet this Post!Share on Facebook
Reply With Quote

  #2  
Old 08-08-2009, 11:39 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 19,558
ger21 is on a distinguished road
Buy me a Beer?

All G2/G3 arcs specify the endpoint of the arc. The start point is the current position prior to the G2/G3.

Absolute/Incremental refers to the Center location (I=X, J=Y). For Absolute arcs, I and J specify the X and Y coordinates of the center. For incremental arcs, the center is located at X-I, Y-J, when you have G2 Xx Yy Ii Jj.


It appears that your code is using absolute arcs, and I'm guessing that Cutviewer is looking for Incremental arcs, which are more commonly used. I don't use CAMBAM, but perhaps it has an option to change to incremental.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 08-09-2009, 02:38 AM
 
Join Date: Jul 2008
Location: New Zealand
Posts: 473
Dougal is on a distinguished road

Originally Posted by ger21 View Post
All G2/G3 arcs specify the endpoint of the arc. The start point is the current position prior to the G2/G3.

Absolute/Incremental refers to the Center location (I=X, J=Y). For Absolute arcs, I and J specify the X and Y coordinates of the center. For incremental arcs, the center is located at X-I, Y-J, when you have G2 Xx Yy Ii Jj.


It appears that your code is using absolute arcs, and I'm guessing that Cutviewer is looking for Incremental arcs, which are more commonly used. I don't use CAMBAM, but perhaps it has an option to change to incremental.
Thanks for the reply.
Yes CAMBAM can do incremental or absolute. I ran that particular job as absolute because I was still using a trial version of Mach3 and had to split the code into 8 pieces to work.
With a whole lot of luck the job ran perfectly split this way. Now I'm trying to show people how I did it and running into problems.

This is what the cutviewer help file says
Originally Posted by cutviewer
There are exactly 5 different string values that can be used with each:

I and J are absolute
Center.

I and J are incremental from the XY end point of the arc
end-center.

I and J are incremental from the start point of the arc
center-start.
So the standard would be end-center for either incremental or absolute?

Cheers.
__________________
My X2 CNC Brain Build: http://www.cnczone.com/forums/showthread.php?t=61345
Gecko G250 wiring errors: http://www.cnczone.com/forums/showthread.php?t=68960
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 08-09-2009, 08:36 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 19,558
ger21 is on a distinguished road
Buy me a Beer?

I made a mistake on the IJ (it was late ) IJ is always relative to the start point of the arc, which is the current position prior to the G2/G3.

So the standard would be end-center for either incremental or absolute?
Not sure what you're asking? For the code you've posted, you'd need to set Cutviewer to Absolute IJ.

For Incremental IJ mode (for Mach3 and every other control I've seen), Use the "Incremental from Start Point of the Arc"


Incremental from the end point will not run in Mach3, and I doubt that CamBam can output that type of G2/G3.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 08-09-2009, 06:03 PM
 
Join Date: Jul 2008
Location: New Zealand
Posts: 473
Dougal is on a distinguished road

Originally Posted by ger21 View Post
Not sure what you're asking? For the code you've posted, you'd need to set Cutviewer to Absolute IJ.
I'm not entirely sure what I'm asking either. Hopefully 10bulls can chime in and clear it up.
Cutviewer doesn't have a simple "absolute or incremental" mode, rather it has a series of instructions with variations on absolute and incremental.

I'm getting errors from cutviewer saying "the distance from arc start to centre doesn't match the distance from arc centre to end".
Example errors are R1=73.8mm, R2= 73.27mm.
__________________
My X2 CNC Brain Build: http://www.cnczone.com/forums/showthread.php?t=61345
Gecko G250 wiring errors: http://www.cnczone.com/forums/showthread.php?t=68960
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 08-09-2009, 06:50 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 19,558
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by Dougal View Post
Cutviewer doesn't have a simple "absolute or incremental" mode, rather it has a series of instructions with variations on absolute and incremental.
Can you give me a screen shot of the options?

You'll get that error when in the wrong mode. Cut Planner must be set up for the wrong mode. I'm guessing it's set up for incremental, since that's what most use. And that's why it's not working with your absolute code.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 08-10-2009, 03:24 AM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 502
10bulls is on a distinguished road

Gerry as usual is spot on - CutViewer does seem to insist on Incremental arc mode and I haven't found a way to change it. I always use incremental arc centers so did not realise this myself until a few days ago.

In CamBam, click on the Machining folder in the drawing tree and you should see a property called ArcCenterMode which you can change to Incremental.

In Mach3, under general config, there is a matching option called arc centers which you can set to Inc.

I hope this helps.
__________________
www.cambam.co.uk
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 08-10-2009, 04:09 AM
 
Join Date: Jul 2008
Location: New Zealand
Posts: 473
Dougal is on a distinguished road

Originally Posted by 10bulls View Post
Gerry as usual is spot on - CutViewer does seem to insist on Incremental arc mode and I haven't found a way to change it. I always use incremental arc centers so did not realise this myself until a few days ago.

In CamBam, click on the Machining folder in the drawing tree and you should see a property called ArcCenterMode which you can change to Incremental.

In Mach3, under general config, there is a matching option called arc centers which you can set to Inc.

I hope this helps.
Thanks for chiming in.
I'm quite familiar with the absolute vs incremental arcs in CAMBAM. But interestingly I cannot get this engraving task to show in cutviewer with either convention.
In absolute the error displays roughly as R1=73.8 and R2 = 73.27.
In incremental the error displays roughly as R1=0 and R2 = 0.56.

Here are the first few lines of code, can someone else try it and see what they get?
Originally Posted by Incremental G-code from CAMBAM
G0 X-73.4983 Y10.1206
G1 F50.0 Z-0.5
G2 F200.0 X-72.9524 Y10.2539 I0.0 J0.0
G3 X-72.6026 Y10.32 I0.0 J0.0
G3 X-72.2796 Y10.4697 I0.0 J0.0
G3 X-72.1721 Y10.9054 I0.0 J0.0
G3 X-72.1082 Y12.2471 I0.0 J0.0
G1 Y13.25
__________________
My X2 CNC Brain Build: http://www.cnczone.com/forums/showthread.php?t=61345
Gecko G250 wiring errors: http://www.cnczone.com/forums/showthread.php?t=68960
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 08-11-2009, 02:43 AM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 502
10bulls is on a distinguished road

Hmmm... something does look odd with those I,J values.

Is it possible to upload a .cb file? You may need to zip it to attach it to this forum, or feel free to email to me directly at 10bulls at gmail dot com and I will do some more investigation.

Apologies if it takes a little while to respond to you at the moment but I am away from my office this week.
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 08-11-2009, 02:51 AM
 
Join Date: Jul 2008
Location: New Zealand
Posts: 473
Dougal is on a distinguished road

Originally Posted by 10bulls View Post
Hmmm... something does look odd with those I,J values.

Is it possible to upload a .cb file? You may need to zip it to attach it to this forum, or feel free to email to me directly at 10bulls at gmail dot com and I will do some more investigation.

Apologies if it takes a little while to respond to you at the moment but I am away from my office this week.
I will email you a copy. No hurry at all.

Cheers.
__________________
My X2 CNC Brain Build: http://www.cnczone.com/forums/showthread.php?t=61345
Gecko G250 wiring errors: http://www.cnczone.com/forums/showthread.php?t=68960
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-15-2009, 07:01 PM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 502
10bulls is on a distinguished road

Originally Posted by Dougal View Post
I will email you a copy. No hurry at all.

Cheers.
Thanks Dougal, I got your files and did some investigation - and thank you for your patience.

I tracked the problem down to the WorkPlane setting in the Engraving machine operation. This was set to Workplane=Unknown.

The default WorkPlane parameter is the XY plane and controls which planes arcs are defined in and whether to use IJ, IK or JK arc parameters. Unkown confused the gcode output resulting in 0 I & J parameters.
To be honest, I am not sure why I put the Unknown option in the list of WorkPlane options and I have made a note to take it out of the current development version.
I apologise if this has caused confusion. Setting this property back to the XY plane caused the I J arc parameters to come out correctly.

The other file you sent seemed OK, apart from the use of ArcCenterMode=Absolute. I changed this to Incremental and was able to simulate both your files in CutViewer without any problems.

I hope this helps.
__________________
www.cambam.co.uk
Tweet this Post!Share on Facebook
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
Help With Arcs Pause emvali Bridgeport and Hardinge Mills 24 09-12-2009 05:18 PM
G320/G340 'Required Direction Setup' and 'Required Direction Hold' times? margni74 Gecko Drives 2 12-05-2008 09:10 PM
Arcs Anxious Post Processors 11 09-17-2008 11:41 PM
Need Help!- I and J 3D arcs mmachining BobCad-Cam 7 02-14-2008 02:01 PM
3d arcs? stevespo BobCad-Cam 10 08-31-2007 09:02 PM




All times are GMT -5. The time now is 04:09 PM.





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