![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Haas Mills Discuss Haas machinery here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Does anyone know if there is an shorter way to write this type of a program? it keeps repeating to a depth of 2.55" at 0.05" per T21 M06 (1.25 3 FLUTE) G90 G58 G00 X3.25 Y5. M88 S1800 M03 G43 H21 Z1. M08 G01 Z-0.05 F15. G41 G01 X2.375 Y4. D21 G01 Y3.077 G03 X2.7606 Y2.174 R1.25 G02 X2. Y0.2794 R1.1 G02 X1.2394 Y2.174 R1.1 G03 X1.625 Y3.077 R1.25 G01 Y3.7294 G01 X2.5 G40 G00 X3.25 Y5. G01 Z-0.1 G41 G01 X2.375 Y4. D21 G01 Y3.077 G03 X2.7606 Y2.174 R1.25 G02 X2. Y0.2794 R1.1 G02 X1.2394 Y2.174 R1.1 G03 X1.625 Y3.077 R1.25 G01 Y3.7294 G01 X2.5 G40 G00 X3.25 Y5. |
|
#3
| |||
| |||
| I see you have the Z-0.05 at the top of the first set of profile coordinates then Z-0.10 at the top of the next: Do you mean you keep on with Z-0.15, Z-0.2, etc until you get to the full depth? Put your profile coords in a subroutine and then increment the Z-0.05 before you call the subroutine. EDIT: Drewmeister must type faster than me. He wasn't there when I started.
__________________ An open mind is a virtue...so long as all the common sense has not leaked out. |
|
#5
| |||
| |||
| % G0G20G40G80G90 T21 M06 (1.25 3 FLUTE) G90 G58 G00 X3.25 Y5. M88 ( I AM NOT FAMILIAR WITH M88) S1800 M03 G43 H21 Z1. M08 M97P1000L51 G0Z2.M9 G91G28Y0Z0 G90 M30 P1000 G01 G91 Z-0.05 F15. G90 G41 G01 X2.375 Y4. D21 G01 Y3.077 G03 X2.7606 Y2.174 R1.25 G02 X2. Y0.2794 R1.1 G02 X1.2394 Y2.174 R1.1 G03 X1.625 Y3.077 R1.25 G01 Y3.7294 G01 X2.5 G40 X3.25 Y5. F25. M99 % By using the M97 with the L command will let it loop so having your entire path with in the P1000 program and using G91 for the Z Depth it will continue to repeatedly do the steps you want. Hopefully this will help.
__________________ My Response to "It's Close Enough", "Is Your Tool Box and The Door Close Enough?" |
| Sponsored Links |
|
#6
| |||
| |||
| you can also use a While do loop: T21 M06 (1.25 3 FLUTE) G90 G58 G00 X3.25 Y5. M88 S1800 M03 G43 H21 Z1. M08 G01 Z-0.05 F15. #100=51.0(Number of Passes) WHILE [#100 GT 0]DO1 #100=#100-1.0 G41 G01 X2.375 Y4. D21 G01 Y3.077 G03 X2.7606 Y2.174 R1.25 G02 X2. Y0.2794 R1.1 G02 X1.2394 Y2.174 R1.1 G03 X1.625 Y3.077 R1.25 G01 Y3.7294 G01 X2.5 G40 G00 X3.25 Y5. END1 G0Z2.0M9 G91G28Y0Z0 G90 M30 |
|
#7
| |||
| |||
| This is my macro to trepan maybe this will help % O0001 G00 G90 G54 (Trepan Macro) (-----Alter 1 thru 7----) #1 .75 (Diameter of mill) #2 5.500 (Dia to Trepan) #3 2.55 (Depth of cut) #4 51(# of cuts) #5 1500 (rpm) #6 15.5 (ipm) #7 1.0 (Distance above part) (----Do not alter below----) #2/2=#8 #1/2=#9 #8-#9=#10 G80 M09 M06 T2 G00 X-#10 Y0 S#3 M03 G43 Z#7 H02 M08 G01 Z-#3 F1. G02 I#10 J0. F#6 G00 Z6. G00 G91 G28 Z0 Y0 M09 G90 M19 M30 % |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Increasing Memory in Fanuc 18? | jdocmm | Fanuc | 12 | 06-07-2007 12:36 AM |
| HELP! Increasing frequency... | WilliamD | General Electronics Discussion | 4 | 04-23-2007 05:32 PM |
| Increasing CNC precision | hani_a | Linear and Rotary Motion | 9 | 01-06-2007 08:53 PM |
| Increasing power from steppers | roni21702 | Hobbycnc (Products) | 1 | 03-22-2006 01:06 PM |
| Increasing torque | bunalmis | Stepper Motors and Drives | 1 | 07-20-2005 02:27 PM |