587,768 active members*
3,827 visitors online*
Register for free
Login

Thread: g code help

Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jan 2020
    Posts
    6
    Hey! I tested the code you gave me. All I had to change was G21 to G20 (G21 = MM G20 = IN) ((CORRECT ME IF I'M MISTAKEN)

    Also, do I have to convert anything else to inches? (Code wise)

  2. #2
    Join Date
    Jun 2018
    Posts
    362

    Re: g code help

    Quote Originally Posted by zachbarrett View Post
    Hey! I tested the code you gave me. All I had to change was G21 to G20 (G21 = MM G20 = IN) ((CORRECT ME IF I'M MISTAKEN)

    Also, do I have to convert anything else to inches? (Code wise)
    In theory, that should be all good to go. BEWARE the following considerations!

    The motion coordinate movements specify the distances in machine "units".

    If set to metric (G21 (mm)) then the movement is in mm. If set to G20 then they will be in inches.

    The parameters chosen were:

    Cutter: 0.25 Dia (or 0.125 radius) units
    X = 3.5 units
    Y = 1.5 units
    Z = 1.0 units

    Tool StepOver (for a pocket cut) = 50%
    DOC = 1 Unit (using 0.25 (or 25% of 1 Unit) for 4 cuts to get from surface to final DoC)

    Example:
    Check the calculation values of the Z DoC and see if they match the parameters:

    N170 G01 Z-0.250 F150.0 (plunge rate in units per minute BEWARE!)
    N200 G01 X0.625 Y0.875 Z-0.250 F2000.0
    N230 G01 X0.625 Y0.625 Z-0.250 F2000.0
    N510 G01 X3.375 Y1.375 Z-0.250 F2000.0


    N560 G01 Z-0.500 F150.0
    N590 G01 X0.625 Y0.875 Z-0.500 F2000.0
    N620 G01 X0.625 Y0.625 Z-0.500 F2000.0
    N900 G01 X3.375 Y1.375 Z-0.500 F2000.0


    N950 G01 Z-0.750 F150.0
    N980 G01 X0.625 Y0.875 Z-0.750 F2000.0
    N1010 G01 X0.625 Y0.625 Z-0.750 F2000.0
    N1290 G01 X3.375 Y1.375 Z-0.750 F2000.0


    N1340 G01 Z-1.000 F150.0
    N1370 G01 X0.625 Y0.875 Z-1.000 F2000.0
    N1400 G01 X0.625 Y0.625 Z-1.000 F2000.0
    N1680 G01 X3.375 Y1.375 Z-1.000 F2000.0

    Above we have 4 cuts at a depth of 25% of 1 unit per pass - looks right. For a mm metric depth, that's not much per cut but for inches it's probably too aggressive for a little machine.

    For the X and Y motions (and remember the tool diameter size was specified as 0.25 (Units) so) the radius should be 0.125 (start and end values should be + or - the radius measurement because it's an inside pocket cut within the X and Y limits).

    These values are omitted here as an exercise for the reader :-)

    BEWARE:

    The F value for cut speed of 2000 is also in UNITS so 2000 at ipm is scary fast! BEWARE of the F value for Z motion rate as well 150 imp is really fast for a plunge!

    The Z value DoC of 0.250 increments if in inches is about 6 mm which may well be too aggressive and break a bit REALLY easily! Especially at 2000 inches (units) per minute!!!

    BEWARE:

    SIMULATOR and then AIR CUT FIRST!

    Do we get to hear an "oops" comment? :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •