Need Help! INVALID I, J, K


Results 1 to 8 of 8

Thread: INVALID I, J, K

  1. #1

    Default INVALID I, J, K

    I am having some issues with a program we were running in the shop here; I edited the code to move the hole location by -.016" in the Y axis. I will post the original to the current. I cannot figure out why it is alarming out on me but I have not been too great with understanding I, J, K since I had first left my classes involving them. Below is the code:


    Revised for Y move code:

    N800 T8 M6
    N820 G0 G90 G58 X-2.016 Y-0.016 A90. S5500 M3
    N830 G43 H8 Z5.8425
    N840 Z4.0425
    N850 G1 Z3.8425 F25.
    N860 G41 D8 X-1.6405 F40.
    N870 G3 Z3.7925 I-.3755 J0.
    N880 Z3.7425 I-.3755 J0.
    N890 Z3.6925 I-.3755 J0.
    N900 Z3.6425 I-.3755 J0.
    N910 Z3.5925 I-.3755 J0.
    N920 Z3.5425 I-.3755 J0.
    N930 Z3.4925 I-.3755 J0.
    N940 Z3.4425 I-.3755 J0.
    N950 Z3.3925 I-.3755 J0.
    N952 Z3.3425 I-.3755 J0.
    N960 X-2.132 Y.3611 Z3.3275 I-.3755 J0.
    N970 X-1.6405 Y-0.016 I.116 J-.3571
    N980 X-2.132 Y.3611 I-.3755 J0.
    N990 G1 G40 X-2.016 Y-0.016
    N1000 G0 Z5.8425

    Original Code:


    N800 T8 M6
    N820 G0 G90 G58 X-2.016 Y0.0 A90. S5500 M3
    N830 G43 H8 Z5.8425
    N840 Z4.0425
    N850 G1 Z3.8425 F25.
    N860 G41 D8 X-1.6405 F40.
    N870 G3 Z3.7925 I-.3755 J0.
    N880 Z3.7425 I-.3755 J0.
    N890 Z3.6925 I-.3755 J0.
    N900 Z3.6425 I-.3755 J0.
    N910 Z3.5925 I-.3755 J0.
    N920 Z3.5425 I-.3755 J0.
    N930 Z3.4925 I-.3755 J0.
    N940 Z3.4425 I-.3755 J0.
    N950 Z3.3925 I-.3755 J0.
    N952 Z3.3425 I-.3755 J0.
    N960 X-2.132 Y.3771 Z3.3275 I-.3755 J0.
    N970 X-1.6405 Y0.0 I.116 J-.3571
    N980 X-2.132 Y.3771 I-.3755 J0.
    N990 G1 G40 X-2.016 Y0.0
    N1000 G0 Z5.8425

    If anyone could review this and let me know what they see that could be causing this alarm that would be awesome. As of now I cannot tell what the issue is. I am sure it is something with an incorrect start/stop of radius point but like I said I am not good with I, J, K values.

    Similar Threads:
    "The one who follows the crowd will usually go no further than the crowd..."
    -Albert E.


  2. #2
    Member Machineit's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    1852
    Downloads
    0
    Uploads
    0

    Default Re: INVALID I, J, K

    When you move the start location you throw all of the code off. It is all dependent on start and end locations.You could change your Y offset for G58 by the .016 and then it would work. But, otherwise you must rewrite.

    Mike

    Two Haas VF-2's, Haas HA5C, Haas HRT-9, Hardinge CHNC 1, Bother HS-300 Wire EDM, BobCAD V23, BobCAD V28


  3. #3

    Default Re: INVALID I, J, K

    Hmmm...I feel like I may have got away with this in the past; but if that is the case I can simply re-write this code and it can reflect a sketch that I have moved the distance I am hoping to get the feature to move. Is there a way you manually figure that information out? I could use the steps you used to do so.

    "The one who follows the crowd will usually go no further than the crowd..."
    -Albert E.


  4. #4
    Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    63
    Downloads
    0
    Uploads
    0

    Default Re: INVALID I, J, K

    I'm guessing the error comes up at line N960
    If you draw a circle with radius you want ( .3755 ) around the circles center point (-1.6405-.3755,-.016) = (-2.0160,-.016) the point you are asking the to go to ( X-2.132 Y.3771) is not on the circle so you get the alarm.

    xeno@xenomechanics.com
    http://www.xenomechanics.com


  5. #5

    Default Re: INVALID I, J, K

    That makes sense I really appreciate breaking that down for me. Some many years ago I had to write code by hand and had this whole thing figured out. Go figure fast forward 9 years and I have forgot how to do it. Just like riding a bike right?

    "The one who follows the crowd will usually go no further than the crowd..."
    -Albert E.


  6. #6
    Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    63
    Downloads
    0
    Uploads
    0

    Default Re: INVALID I, J, K

    With writing code if you don't use it you loose it. Typically I let MasterCam don't the grunt work with generating G-code. Let me know if you do work it out...

    xeno@xenomechanics.com
    http://www.xenomechanics.com


  7. #7
    Member Machineit's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    1852
    Downloads
    0
    Uploads
    0

    Default Re: INVALID I, J, K

    If you are doing a simple hole, I just use G12 or G13.

    Mike

    Two Haas VF-2's, Haas HA5C, Haas HRT-9, Hardinge CHNC 1, Bother HS-300 Wire EDM, BobCAD V23, BobCAD V28


  8. #8

    Default Re: INVALID I, J, K

    Thank you guys for the responses, in the future I will look to use the G12 or G13 to get some better knowledge on the functions and uses of these commands. Xeno, I used the methods you had mentioned to confirm proper arc start and stops and the program ran like a dream. In regards to an earlier comment, I am able to edit start stops and X and Y values to move and interpolated hole with no problem. My thoughts are I had a typo of some sort and the start stops were moved and incorrect amount which no longer made a true "circle" which obviously when the machine wants an arc to start stop within .001" of one another then it would not work. I now have a good understanding of how this works thanks to the information you have both shared. I appreciate getting me back into the "know" on I, J, K values and the way they work.

    For some background: I would never suggest to edit a value attached to an I, J, K let alone a code that is stock and makes a good part at one point in time. In my case we had a Rotary that was on its last leg and was no longer holding on its brake while machining. To compensate I moved the program every so often to correct for the amount the features moved when this happened. Whether your machines are perfect or not the customer still wants their parts which is the nature of the beast. I am just glad we are no longer editing code for crappy manufacturing equipment! Thanks again all!

    "The one who follows the crowd will usually go no further than the crowd..."
    -Albert E.


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

INVALID I, J, K

INVALID I, J, K