![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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. ![]() Thanks Fast learner |
|
#2
| ||||
| ||||
| 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 |
|
#4
| ||||
| ||||
| 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. |
![]() |
| 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 |
| keyway cutter | hpmor | Surfcam | 4 | 11-26-2008 03:18 PM |
| Need Help!- Using a Keyway Cutter | helicaltools | Surfcam | 1 | 07-03-2008 02:20 PM |
| Keyway Broach Set | phoodieman | General Metal Working Machines | 1 | 05-28-2008 05:04 PM |
| Keyway or not to keyway... That is the question | jessbussert | Stepper Motors and Drives | 5 | 12-16-2007 07:14 AM |
| Keyway cutting | itsme | General Metalwork Discussion | 10 | 05-31-2005 07:27 AM |