Welcome to Our Community

Some features disabled for guests. Register Today.

GRBL error 33

Discussion in 'Controller Boards' started by base1379, Jun 15, 2022.

  1. base1379

    base1379 New
    Builder

    Joined:
    Jan 9, 2017
    Messages:
    34
    Likes Received:
    5
    The motion command has an invalid target. G2, G3, and G38.2 generates this error...
    upload_2022-6-15_17-43-48.png

    I've come to the conclusion that NX and/or the postprocessor is not producing enough accuracy to satisfy the (IMO) overly strict limits of GRBL.

    Three solutions that I can think of:
    1. Relax GRBL accuracy limits. Is this possible? I really only need total machine accuracy of about 0.5mm.
    2. Increase accuracy in gcode.
    3. Switch from I,J to R. (But I've had issues with R in the past).

    The Gcode that triggers the above error:
    G0 X548.5700 Y1298.5600
    M3 S217 ; pen down
    G4 P0.25 ; wait for pen to lower
    G1
    G2 X546.3200 Y1299.8500 I-1.5000 J.0000
    < ERROR
    X548.5700 Y1298.5600 I.7500 J-1.2900
    M3 S10 ; pen up
    G4 P0.25 ; wait for pen to raise


    If I throw the above Gcode into CAD, there is an error of about 0.0078mm:
    upload_2022-6-15_17-42-27.png


    I've tried to increase the significant digits and accuracy in NX and post builder, but apparently I can't figure out where to do it.

    From NX>Manufacture: If I choose List Tool Path, this has higher precision. Here is the code (corresponding to the Gcode above):
    TLDATA/WEDM,0.5000,25.0000,0.0000
    MSYS/0.0000,0.0000,0.0000,1.0000000,0.0000000,0.0000000,0.0000000,1.0000000,0.0000000
    $$ centerline data
    PAINT/PATH
    PAINT/SPEED,10
    PAINT/PATH,DASH
    SET/UPPER,25.0000,LOWER,0.0000
    LOAD/WIRE
    PAINT/PATH
    CUTCOM/LEFT,0
    PAINT/COLOR,186
    FEDRAT/7620.0000
    GOTO/548.5663,1298.5557,0.0000,0.0000000,0.0000000,1.0000000
    PAINT/COLOR,31
    CIRCLE/547.0663,1298.5557,0.0000,0.0000000,0.0000000,1.0000000,1.5000,0.0000000,0.5000,0.5000,0.0000
    GOTO/546.3163,1297.2567,0.0000
    CIRCLE/547.0663,1298.5557,0.0000,0.0000000,0.0000000,1.0000000,1.5000,0.0000000,0.5000,0.5000,0.0000
    GOTO/546.3163,1299.8547,0.0000
    CIRCLE/547.0663,1298.5557,0.0000,0.0000000,0.0000000,1.0000000,1.5000,0.0000000,0.5000,0.5000,0.0000
    GOTO/548.5663,1298.5557,0.0000
    PAINT/SPEED,10
    PAINT/TOOL,NOMORE
    END-OF-PATH


    So there appears to be loss of precision in the post builder maybe? Anyone have any ideas how to improve precision?

    Thanks!
    Wolf
     

    Attached Files:

  2. base1379

    base1379 New
    Builder

    Joined:
    Jan 9, 2017
    Messages:
    34
    Likes Received:
    5
    I've found out how to increase precision in NX post builder. It's on the first page:
    upload_2022-6-15_22-17-56.png

    I changed Linear Motion Resolution from 0.01 to 0.001, and was able to run the job without errors.
    <Beer emoji>
     
  3. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,408
    Likes Received:
    1,899
    in your image the arc has a radius of 0.64mm.
    As the radius decreases, the limits of accuracy of the endpoints approach rapidly.

    The best fix is to change the post to linearize arcs with radius less than bitRadius.
    Yes, this is common, battled it in Fusion360 as well. Essentially, ALL arcs have errors, but the percentage error for small radii triggers GRBL's error message.
    Solution: avoid small arcs (-:
     
  4. base1379

    base1379 New
    Builder

    Joined:
    Jan 9, 2017
    Messages:
    34
    Likes Received:
    5
    Yes this is my understanding, I also try to avoid small arcs. The issue I ran into several times was with offsets from a closed loop, sometimes the arcs would be small.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice