Error 021 Fanuc with generated NC code from Edgecam
Hi,
I generated codes with Edgecam, but I get the Error 021 Illegal plane axis from the machine. It's on Fanuc 18i-MB.
This is part of the generated code:
O0001
(BOTTOM)
G21 G90 G40
T01 M06 (USER DEFINED)
G54
S8000 M3
M11
G0 X-26.849 Y0.009
G43 H1 Z5.0
Z2.0
G17 G2 X-31.649 Z-1.9 I-2.4 J0.0 K7.8 F224.0
X-26.849 Z-5.8 I2.4 J0.0 K7.8
X-26.888 Y0.437 I-2.4 J0.0 F640.0
G1 X-26.859 Y0.224
X-26.849 Y0.009
X-26.865 Y-0.741
G2 X-28.242 Y-2.577 R2.224
X-31.739 Y-1.297 R2.729
X-30.245 Y2.641 R2.779
X-27.54 Y2.265 R2.76
X-26.645 Y1.391 R4.681
X-26.078 Y-0.194 R3.075
X-27.876 Y-3.266 R3.078
X-30.291 Y-3.44 R3.404
X-32.636 Y1.339 R3.563
X-28.072 Y3.464 R3.613
X-26.369 Y2.396 R4.149
X-26.227 Y-3.076 R3.942
X-27.076 Y-3.801 R5.166
X-32.062 Y-3.537 R4.317
X-33.125 Y-2.335 R4.393
X-33.62 Y-1.219 R5.569
X-31.123 Y4.15 R4.497
X-29.931 Y4.508 R5.499
X-24.935 Y2.072 R4.949
X-24.346 Y0.411 R4.842
X-24.298 Y-0.928 R6.09
X-27.3 Y-4.987 R4.982
X-29.036 Y-5.397 R5.117
G1 X-29.697 Y-5.394
G2 X-31.095 Y-5.126 R6.467
X-34.76 Y0.074 R5.407
G1 X-34.712 Y0.729
X-34.575 Y1.407.........
Hope someone can help me with this.
Thanks
Re: Error 021 Fanuc with generated NC code from Edgecam
On what line do you get the error, if it is after the Z2.0 at the start then the machine does not like the G17 code. The G17
is on the same line with the J0.0 and the J is for the Y-axis different than the G17 call out?
Re: Error 021 Fanuc with generated NC code from Edgecam
You have some serious problems in this post. Do you know how to modify the post? If so you need to sort out the plane switching and arc commands. If not, get a professional in.
Sent from my iPad using Tapatalk
Re: Error 021 Fanuc with generated NC code from Edgecam
I get the error after the z2.0 indeed. Could it be that K in the G2 code? G17 is just XY-plane if I'm correct.
Re: Error 021 Fanuc with generated NC code from Edgecam
What do you mean with problems in this post? Is it the actual thread or do you mean the code?
Re: Error 021 Fanuc with generated NC code from Edgecam
I have to agree with Steve, your post has lots of problems. Or the coordinate system setup? The program is cutting in the x,z plane?
Re: Error 021 Fanuc with generated NC code from Edgecam
It starts with a movement in xy and z plane with a helical movement and then going to only cutting in the xy-plane
Re: Error 021 Fanuc with generated NC code from Edgecam
It is not a 3D arc. It is helical motion. So, K-word in G02 block is not correct.
Re: Error 021 Fanuc with generated NC code from Edgecam
Quote:
Originally Posted by
sinha_nsit
It is not a 3D arc. It is helical motion. So, K-word in G02 block is not correct.
Thank you, that was the solution! I found an option in the postprocessor to turn of the 3D arc. I had to turn on "Suppress Pitch in Helical Moves" in the options
Hope it helps others too.