|
1Likes
-
1
Post By machineit2
-
A axis programming question
I'm having a brain fart right now. I'm trying to write the shortest possible code to drill 36 holes around the o.d. of a part. I don't want to have to write it like:
g81 z-.o6 r.05 f20.
a20.
a30.
..........
a350.
g0 g80 z.1
I'm sure there is a shorter way to write the code but I can't remember how to write it .
Thanks!
-
 Originally Posted by chip_maker
I'm having a brain fart right now. I'm trying to write the shortest possible code to drill 36 holes around the o.d. of a part. I don't want to have to write it like:
g81 z-.o6 r.05 f20.
a20.
a30.
..........
a350.
g0 g80 z.1
I'm sure there is a shorter way to write the code but I can't remember how to write it  .
Thanks!
G00 X0. Y0. A0.
G81 Z-.06 R.05 F20.
G91 A10. L35
G80
G90 Z1. M09
mIKE
-
Thank you sir!
-
 Originally Posted by machineit2
G00 X0. Y0. A0.
G81 Z-.06 R.05 F20.
G91 A10. L35
G80
G90 Z1. M09
mIKE
Does L35 tell it to go back to the top line 35 times?
-
 Originally Posted by behindpropellers
Does L35 tell it to go back to the top line 35 times?
pretty much, g91 a10. means incrementally (10 degrees) and the L (loop) every 10 degrees 35 times .
Last edited by chip_maker; 01-19-2012 at 08:35 AM.
Reason: clarification
-
 Originally Posted by chip_maker
pretty much, g91 a10. means incrementally (10 degrees) and the L (loop) every 10 degrees 35 times .
Ya, "L" tells it to repeat the move 35 times. And, G91 throws it into incremental mode so that each movement is A10.
Last edited by machineit2; 01-19-2012 at 09:00 AM.
Reason: added
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Bookmarks