585,712 active members*
4,335 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Error 021 Fanuc with generated NC code from Edgecam
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2015
    Posts
    5

    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

  2. #2
    Join Date
    Mar 2015
    Posts
    3

    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?

  3. #3
    Join Date
    May 2009
    Posts
    8

    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

  4. #4
    Join Date
    Feb 2015
    Posts
    5

    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.

  5. #5
    Join Date
    Feb 2015
    Posts
    5

    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?

  6. #6
    Join Date
    Mar 2015
    Posts
    3

    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?

  7. #7
    Join Date
    Feb 2015
    Posts
    5

    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

  8. #8
    Join Date
    Feb 2006
    Posts
    1792

    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.

  9. #9
    Join Date
    Feb 2015
    Posts
    5

    Re: Error 021 Fanuc with generated NC code from Edgecam

    Quote Originally Posted by sinha_nsit View Post
    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.

Similar Threads

  1. Fanuc 6M error code 61
    By Stille73 in forum Fanuc
    Replies: 1
    Last Post: 01-25-2015, 02:50 AM
  2. Help with getting a Mach3 machine to read a code generated in Mastercam x5
    By poolrod2 in forum Uncategorised CAM Discussion
    Replies: 8
    Last Post: 09-24-2013, 11:39 PM
  3. FANUC Error Code HELP....
    By mckearnj in forum RFQ Feedback
    Replies: 1
    Last Post: 04-12-2011, 04:48 PM
  4. Replies: 8
    Last Post: 12-15-2010, 09:32 PM
  5. HDI remove the .5 x,y offset generated in Mach 3 when I upload code?
    By billmiller in forum Mach Software (ArtSoft software)
    Replies: 2
    Last Post: 08-20-2010, 01:33 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •