Plot it. You will yourself find out the error.
Use either IJ or R, not both. If you specofy both, IJ is ignored and R is used (on Fanuc).
Hello
I want to write Gcode for a part of Two inside Circle(Arcs) with same center and diffrent radius. but I wrote it simple and I do not know where is problem?
my code is;
G00 X0 Y4
G02 X4 Y0 I4 J4 R4
G00 X2 Y4
G02 X4 Y2 I4 J4 R2
and if I want to write a Gcode for full circle how do I write ?I want to use just G00 and G02 with 2 lines.I have Gcode for circle but I do not want to use it.
Plot it. You will yourself find out the error.
Use either IJ or R, not both. If you specofy both, IJ is ignored and R is used (on Fanuc).
Hello
I think you can try by entering -sign in R parameter value.
R will not work with a complete circle with a Fanuc control. R with a minus sign is programmed when the arc angle is greater than 180deg. However, when the start point of the circular move is the same as the end point (a complete circle), the arc angle is computed as zero deg and the machine will not move if programmed with an R value. I and or J must be used with a complete circle.
Regards,
Bill
What control is this for? It won't work for a Fanuc, Yasnac, Haas, or similar controls. These controls use I and J to specify the center location incrementally from the start point of the arc. Some controls use I and J as absolute center coordinates, in which case this code might be correct.
If you remove the R codes and end up with just this:
G00 X0 Y4
G02 X4 Y0 I4 J4
G00 X2 Y4
G02 X4 Y2 I4 J4
it seems to work, if I and J are absolute values.
For I and J as incremental values, try this:
G00 X0 Y4
G02 X4 Y0 I4 J0
G00 X2 Y4
G02 X4 Y2 I2 J0
For complete circles, with absoloute I and J try this:
G00 X0 Y4
G02 X0 Y4 I4 J4
G00 X2 Y4
G02 X2 Y4 I4 J4
Or complete circles with incremental IJ:
G00 X0 Y4
G02 X0 Y4 I4 J0
G00 X2 Y4
G02 X2 Y4 I2 J0
Absolute or incremental IJK are parameter dependent. Usually, these are incremental distances from the start point.