Results 1 to 2 of 2

Thread: Threading cycle

  1. #1
    Registered
    Join Date
    Mar 2006
    Location
    United States
    Posts
    153
    Downloads
    0
    Uploads
    0

    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.
    Last edited by chrisryn; 06-12-2008 at 04:36 PM. Reason: Program has been proved. Removed warning.
    No matter how good you are, there is always someone better!!!


  2. #2
    Registered
    Join Date
    Mar 2006
    Location
    United States
    Posts
    153
    Downloads
    0
    Uploads
    0
    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.
    Last edited by chrisryn; 06-12-2008 at 04:18 PM. Reason: Punctuation
    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, 05:32 PM
  2. roughing cycle on ot-a
    By iancally in forum Fanuc
    Replies: 2
    Last Post: 06-03-2008, 10:05 AM
  3. G76 Boring Cycle
    By Gorrell in forum G-Code Programing
    Replies: 0
    Last Post: 01-25-2007, 04:22 PM
  4. G68 + Rectangle Cycle
    By Shizzlemah in forum Fadal
    Replies: 1
    Last Post: 01-26-2006, 05: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-26-2004, 11:13 PM

Posting Permissions


 


About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.