Calling a sub routine equally at 20 degrees

Advert

Calling a sub routine equally at 20 degrees

Home Forums CNC machines, Home builds, Conversions, ELS, automation, software, etc tools Calling a sub routine equally at 20 degrees

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #15078
    mick
    Participant
      @mick65121
      Advert
      #199164
      mick
      Participant
        @mick65121

        Now I'm of the old G code school of programing without access to any CAD/CAM. What I need to do is call a pocket sub routine 18 times at 20 degree intervals around a circular blank using Mach3 control. Back when the world was young I programmed Bridgeport series 1 where a sub routine could be rotated by including 'A' followed by the required angle. I've looked through the manual and all I can see is the coordinate rotation which isn't what I need, so is there a method of calling the sub routine incrementally at 20 degree intervals, or even better a short hand method of calling the sub routine 18 times at 20 degrees.

        Thanks

        #199172
        David Clark 13
        Participant
          @davidclark13

          I printed an article in MEW in the CNC series I did. This allowed you to do any number of holes on a diameter. It will be available in the digital archives or perhaps someone could post it on here if the editor has no objections.

          #199175
          Neil Wyatt
          Moderator
            @neilwyatt

            Can you remember which issue it was?

            Neil

            #199178
            David Clark 13
            Participant
              @davidclark13

              Just found it in workshop pages. CNC milling part 3. Read the text that goes with it and all will be explained. Three variables control radius and angle and no of repeats. (One less than number of holes).

              Edited By David Clark 1 on 04/08/2015 18:00:29

              #199191
              Neil Wyatt
              Moderator
                @neilwyatt

                Here's alink to David's article. More to be found under 'Workshop -> processes' on the black menu bar.

                **LINK**

                Neil

                #199231
                mick
                Participant
                  @mick65121

                  Hi. Neil, Hi. Dave.

                  I've had a quick play with this, but it doesn't seem to like rectangular pockets, as the graphics show two darts diametrically opposed, but its not beyond the bounds of possibility that I might be missing something here. Drilling a series of holes would be quite straight forward as there are no X or Y moves contained within the canned cycle, but the sub routine contains X, Y and Z moves all of which will enjoy both + & – values as the cycle progresses, so there needs to be some number crunching to reproduce the rectangle 18 times. As I said back in the day when I used this function regularly the angular value was proceeded with the letter address A, though for the life of me I can't remember the G number that was also called.

                  Mick

                  #199237
                  Bowber
                  Participant
                    @bowber

                    I think this is what your after.

                    http://www.cnccookbook.com/CCCNCGCodeG68G69CoordinateRotation.htm

                    G68 and G69

                    Steve

                    #199243
                    David Clark 13
                    Participant
                      @davidclark13

                      I missed the rectangular pocket bit. All you need to do is use the program to move to the co-ordinates then use an incremental cycle to call the square pocket. As long as the pocket cycle is taken back to the co-ordinate of the hole, it should repeat fine. I can't remember the incremental g code for a pocket (If there is one as it is 10 years since I have done CNC programming). You could do a circular pocket and then clean out the reast of the rectangle. You would need to rotate the pocket at each position as well.

                      Edited By David Clark 1 on 05/08/2015 09:54:49

                      #199314
                      mick
                      Participant
                        @mick65121

                        The mist has cleared, thanks to all. The Cnccookbook site is a useful resource Steve.

                      Viewing 10 posts - 1 through 10 (of 10 total)
                      • Please log in to reply to this topic. Registering is free and easy using the links on the menu at the top of this page.

                      Advert

                      Latest Replies

                      Viewing 25 topics - 1 through 25 (of 25 total)
                      Viewing 25 topics - 1 through 25 (of 25 total)

                      View full reply list.

                      Advert

                      Newsletter Sign-up