588,385 active members*
5,318 visitors online*
Register for free
Login Register
VDW - Banner
VDW Forum
Parametric Programing > Threading cycle
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    153

    Threading cycle

    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!!!

  2. #2
    Join Date
    Mar 2006
    Posts
    153
    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!!!

Similar Threads

  1. g76 thread cycle
    By warcnc in forum G-Code Programing
    Replies: 7
    Last Post: 02-03-2013, 11:32 PM
  2. roughing cycle on ot-a
    By iancally in forum Fanuc
    Replies: 2
    Last Post: 06-03-2008, 03:05 PM
  3. G76 Boring Cycle
    By Gorrell in forum G-Code Programing
    Replies: 0
    Last Post: 01-25-2007, 10:22 PM
  4. G68 + Rectangle Cycle
    By Shizzlemah in forum Fadal
    Replies: 1
    Last Post: 01-26-2006, 11:17 PM
  5. How do I set Parameter 592 for G 83 Cycle
    By Farmer in forum G-Code Programing
    Replies: 4
    Last Post: 11-27-2004, 05:13 AM

Posting Permissions

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