584,841 active members*
4,608 visitors online*
Register for free
Login
Results 1 to 12 of 12
  1. #1
    Join Date
    Aug 2010
    Posts
    0

    Keyway slotting

    Hi everyone,

    What is the best way to program for keyway slotting with a single point cutter.

    My first attempt is a 8mm keyway cut into a 25mm bore.

    Doosan 220LM / Fanuc 0i-TC.

    Have figured out the cutting stroke / speeds. How do you program the retraction & repeatition of the cuts with a sub. (nuts)

    Thanks
    Fast learner

  2. #2
    Join Date
    Aug 2009
    Posts
    684
    Move to start position in main program.

    Call sub program with an G65 P(sub pgm no) L(number of repeats)

    Use incremental moves in sub program (G91) to perform one pass/retract/increment across.

    If you want to start getting clever you could add another couple of arguments to the G65 line to specify a. Total Depth and b. Depth of Cut. You would then remove the L and use logic (macro B) in the sub program to work out required no of repeats.

    DP

  3. #3
    Join Date
    Aug 2010
    Posts
    0
    Thanks for the response.

    You lost me after "move to......." I'll have to get my book out.........
    Got most of it.

  4. #4
    Join Date
    Mar 2003
    Posts
    2932
    Your lathe doesn't use G91 for incremental. X and Z are absolute commands, U and W are incremental. Also, you can use M98 to call a sub G65 is usually used for Macro Calls. Lets say you want to make 20 passes:

    X24.5 Z2.0 M19 (POSITION TO START POINT, ORIENT SPINDLE)
    M98 P0201001 (CALL SUB O1001 20 TIMES)
    G30 U0 W0 (RETRACT FOR INDEX)
    M30

    O1001(SUB)
    G00 G98 U0.25 (RAPID UP 0.25MM IN X)
    G01 Z-25. F200. (FEED TO DEPTH IN Z)
    G00 U-0.20 (RAPID DOWN 0.2MM IN X)
    Z2.0 (RAPID TO START IN Z)
    M99

    Program O1000 will be called 20 times, each pass 0.05 higher than the last:
    X24.75
    X24.8
    X24.85
    X24.9
    X24.95
    ...
    ...


    Also, as christinandavid suggests, you could write a macro that does this a little more elegantly with variables, etc.

  5. #5
    Join Date
    Aug 2010
    Posts
    0
    DP,
    Can you give me an example to work on.

    Thanks
    Roger

  6. #6
    Join Date
    Aug 2010
    Posts
    0
    Spot on. Just what I was looking for.

    Roger

  7. #7
    Join Date
    Nov 2009
    Posts
    7

    Re: Keyway slotting

    Hi i was reading your post and I'm trying to do something similar on sc200 naukamura. Can i use a g74 canned cycle.

  8. #8
    Join Date
    Nov 2009
    Posts
    7

    Re: Keyway slotting

    Doing a 4mm wide keyway in a 13.992 bore depth of keyway is .075.
    thanks woody

  9. #9
    Join Date
    Nov 2009
    Posts
    7

    Re: Keyway slotting

    working on sc200 naukamura

  10. #10
    Join Date
    Nov 2009
    Posts
    7

    Re: Keyway slotting

    i figured out what i was doing.
    thank you

  11. #11
    Join Date
    Nov 2017
    Posts
    1

    Re: Keyway slotting

    Old thread but helpful, Thanks. Got my first slotting working with this, but I have a question. If i am making blind keyway without the relief, is there any options to retract the Z-axis with each pass? Lets say 0.05mm with each stroke. Just to slowly escape the chip build up. Machining plastics mostly.
    Using this piece of code
    X24.5 Z2.0 M19 (POSITION TO START POINT, ORIENT SPINDLE)
    M98 P0201001 (CALL SUB O1001 20 TIMES)
    G30 U0 W0 (RETRACT FOR INDEX)
    M30

    O1001(SUB)
    G00 G98 U0.25 (RAPID UP 0.25MM IN X)
    G01 Z-25. F200. (FEED TO DEPTH IN Z)
    G00 U-0.20 (RAPID DOWN 0.2MM IN X)
    Z2.0 (RAPID TO START IN Z)
    M99

    Thanks in advance

  12. #12
    Join Date
    Mar 2009
    Posts
    38

    Re: Keyway slotting

    Not entirely understanding your question. If you want to back off the bottom in Z just command it to do so in the sub program?

    I.E.-

    O1001(SUB)
    G00 G98 U0.25 (RAPID UP 0.25MM IN X)
    G01 Z-25. F200. (FEED TO DEPTH IN Z)

    Z-24.95 (<~~~INSERT YOUR BACK OFF MOVE COMMAND HERE)

    G00 U-0.20 (RAPID DOWN 0.2MM IN X)
    Z2.0 (RAPID TO START IN Z)
    M99

    Could also do it in incremental too (W.05)

    Personally, I would've used Macro to program something like this with a plane rotation command and WHILE/DO/END loop, but that's just me.

Similar Threads

  1. Male keyway?
    By peter.blais in forum MetalWork Discussion
    Replies: 11
    Last Post: 01-29-2015, 08:25 AM
  2. Taper in keyway.
    By madmax99 in forum G-Code Programing
    Replies: 4
    Last Post: 07-17-2013, 05:49 PM
  3. Using a Keyway Cutter
    By helicaltools in forum Surfcam
    Replies: 1
    Last Post: 07-03-2008, 08:20 PM
  4. Keyway Broach Set
    By phoodieman in forum Uncategorised MetalWorking Machines
    Replies: 1
    Last Post: 05-28-2008, 11:04 PM
  5. Keyway or not to keyway... That is the question
    By jessbussert in forum Stepper Motors / Drives
    Replies: 5
    Last Post: 12-16-2007, 02:14 PM

Tags for this Thread

Posting Permissions

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