![]() | |
| 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
| |||
| |||
| I am trying to hone out a hole with a flex hone. Is there a macro or looping program to do this instead of repeating the x,y position over and over again? Ex. G0 G90 G54 X0 Y0 M3 S850 G43 Z.1 H1 M8 G85 X0 Y0 R.1 F300. X0 Y0 X0 Y0 X0 Y0 X0 Y0 X0 Y0 AND SO ON AND SO ON G80 Z.1 M9 any help would be appreciated. |
|
#3
| |||
| |||
| What control is this? Some controls will accept a repeat command with the canned cycle such as an "L"... G85 X0 Y0 Z-?? R.1 F300. L20 .... Or even a "K" ...
__________________ It's just a part..... cutter still goes round and round.... |
|
#5
| |||
| |||
| What model Fanuc control are you using? There is a few different ways that you could do it. As Beege and Psyco have already suggested you can do a subprogram with the L value to repeat the sub for the amount of holes that you want. One thing is you have to have a same or common distance between the holes, like 1” apart. You can also use macroB if that option is on your control. There would be no need to have a subprogram. This can be done a few ways using the “IF” or “WHILE” statement. If you are going to be running parts were the number of holes changes or the distance between the holes changes then you can setup variables so you can change them easily per part. I need to know the common X()Y() values of each location. The example below will do 10 holes across in X spaced 1” apart. If you need to add the Y() distances it will have to be changed but it will give you the general idea. #1=10(NUMBER OF HOLES) #2=1(DISTANCE BETWEEN HOLES) #3=0(COUNTER) G0 G90 G54 X0 Y0 M3 S850 G43 Z.1 H1 M8 WHILE[#3LE#1]DO1 G85 X#3 Y0 R.1 Z-1.0 F300. #3=#3+#2 END1 G80 Z.1 M9 Stevo |
| Sponsored Links |
![]() |
| 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 |
| Extrude hone Media | bl409 | Mass finishing equipment/media/stratigies | 10 | 11-02-2011 03:03 PM |
| Need Help!- Cycle times | har78233 | BobCad-Cam | 2 | 03-10-2010 07:50 PM |
| Gerber or Berney style insert hone | garygilmour | Want To Buy...Need help! | 0 | 01-30-2010 02:00 AM |
| NEWBIE HELP>> How do you input a drill hole or extrude a hole that is.. | l u k e | Solidworks | 9 | 02-11-2008 10:54 AM |
| Hard Times ? | Switcher | CNCzone Club House | 1 | 02-26-2007 10:09 AM |