![]() | |
| 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 Helping A Coworker On A Fanuc 21i Tb Control. We Want To Cut A Part From Barstock, The Bar Puller Pulls Out Material And Cuts Another, Untill 5 Parts Have Been Done.lets Say The Part Is .350 Wide And .097 Wide Part Off Tool Plus .02 Face Stock For A Total Move In Of .467 Per Part. Using Subroutine And Macro Can Someone Post A Simple Program Examp. Thanx Very Much!! |
|
#4
| |||
| |||
| This is one way we use which works on a Haas using Fanuc mode. Put all your program in a subroutine, leave all your work coordinates G54, G55 etc., at zero and set your tool offsets for G54. Have the Puller always use G54 and start a new length of bar stock with the end sticking out of the chuck to the point that the Puller grabs and pulls from. The program uses nested subroutines with this type of structure, I have left out a lot of stuff and just shown the parts related to the five part-offs: Start G10 enter work coordinate value for G54 (this is zero) G10 enter work coordinate value for G55(Z-0.467) G10 enter work coordinate value for G56 (Z-0.934) G10 enter work coordinate value for G57 (Z-1.401) G10 enter work coordinate value gor G58 (Z-1.868) N1 subroutine call to line 100 with L count for how many times you can part off five pieces from a length of bar. G54 stuff to park turret out of way to load new bar etc. M30 N100 G54 Pull bar subroutine call to line 1000 G55 subroutine call to line 1000 G56 subroutine call to line 1000 G57 subroutine call to line 1000 G58 subroutine call to line 1000 M99 N1000 All the program M99 The G55 thru G58 simply moves the coordinate system you are using forward by the amount of material parted off. Then goes back to G54 and the puller pulls another length. A disadvantage to this system is that if you change something you have to change the Z value in the G10 lines for G55 thru G58. Probably you could use G52 with an incremental value so you would only need to change one entry if you changed something on the part. If your machine has macro capability you could use it; we don't have macro ability on our machines. I hope I got things straight, I am typing this from memory rather than going to find a working program. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |