Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By machineit2

Thread: A axis programming question

  1. #1
    chip_maker's Avatar
    chip_maker is offline Stainless
    Join Date
    Jan 2006
    Location
    ct.
    Posts
    1,081

    Question 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!

  2. #2
    machineit2 is offline Cast Iron
    Join Date
    Jan 2011
    Location
    South Florida
    Posts
    384

    Default

    Quote Originally Posted by chip_maker View Post
    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
    chip_maker likes this.

  3. #3
    chip_maker's Avatar
    chip_maker is offline Stainless
    Join Date
    Jan 2006
    Location
    ct.
    Posts
    1,081

    Default

    Thank you sir!

  4. #4
    behindpropellers is offline Stainless
    Join Date
    Dec 2008
    Location
    NE OHIO
    Posts
    1,288

    Default

    Quote Originally Posted by machineit2 View Post
    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?

  5. #5
    chip_maker's Avatar
    chip_maker is offline Stainless
    Join Date
    Jan 2006
    Location
    ct.
    Posts
    1,081

    Default

    Quote Originally Posted by behindpropellers View Post
    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

  6. #6
    machineit2 is offline Cast Iron
    Join Date
    Jan 2011
    Location
    South Florida
    Posts
    384

    Default

    Quote Originally Posted by chip_maker View Post
    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

Bookmarks

Posting Permissions

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