585,926 active members*
3,989 visitors online*
Register for free
Login
Results 1 to 15 of 15
  1. #1
    Join Date
    Nov 2012
    Posts
    0

    G-code for 1" mill 3" hole

    I'm having trouble writing the code with G03 and leaving a little material for finishing it. 1" 2flute endmill with a 3 " hole tool 13

    Then coming back with T13 again and using cutter comp to finish it off.

  2. #2
    Join Date
    May 2004
    Posts
    4519
    With X0. Y0. as center of hole?

  3. #3
    Join Date
    Nov 2012
    Posts
    0
    Yes with x0 y0 as center

  4. #4
    Join Date
    May 2004
    Posts
    4519
    Ok, starting with the end mill at the center of the hole. The 3" hole has a radius of 1.5". The 1" end mill has a radius of 0.5". If the end mill moves to X1.0 the side of the end mill should be touching the side of the 3" hole.

  5. #5
    Join Date
    Nov 2012
    Posts
    0
    Yeah I'm just new to writing the code and don't remember how to code it. I know its with R something and then I draw a blank

  6. #6
    Join Date
    May 2004
    Posts
    4519
    You mean G03 X10. Y0. R5.? Like that?

  7. #7
    Join Date
    May 2004
    Posts
    4519
    G03 (or G02) are codes for Circular Interpolation. You might want to write that down so you can remember the next time.

  8. #8
    Join Date
    Nov 2012
    Posts
    0
    Yeah I draw the tool with M06 T13
    next line turn on the spindle m03 s500 m08
    then turn on ccw circular motion G03?

  9. #9
    Join Date
    May 2004
    Posts
    4519
    You need to write an entire program. Not just the lines for circular interpolation. Below is an example program:

    %
    O41061 (198-14106 06/15/2012)
    (G154 P61 X Y WORK ZERO LEFT BACK OF FIXTURE)
    (G154 P61 Z WORK ZERO TOP OF PART)
    (HOLD ON FIXTURE)
    N10 G00 G90 G17 G40 G80
    N20 T7 M06 (0.500 FLAT MILL 3 FLT)
    N30 G00 G90 G154 P62 X12.235 Y-4.545 S3500 M03
    N40 G43 H07 Z.1 M08
    N50 G00 X12.235 Y-4.545
    N60 G01 Z-.035 F2.
    N70 G41 G01 X12.235 Y-4.275 D7
    N80 G03 X12.02 Y-4.06 R.215 F50.
    N90 G01 X5.8
    N100 G03 X5.685 Y-4.175 R.115
    N110 G01 Y-9.575
    N120 G03 X5.8 Y-9.69 R.115
    N130 G01 X18.2
    N140 G03 X18.315 Y-9.575 R.115
    N150 G01 Y-4.175
    N160 G03 X18.2 Y-4.06 R.115
    N170 G01 X11.98
    N180 G03 X11.765 Y-4.275 R.215
    N190 G40
    N200 G01 Y-4.545 F50.
    N210 G00 Z.1
    N220 X12.235
    N230 G01 Z-.04 F2.
    N240 G41 G01 X12.235 Y-4.275 D7
    N250 G03 X12.02 Y-4.06 R.215 F50.
    N260 G01 X5.8
    N270 G03 X5.685 Y-4.175 R.115
    N280 G01 Y-9.575
    N290 G03 X5.8 Y-9.69 R.115
    N300 G01 X18.2
    N310 G03 X18.315 Y-9.575 R.115
    N320 G01 Y-4.175
    N330 G03 X18.2 Y-4.06 R.115
    N340 G01 X11.98
    N350 G03 X11.765 Y-4.275 R.215
    N360 G40
    N370 G01 Y-4.545 F50.
    N380 G00 Z.1
    N390 X12.27
    N400 G01 Z-.035 F2.
    N410 G41 G01 X12.27 Y-4.275 D7
    N420 G03 X12.02 Y-4.025 R.25 F50.
    N430 G01 X5.8
    N440 G03 X5.65 Y-4.175 R.15
    N450 G01 Y-9.575
    N460 G03 X5.8 Y-9.725 R.15
    N470 G01 X18.2
    N480 G03 X18.35 Y-9.575 R.15
    N490 G01 Y-4.175
    N500 G03 X18.2 Y-4.025 R.15
    N510 G01 X11.98
    N520 G03 X11.73 Y-4.275 R.25
    N530 G40
    N540 G01 Y-4.545 F50.
    N550 G00 Z.1
    N560 X12.27
    N570 G01 Z-.04 F2.
    N580 G41 G01 X12.27 Y-4.275 D7
    N590 G03 X12.02 Y-4.025 R.25 F50.
    N600 G01 X5.8
    N610 G03 X5.65 Y-4.175 R.15
    N620 G01 Y-9.575
    N630 G03 X5.8 Y-9.725 R.15
    N640 G01 X18.2
    N650 G03 X18.35 Y-9.575 R.15
    N660 G01 Y-4.175
    N670 G03 X18.2 Y-4.025 R.15
    N680 G01 X11.98
    N690 G03 X11.73 Y-4.275 R.25
    N700 G40
    N710 G01 Y-4.545 F50.
    N720 G00 Z.1
    N730 (HOME -Z- AXIS)
    N740 G40
    N750 G00 G28 G91 Z0. M09
    N760 G90 M19
    N770 (HOME -X/Y- AXIS)
    N780 G00 G28 G91 Y0.
    N790 G90 X12. M19
    N800 M30
    %

  10. #10
    Join Date
    Nov 2012
    Posts
    0
    Like I said I am new to this and the example you listed is confusing without explanation. I will give it a go then post it and see what you think. Thank you for your input.

  11. #11
    Join Date
    May 2004
    Posts
    4519
    Well, saying you are new reads to me as being a student. That means you probably have a textbook to refer to. I am not going to write your program for you. As a student, it is your job to study and learn. Part of learning usually includes a few failures. Good luck on your project.

  12. #12
    Join Date
    Nov 2012
    Posts
    0
    Your correct that I am a student and this is a project. I don't want yo to write it for me because I wouldn't learn anything. What does the F stand for in line N80?

  13. #13
    Join Date
    Nov 2012
    Posts
    0
    Nevermind found it in my book!

  14. #14
    Join Date
    May 2004
    Posts
    4519
    Cool. Keep up the good work and study hard. Take notes. Writing things down in your own words helps retention.

  15. #15
    Join Date
    Aug 2011
    Posts
    2517
    if you just want info on general CNC programming google is your friend.

    there is a wealth of useful info on the net and even full text books on CNC programming available for free if you look.

    if you are writing code and want to test it use a simulation program such as CNCSimulator (search google for it)
    you will learn much faster if you can see tool paths and what is happening on screen in a simulator.

    to program your circle, do a G02/G03 to a diameter of 2.99" (i.e. X1.495) using diameter compensation (G41/G42) then simply go around the circle again using same G41/G42 but this time you go to 3" (X1.5)

    here is a very simple example. On the finish pass I changed the depth and I go to a larger diameter to show two separate tool paths. I'm using G42/G2 on the first pass and G41/G3 on the finish pass.

    If you google each of the g and m codes in the example and do some reading you will see how this program works. then you will have learned something......
    Attached Thumbnails Attached Thumbnails simplemill.jpg  

Similar Threads

  1. Replies: 6
    Last Post: 06-30-2012, 04:13 AM
  2. Replies: 1
    Last Post: 06-27-2012, 12:53 AM
  3. "Warco GH Univ" V "Chester Lux Mill"
    By JQ_Quint in forum Benchtop Machines
    Replies: 37
    Last Post: 01-22-2009, 05:59 PM
  4. Determining "speed hole" spacing and size? (weight saving cutouts)
    By douglasco in forum Mechanical Calculations/Engineering Design
    Replies: 8
    Last Post: 08-04-2008, 09:26 PM

Posting Permissions

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