Welcome to Our Community

Some features disabled for guests. Register Today.

SKETCHUCAM GENERATED GCODE HELP

Discussion in 'CAD' started by KEN MACDONALD, Jun 5, 2024.

  1. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    60
    Likes Received:
    6
    Hi I generated some GCODE in Sketchucam and on running it one section seems to continually lift the cutter clear of the workpiece and go back down almost immediately. It's cutting an arc at the time and instead of one smooth movement it seems to be almost pecking at it.

    Here is a small section of the generated code in question.

    G00 Z0.5
    G01 Z-0.5 F250
    X36.1 Y37.94 F2540
    G00 Z10.0
    X33.611 Y40.955
    G00 Z0.5
    G01 Z-0.5 F250
    X34.811 Y39.411 F2540
    G00 Z10.0
    X32.502 Y42.566
    G00 Z0.5
    G01 Z-0.5 F250
    X33.611 Y40.955 F2540
    G00 Z10.0
    X31.49 Y44.24
    G00 Z0.5
    G01 Z-0.5 F250
    X32.502 Y42.566 F2540
    G00 Z10.0
    X30.577 Y45.969
    G00 Z0.5
    G01 Z-0.5 F250
    X31.49 Y44.24 F2540
    G00 Z10.0
    X29.767 Y47.749
    G00 Z0.5
    G01 Z-0.5 F250
    X30.577 Y45.969 F2540
    G00 Z10.0
    X29.062 Y49.574
    G00 Z0.5
    G01 Z-0.5 F250
    X29.767 Y47.749 F2540
    G00 Z10.0
    X28.465 Y51.436
    G00 Z0.5
    G01 Z-0.5 F250
    X29.062 Y49.574 F2540
    G00 Z10.0
    X27.977 Y53.33
    G00 Z0.5
    G01 Z-0.5 F250
    X28.465 Y51.436 F2540
    G00 Z10.0
    X27.601 Y55.249
    G00 Z0.5
    G01 Z-0.5 F250
    X27.977 Y53.33 F2540
    G00 Z10.0
    X27.103 Y56.406
    G00 Z0.5

    I'm assuming it's the continual G00 code that's lifting the cutter away.

    I not conversant enough with Gcode to attempt to amend it. Can anyone help please

    Ken
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,190
    Likes Received:
    4,346
    Please include the sketchup file, possibly line segments instead of polyline?
     
    David the swarfer likes this.
  3. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,489
    Likes Received:
    1,925
    i will await the sketchup file, backstitching is a known issue caused by sketchups internal shenanigans with line order, ie it *sometimes* considers an arc to be clockwise yet has all the line segment start points anticlockwise. sometimes this can be detected and fixed internally, and sometimes not.
     
  4. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    60
    Likes Received:
    6
    This is the skp file
     

    Attached Files:

  5. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    60
    Likes Received:
    6
     

    Attached Files:

    David the swarfer likes this.
  6. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    60
    Likes Received:
    6
     

    Attached Files:

  7. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,190
    Likes Received:
    4,346
    Once is sufficient :) - David will get to you in due time, he is a volunteer. You've posted the file 3x now :)
     
  8. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    60
    Likes Received:
    6
    OK Sorry I didn't realise
     
  9. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,489
    Likes Received:
    1,925
    Thanks for the file.
    First I deleted small segments from the ends of the bridging parts. The bits I deleted are about 0.3mm long. Example of the bottom bridge below, but I deleted from all 3 (ignored the very short bridge on the right)
    bs1.png

    Now you can see if the face of the circle is selected, this is all one piece.,,,
    bs2.png

    now the Gcode has no backstitching in it, it will cut those 3 bridges and then the rest of that outline.
    bs3.png
    \

    How to delete a small segment of the end of each line ?
    zoom in on the bridge
    select the line tool
    draw line at 90 degrees a small distance from the end of the existing line. this will split the line at the intersection
    select the delete tool
    delete the small end segment to leave a gap
    delete the line you added

    note that you cannot create line segments less than 0.001" long, Sketchup's internal 'equality' comparison works to 0.001", even in metric mode, so anything less than 0.001" away from something else is automatically joined together.
     
    Peter Van Der Walt likes this.
  10. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    60
    Likes Received:
    6
    Thank you David it’s working like a dream now
     
    David the swarfer likes this.

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