1. Hey guyz. Welcome to the All New Phlatforum!



    Sign Up and take a look around. There are so many awesome new features.

    The Phlatforum is a place we can all hang out and

    have fun sharing our RC adventures!

  2. Dismiss Notice

Plunge tool drilling to 100% depth even if other depth is requested

Discussion in 'SketchUcam Bugs' started by 626Pilot, Apr 4, 2015.

  1. 626Pilot

    626Pilot New Member

    Offline
    Messages:
    2
    Trophy Points:
    1
    Hello,

    I don't know if I have a setting wrong somewhere, but when I ask SketchUcam to drill less than all the way through (by typing a number in after the Plunge tool is selected - you can see it in the G-code below), it generates g-code to drill all the way through anyway. What am I doing wrong?

    Material thickness = 0.68"
    In/out overcut = 100%
    Diameter = 0.1875"
    Overhead gantry = Yes (this is a Probotix FireBall)
    Multipass = No
    3D GCode = No
    Table top is Z-Zero = No

    Here's some example g-code that I generated with SketchUcam:
    Code:
    %
    (Generated by SketchUcam {1.2a})
    (File: Board drilling jigs.skp)
    (Bit diameter: 0.18750")
    (Feed rate: 40.00000"/min)
    (Plunge Feed rate: 25.00000"/min)
    (Material Thickness: 0.68000")
    (Material length: 44.00000" X width: 12.00000")
    (Overhead Gantry: true)
    (Retract feed rate NOT limited to plunge feed rate)
    (Optimization is ON)
    (www.PhlatBoyz.com)
    G90 G20 G49 
    M3 S15000
    (Group: _depth_90.0)
    G0   Z1.0000    
       X10.0312      Y43.4687  
    (PLUNGE limiting Z to min_z @min_z)
    G1   Z0.0000     F25  
    (Group complete: _depth_90.0)
    (Group: _depth_90.0)
    G0   Z1.0000    
       X6.0000    
    (PLUNGE limiting Z to min_z @min_z)
    G1   Z0.0000     F25  
    (Group complete: _depth_90.0)
    (Group: _depth_90.0)
    G0   Z1.0000    
       X1.9688    
    (PLUNGE limiting Z to min_z @min_z)                                                                                                        
    G1   Z0.0000     F25                                                                                                                        
    (Group complete: _depth_90.0)                                                                                                              
    (Group: _diam_0.25_depth_75.0)                                                                                                              
    G0   Z1.0000                                                                                                                                
       X11.6250      Y40.0000                                                                                                                  
    (plungebore    depth=0.5100        diam=0.2500    )                                                                                        
    G00   Y39.96875                                                                                                                            
    G01    Z0.00000    F40                                                                                                                      
    G03     X11.62500      Y39.96875   I0.0    J0.03125                                                                                        
    G00   Y40.0000       Z1.0000                                                                                                                
    (plungebore end)                                                                                                                            
    (Group complete: _diam_0.25_depth_75.0)                                                                                                    
    (Group: _diam_0.25_depth_75.0)                                                                                                              
    G0   X0.3750                                                                                                                                
    (plungebore    depth=0.5100        diam=0.2500    )                                                                                        
    G00   Y39.96875                                                                                                                            
    G01    Z0.00000    F40                                                                                                                      
    G03     X0.37500       Y39.96875   I0.0    J0.03125                                                                                        
    G00   Y40.0000       Z1.0000                                                                                                                
    (plungebore end)                                                                                                                            
    (Group complete: _diam_0.25_depth_75.0)                                                                                                    
    (Group: _diam_0.25_depth_75.0)                                                                                                              
    G0   X11.6250      Y4.0000                                                                                                                  
    (plungebore    depth=0.5100        diam=0.2500    )                                                                                        
    G00   Y3.96875                                                                                                                              
    G01    Z0.00000    F40                                                                                                                      
    G03     X11.62500      Y3.96875    I0.0    J0.03125                                                                                        
    G00   Y4.0000        Z1.0000    
    (plungebore end)
    (Group complete: _diam_0.25_depth_75.0)
    (Group: _diam_0.25_depth_75.0)
    G0   X0.3750    
    (plungebore    depth=0.5100        diam=0.2500    )
    G00   Y3.96875  
    G01    Z0.00000    F40  
    G03     X0.37500       Y3.96875    I0.0    J0.03125  
    G00   Y4.0000        Z1.0000    
    (plungebore end)
    (Group complete: _diam_0.25_depth_75.0)
    (Group: _depth_30.0)
    G0   X4.5278       Y41.8252  
    (PLUNGE limiting Z to min_z @min_z)
    G1   Z0.0000     F25  
    (Group complete: _depth_30.0)
    (Group: _depth_30.0)
    G0   Z1.0000    
       X3.8742       Y41.6322  
    (PLUNGE limiting Z to min_z @min_z)
    G1   Z0.0000     F25  
    (Group complete: _depth_30.0)
    (Group: _depth_30.0)
    G0   Z1.0000    
       X3.3559       Y41.8306  
    (PLUNGE limiting Z to min_z @min_z)
    G1   Z0.0000     F25  
    (Group complete: _depth_30.0)
    (Group: _depth_30.0)
    G0   Z1.0000    
       X3.9783       Y42.0613  
    (PLUNGE limiting Z to min_z @min_z)
    G1   Z0.0000     F25  
    (Group complete: _depth_30.0)
    G0   Z1.0000    
    G0 X0 Y0 (home)
    G0   Z5.0000    
    M05
    M30
    %
    
     
  2. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    you need to fix the error messages first!
    the sprinkling of
    (PLUNGE limiting Z to min_z @min_z)
    in the code indicates that you have not set the min-z and max_z correctly as detailed in the help...

    do this
    click big blue question mark in toolbar
    click 'Change default options'
    click 'Machine options' and look for min_z and max_z and you will find it says
    Code:
    Min_z
    Set this to negative (-) your Z travel. Gcode will never contain Z travel more than this figure.
    Max_z
    Set this to your Z travel. Gcode will never contain Z travel more than this figure.
    
    (while you are there, please read all the help)
    When you installed SketchUcam these values were set to -100mm and 100mm, but now min_z is limiting to 0, so you must have changed it.

    To get it cutting correctly you need to change those values to:
    min_z = -3"
    max_z = 3"
    or if you have the bigger router, -5 and 5 inches

    If you really want Z to never go below 0 and have min_z set to 0 to enforce it, then you HAVE TO use the Table top is Z-zero option, where the tool bit is zeroed to the table top instead of the top of the material. This will also mean you cannot cut all the way through the material, in effect limiting 'inside/outside overcut%' to 100 (in which case do set it to 100% rather than let the limits get hit).

    Those Probotix routers look quite nice!
     
  3. 626Pilot

    626Pilot New Member

    Offline
    Messages:
    2
    Trophy Points:
    1
    Ah, thank you! I read a lot of the help, but that particular convention escaped me. I thought min and max were absolute, not relative (i.e. a router with 5" of Z would have min=0 and max=5, an "upside-down" router would have min=-5 and max=0, etc.)

    I was also confused about the "Table top is Z-Zero" setting. It might be easier to write it "Table top is Z=Zero".

    I now have these settings:
    Min_z = -5
    Max_z = 5
    Overcut = 100%
    Overhead Gantry = True
    Multipass = True (depth 0.15") - I'm cutting plywood with a 3/16" end mill, so this seems reasonable
    Stepover = 30%
    Generate 3D GCode = False

    The G-code looks a lot more elaborate now (particularly on the plungebores), and I can see that it's not drilling all the way through:
    Code:
    %
    (Generated by SketchUcam {1.2a})
    (File: Board drilling jigs.skp)
    (Bit diameter: 0.18750")
    (Feed rate: 40.00000"/min)
    (Plunge Feed rate: 25.00000"/min)
    (Material Thickness: 0.68000")
    (Material length: 44.00000" X width: 12.00000")
    (Overhead Gantry: true)
    (Retract feed rate NOT limited to plunge feed rate)
    (Multipass enabled, Depth = 0.15000")
    (Optimization is ON)
    (Z ZERO IS TABLETOP)
    (www.PhlatBoyz.com)
    G90 G20 G49
    M3 S15000
    (Group: _depth_85.0)
    G0   Z1.6800   
    (Pass: 1)
       X10.0312      Y43.4687 
    (plungebore    depth=0.5780        diam=0.1875    )
    G01   Z0.5300     F25 
    G00   z1.6800   
    G01   Z0.3800   
    G00   z1.6800   
    G01   Z0.2300   
    G00   z1.6800   
    G01   Z0.1020   
    G00   z1.6800   
    G00   Y43.4687       Z1.6800   
    (plungebore end)
    (Group complete: _depth_85.0)
    (Group: _depth_85.0)
    (Pass: 1)
    G0   X6.0000   
    (plungebore    depth=0.5780        diam=0.1875    )
    G01   Z0.5300     F25 
    G00   z1.6800   
    G01   Z0.3800   
    G00   z1.6800   
    G01   Z0.2300   
    G00   z1.6800   
    G01   Z0.1020   
    G00   z1.6800   
    G00   Y43.4687       Z1.6800   
    (plungebore end)
    (Group complete: _depth_85.0)
    (Group: _depth_85.0)
    (Pass: 1)
    G0   X1.9688   
    (plungebore    depth=0.5780        diam=0.1875    )
    G01   Z0.5300     F25 
    G00   z1.6800   
    G01   Z0.3800   
    G00   z1.6800   
    G01   Z0.2300   
    G00   z1.6800   
    G01   Z0.1020   
    G00   z1.6800   
    G00   Y43.4687       Z1.6800   
    (plungebore end)
    (Group complete: _depth_85.0)
    (Group: _diam_0.25_depth_75.0)
    (Pass: 1)
    G0   X11.6250      Y40.0000 
    (plungebore    depth=0.5100        diam=0.2500    )
    G01   Z0.5300     F25 
    G00   z1.6800   
    G01   Z0.3800   
    G00   z1.6800   
    G01   Z0.2300   
    G00   z1.6800   
    G01   Z0.1700   
    G00   z1.6800   
    G00   Y39.96875 
    G01    Z0.68000    F40 
    G03     X11.62500      Y39.96875      Z0.53000    I0    J0.03125 
    G03     X11.62500      Y39.96875      Z0.38000    I0    J0.03125 
    G03     X11.62500      Y39.96875      Z0.23000    I0    J0.03125 
    G03     X11.62500      Y39.96875      Z0.17000    I0    J0.03125 
    G03     X11.62500      Y39.96875   I0.0    J0.03125 
    G00   Y40.0000       Z1.6800   
    (plungebore end)
    (Group complete: _diam_0.25_depth_75.0)
    (Group: _diam_0.25)
    (Pass: 1)
    G0   X0.3750   
    (plungebore    depth=0.6800        diam=0.2500    )
    G01   Z0.5300     F25 
    G00   z1.6800   
    G01   Z0.3800   
    G00   z1.6800   
    G01   Z0.2300   
    G00   z1.6800   
    G01   Z0.0800   
    G00   z1.6800   
    G01   Z0.0000   
    G00   z1.6800   
    G00   Y39.96875 
    G01    Z0.68000    F40 
    G03     X0.37500       Y39.96875      Z0.53000    I0    J0.03125 
    G03     X0.37500       Y39.96875      Z0.38000    I0    J0.03125 
    G03     X0.37500       Y39.96875      Z0.23000    I0    J0.03125 
    G03     X0.37500       Y39.96875      Z0.08000    I0    J0.03125 
    G03     X0.37500       Y39.96875      Z0.00000    I0    J0.03125 
    G03     X0.37500       Y39.96875   I0.0    J0.03125 
    G00   Y40.0000       Z1.6800   
    (plungebore end)
    (Group complete: _diam_0.25)
    (Group: _diam_0.25)
    (Pass: 1)
    G0   X11.6250      Y4.0000   
    (plungebore    depth=0.6800        diam=0.2500    )
    G01   Z0.5300     F25 
    G00   z1.6800   
    G01   Z0.3800   
    G00   z1.6800   
    G01   Z0.2300   
    G00   z1.6800   
    G01   Z0.0800   
    G00   z1.6800   
    G01   Z0.0000   
    G00   z1.6800   
    G00   Y3.96875 
    G01    Z0.68000    F40 
    G03     X11.62500      Y3.96875       Z0.53000    I0    J0.03125 
    G03     X11.62500      Y3.96875       Z0.38000    I0    J0.03125 
    G03     X11.62500      Y3.96875       Z0.23000    I0    J0.03125 
    G03     X11.62500      Y3.96875       Z0.08000    I0    J0.03125 
    G03     X11.62500      Y3.96875       Z0.00000    I0    J0.03125 
    G03     X11.62500      Y3.96875    I0.0    J0.03125 
    G00   Y4.0000        Z1.6800   
    (plungebore end)
    (Group complete: _diam_0.25)
    (Group: _diam_0.25)
    (Pass: 1)
    G0   X0.3750   
    (plungebore    depth=0.6800        diam=0.2500    )
    G01   Z0.5300     F25 
    G00   z1.6800   
    G01   Z0.3800   
    G00   z1.6800   
    G01   Z0.2300   
    G00   z1.6800   
    G01   Z0.0800   
    G00   z1.6800   
    G01   Z0.0000   
    G00   z1.6800   
    G00   Y3.96875 
    G01    Z0.68000    F40 
    G03     X0.37500       Y3.96875       Z0.53000    I0    J0.03125 
    G03     X0.37500       Y3.96875       Z0.38000    I0    J0.03125 
    G03     X0.37500       Y3.96875       Z0.23000    I0    J0.03125 
    G03     X0.37500       Y3.96875       Z0.08000    I0    J0.03125 
    G03     X0.37500       Y3.96875       Z0.00000    I0    J0.03125 
    G03     X0.37500       Y3.96875    I0.0    J0.03125 
    G00   Y4.0000        Z1.6800   
    (plungebore end)
    (Group complete: _diam_0.25)
    G0 X0 Y0 (home)
    G0   Z5.0000   
    M05
    M30
    %
    
     
  4. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    yup, you got it right now, zero Z on the table surface and away you go!
     

Share This Page