Re: G code interpreter with Visual Basic
I know nothing about your motion controllers, but if the motion controllers have native arc commands available then all you have to do is pass the proper command parameters to the controller.
If there are no native arc commands available, then the Atan2() math function is your friend. You can almost directly plug in the I and J from the G code into the Atan2() function and create an array of tiny X/Y moves to generate the arc, it's just simple trig. This is my prefered method, but be careful of rounding errors creeping in, you need to write code to correct the rounding errors as you are generating the array. This is because you are working in floating point math, but the controller only understands integer values for the encoder pulses.
Jim Dawson
Sandy, Oregon, USA