CamBam

Support => CamBam help (General usage) => Topic started by: Haasomation on January 13, 2018, 21:28:47 pm



Title: Gcode not importing correctly into cb
Post by: Haasomation on January 13, 2018, 21:28:47 pm
I'm trying to import a nc file and the arcs aren't coming out correct. I've tried every option for Arc Center Mode as well as Absolute vs. Incremental and nothing is fixing it. The nc has been used on the cnc and imported into NC Corrector and the arcs came out correctly both times, so I know it's a cb problem and not the nc code. Any ideas would be greatly appreciated. Thanks.

I've tried it in both 0.9.8.and 1.0


Title: Re: Gcode not importing correctly into cb
Post by: Bob La Londe on January 13, 2018, 23:05:29 pm
(NOTES)

NOT *


Title: Re: Gcode not importing correctly into cb
Post by: Haasomation on January 13, 2018, 23:07:46 pm
The cnc I use is the Acurite 3500i. The only symbol it will accept as a comment is a *

() is not an option

It seems like CB can read the * without a problem. The part is cannot read is the arc command. It would seem cb is only set up to read 'G2 X Y I J'  arcs (which my cnc cannot handle) instead of 'G2 X Y R' arcs. If I import an nc code that includes * but no G2 or G3 commands it imports perfectly.


Title: Re: Gcode not importing correctly into cb
Post by: dh42 on January 13, 2018, 23:43:29 pm
Hello

Yes, CB use only IJK for arcs (read/write Gcode)

++
David


Title: Re: Gcode not importing correctly into cb
Post by: Haasomation on January 14, 2018, 00:00:30 am
Thanks. So is there any way that you might know of to get around this problem?

cb can actually write nc using R for arcs if you use this code in the post instead of default Arc CW/CCW macros:  

Arc CCW: {$g3} {$x} {$y} {$z} R{$arc.radius}
Arc CW:   {$g2} {$x} {$y} {$z} R{$arc.radius}


Title: Re: Gcode not importing correctly into cb
Post by: dh42 on January 14, 2018, 00:37:09 am
No, I do not know any way to configure that for reading. I guess it's hard coded in the NCfile MOP.

++
David


Title: Re: Gcode not importing correctly into cb
Post by: Haasomation on January 14, 2018, 02:34:23 am
I discussed the problem with a math expert and he said it was possible to do the conversion as long as you make sure the polarity is correct for each quadrant. I found the needed formulas here:
http://www.instructables.com/id/How-to-program-arcs-and-linear-movement-in-G-Code-/
Me and my math friend will keep working on it and find the more straight forward, easier to implement math form and get it back to you.