Welcome to Our Community

Some features disabled for guests. Register Today.

G2 vs G02 Archs Causing Issues with G20 command

Discussion in 'CNC Mills/Routers' started by scottuzarski, Mar 27, 2024.

  1. scottuzarski

    Builder

    Joined:
    Mar 27, 2024
    Messages:
    5
    Likes Received:
    2
    I've been away from G-coding for a while, but I've run into a problem with Vectric creating G codes using G2 for archs instead of G02.
    How do I state imperial units with the code "G20" ? It seems as though the controller is interpreting this as an arch "G2" followed by "0" which is just non-sense.

    The same would apply for G17 (use XY plane). It seems like the controller is reading "G1" (straight line) followed by "7"...again non-sense.

    Please help.
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,917
    Likes Received:
    4,291
    Please provide sample gcode file?

    and which Post (and versions) are you using?
     
  3. scottuzarski

    Builder

    Joined:
    Mar 27, 2024
    Messages:
    5
    Likes Received:
    2
    see attached file. post processer is G-Code Arcs (inch) (*.tap) from vectric cut 2D desktop.
     

    Attached Files:

  4. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,917
    Likes Received:
    4,291
  5. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,917
    Likes Received:
    4,291
    Reviewed


    There are no instances of "G2'0'.." or "G2 0" (other than the correct G20 in the header) in this file though

    In the file G17 is continuous and won't be interpreted as you assume above, it would be seen as "G17"


    G2 is valid
     
  6. scottuzarski

    Builder

    Joined:
    Mar 27, 2024
    Messages:
    5
    Likes Received:
    2
    I tried using that post processor and it converted all arcs to G1 line segments. Is that what you would expect?
    And I guess my original question is still open about how it understands a G20 code as something other than G2 0?
     
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,917
    Likes Received:
    4,291
    Not true: It has Arc support OpenBuilds-Vectric-Postprocessor/OpenBuilds_inch.pp at master · OpenBuilds/OpenBuilds-Vectric-Postprocessor
    We do make use of Min_Arc_radius OpenBuilds-Vectric-Postprocessor/OpenBuilds_inch.pp at master · OpenBuilds/OpenBuilds-Vectric-Postprocessor to prevent errors with small circles but that only applies to smaller circles


    G20 = one command
    G2 [space] something else = two commands or one command and a verb.

    There is no space in G20 it won't get interpreted as anything else

    Lets get down to it though - lets drop the assumptions and tell us whats actually happening, seems the wrong tree is getting barked up :)
     
  8. scottuzarski

    Builder

    Joined:
    Mar 27, 2024
    Messages:
    5
    Likes Received:
    2
    As far as what's really going on, I used to use one of these LEAD 1010's with all this same software at a maker's space. I've since bought my own and I'm trying to get everything setup to match what I was accustomed too. Last night I ran code from the other post processor, which blew through 150 lines in about 2 seconds, then smashed my bit straight down into the work piece. I'll try using the post processor you suggested tonight and if there's any further issues I'll let you know.
     
  9. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,435
    Likes Received:
    1,908
    what actual controller are you using, sounds like it is not GRBL based
     
  10. scottuzarski

    Builder

    Joined:
    Mar 27, 2024
    Messages:
    5
    Likes Received:
    2
    Peter, thank you for your help yesterday. Once I switched to the open builds post processor everything worked fine. I also found a previous post you made to someone else about a loose wire causing a stepper motor to operate in the wrong direction sporatically, and that led me to a loose wire on my motor as well. I'm all set now.



     

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