![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Parametric Programing (custom macro b, fadal macro, okuma user task) |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I have come up with a macro for threading I haven't got to test it yet but thought I would post anyway. As soon as I test it I'll let you know how it works here is the code. G65 P9011 X1.840 Z-1.3 F.0869 K4.0 Q0.005 R.125 X= major diameter of thread Z= thread length F= lead K= number of passes you want to take Q= depth of finish pass (diam) R= thread hieght (diam) Here is the macro. It is used in the same sense as G76(tool,speed, x and y position set before macro call). Once I test it I will put checksum code in it to make sure all required variables have been passed in the G65 call. % O9011 #100=[#18-#17] (Calculates depth of cut - finish depth) #101=[#100/[#6-1]] (Calculates the depth of each pass) #102=0 (Sets counter to 0) WHILE [#102 NE [#6-1]] DO 1 G92 X[#24-#101] Z[#26] F[#9] #24=[#24-#101] #102=[#102+1] END1 G92 X[#24-#17] Z[#26] F[#9] M99 % I will report back once it has been tested. Edit due to typo.
__________________ No matter how good you are, there is always someone better!!! Last edited by chrisryn; 06-12-2008 at 04:36 PM. Reason: Program has been proved. Removed warning. |
|
#2
| |||
| |||
| OK its been tested and it works. It makes a NICE!!!! thread. Managment was shocked. I was able to decrease the number of passes and take the spindle speed up to 2800 rpm on black steel tubing. No chatter whatsoever. I only have one problem I passed 4 passes to the macro but it runs 5. I guess I'll have to look over my math again. I'll try and get some pics up of the threads if I can find a camera.
__________________ No matter how good you are, there is always someone better!!! Last edited by chrisryn; 06-12-2008 at 04:18 PM. Reason: Punctuation |
![]() |
| 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 |
| g76 thread cycle | warcnc | G-Code Programing | 6 | 08-06-2011 10:06 PM |
| roughing cycle on ot-a | iancally | Fanuc | 2 | 06-03-2008 10:05 AM |
| G76 Boring Cycle | Gorrell | G-Code Programing | 0 | 01-25-2007 04:22 PM |
| G68 + Rectangle Cycle | Shizzlemah | Fadal | 1 | 01-26-2006 05:17 PM |
| How do I set Parameter 592 for G 83 Cycle | Farmer | G-Code Programing | 4 | 11-26-2004 11:13 PM |