Welcome to Our Community

Some features disabled for guests. Register Today.

Invalid G-Code UCS

Discussion in 'Control Software' started by Brandon Raineri, Jun 8, 2016.

  1. Brandon Raineri

    Brandon Raineri Well-Known
    Builder

    Joined:
    Dec 16, 2015
    Messages:
    12
    Likes Received:
    8
    I am working on a project and I am getting invalid g-code errors id:33 in UGS. Attached is a screen shot of the error and the G-Code. I have similar functions throughout the program, but cant figure out why these in particular working. It happens when I am trying to engrave the #5 and when I engrave the #6.



    Invalid G-Code.PNG

    Invalid G-Code (2).PNG
     
  2. Brandon Raineri

    Brandon Raineri Well-Known
    Builder

    Joined:
    Dec 16, 2015
    Messages:
    12
    Likes Received:
    8
    So I may have figured out what is wrong. I found that invalid gcode ID: 33 means:

    The motion command has an invalid target. G2, G3, and G38.2 generates this error. For both probing and arcs traced with the radius definition, the current position cannot be the same as the target. This also errors when the arc is mathematically impossible to trace, where the current position, the target position, and the radius of the arc doesn't define a valid arc.

    So since the start point is not the same as the end point I did some trouble shooting to check a valid arc. I sketched up the coordinates in my CAD program and realized that my X was off 0.01 for #5 and Y was off 0.01 for #6 in order to get a valid arc.

    Unfortunately I wont be able to test this new code until this evening but I will report back to see if this fixed my problem.
     
  3. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    Aug 6, 2013
    Messages:
    720
    Likes Received:
    330
    If that is in millimeters then That is such a small arc I would just convert it to a line segment.

    G2/G3 commands are very sensitive to errors. I programmed sketchucam to add an extra digit of precision for all arc commands to help with this, and it also converts arcs of small radius to lines.
     
  4. Brandon Raineri

    Brandon Raineri Well-Known
    Builder

    Joined:
    Dec 16, 2015
    Messages:
    12
    Likes Received:
    8
    It is in milimeters. I am trying to design a tag plate engraver so I need to try and keep as much detail as possible since the letters are only 4mm high. If I cannot get it to work, I will have to do a couple of segments
     
  5. Brandon Raineri

    Brandon Raineri Well-Known
    Builder

    Joined:
    Dec 16, 2015
    Messages:
    12
    Likes Received:
    8
    So this was my problem. Everything is working correctly now. A video is below of the operation. I still have to clean up the G-Code for optimal operation but this gives you an idea of what I am trying to do.

     
  6. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    Aug 6, 2013
    Messages:
    720
    Likes Received:
    330
    Looking good!
     

Share This Page

  • About Us

    The OpenBuilds Team is dedicated helping you to Dream it - Build it - Share it! Collaborate on our forums and be sure to visit the Part Store for all your Building needs!
  • Like us on Facebook

  • Support Open Source FairShare Program!

    OpenBuilds FairShare Give Back Program provides resources to Open Source projects, developers and schools around the world. Invest in your future by helping others develop theirs!

    Donate to FairShare!