Invalid I, J, K error on Haas DT1

Invalid I, J, K error on Haas DT1

Windship
Explorer Explorer
1,808 Views
2 Replies
Message 1 of 3

Invalid I, J, K error on Haas DT1

Windship
Explorer
Explorer

Hi All, 

 

I am running into a very frustrating error on my mill. This only happens intermittently, and when I've "solved" it in the past, I usually have no idea what it was that actually fixed it. Basically, after posting the Gcode for a simple pocket, the program runs into a problem at the first G03, giving me an "invalid I, j, K" message (error 304). I've tried everything I can think of; updated the post processor to the latest version, changed tolerance levels in the machine, even changing to use "R" instead of IJK (that ran but made a diamond shape rather than a circle). 

 

If anyone has an idea of what to do here, I would be greatly appreciative.

 

Here is a portion of the program code, with the error happening at line N70:

 

O30091
(Using G0 which travels along dogleg path.)
(T6 D=0.125 CR=0. - ZMIN=1.36 - flat end mill)
(T10 D=0.125 CR=0.0625 - ZMIN=0.71 - ball end mill)
(T11 D=0.25 CR=0. TAPER=45deg - ZMIN=1.68 - chamfer mill)
(T14 D=0.125 CR=0. - ZMIN=0.36 - flat end mill)
(T20 D=0.25 CR=0. - ZMIN=0.2 - flat end mill)
N10 G90 G94 G17
N15 G20
N20 G53 G0 Z0.

(Circular2)
N25 T6 M6
(H6)
N30 S9000 M3
N35 G54
N40 G0 X3.805 Y2.8828
N45 G43 Z2.4 H6
N50 T14
N55 G0 Z1.61
N60 G1 Z1.53 F55.
N65 X3.855 Y2.8703
N70 G3 X3.8675 Y2.8828 I0. J0.0125
N75 X3.7425 I-0.0625 J0. F65.
N80 X3.8675 I0.0625 J0.
N85 X3.855 Y2.8953 I-0.0125 J0. F55.
N90 G1 X3.805 Y2.8828
N95 G0 Z2.
N100 Z1.44
N105 G1 Z1.36 F55.
N110 X3.855 Y2.8703
N115 G3 X3.8675 Y2.8828 I0. J0.0125
N120 X3.7425 I-0.0625 J0. F65.
N125 X3.8675 I0.0625 J0.
N130 X3.855 Y2.8953 I-0.0125 J0. F55.
N135 G1 X3.805 Y2.8828
N140 G0 Z2.
N145 X4.515
N150 Z1.61

 

Thanks!

0 Likes
1,809 Views
2 Replies
Replies (2)
Message 2 of 3

andrea.amilo
Community Manager
Community Manager

Hi @Windship , 

I found on Haas website the meaning of error 304:

Capture.PNG

I noticed that your postprocessor writes G3 only on the first circular movement ( N70 ) and not in the following lines.

Maybe your controller needs G code on each circular movement.

So you could try to add the highlighted line in your postprocessor ( in onCircular function ) :

 

    }
  } else if (!properties.useRadius) {
    gMotionModal.reset();
    switch (getCircularPlane()) {
    case PLANE_XY:

Otherwise your controller needs to reduce the circular sweep configured in Haas postprocessor.

In this case you could change proper circular sweep parameter ( in the top of your file 😞

 

maximumCircularSweep = toRad(90);

 

Reducing circular sweep probably you could try to use radius "R" instead of IJK.

 

I hope this helps you. Please let me know.



Andrea Amilo

Senior Technical Consultant

Autodesk Knowledge Network | Fusion 360 Webinars | Autodesk Make
0 Likes
Message 3 of 3

Windship
Explorer
Explorer

Thanks for the suggestions. I was able to get it to work by updating the post file by changing 

allowedCircularPlanes = undefined; // allow any circular motion (replaced “undefined” with “0”). That worked ok with the small circles, but I tried it on a larger part and it created a choppy arc, not bad on the part but the machine made a million tiny straight line moves. 

 

I'll give your ideas a try too and see if they are a better solution. 

0 Likes