601,654 active members*
2,551 visitors online*
Register for free
Login
Results 1 to 1 of 1
  1. #1
    Join Date
    Feb 2018
    Posts
    26

    M97 Sub structure

    Newer VF2 and old VF3
    No macro license


    Drilling lots of holes thru 35mm bar.
    Picked up a Cogsdill Burraway to chamf top and bottom from one side, works well.


    To get it up and running I simply stripped out the drill code and inserted a sub call between each of the coordinates. Only issue is there are 96 holes:


    %
    (Drilling)
    ........
    G00X18.Y132.5Z30.
    M97 P10
    Y107.5
    ........
    repeat 96 times!
    ........
    Y132.5
    M97 P10


    G00Z250.
    X-80.Y250.
    M30


    N10
    G00 Z0.
    G01 Z-15. F600.
    Z-24. F150.
    G00 Z-63.
    G01 Z-56.
    G00 Z30.
    M99
    %


    I've got lots of similar parts to do, different number/position of holes.
    Is there a drill cycle which will do this?
    Is there a more efficient way - without macros - to set up the code which avoids the repetition of the sub call?


    Cheers

  2. #2

    Re: M97 Sub structure

    Haas supports G91 + G70/G71 to repeat a subroutine multiple times with a fixed incremental shift.
    This can be very useful for patterns like grid or linear hole arrays.
    However, this only works if the holes follow a repeatable incremental pattern,
    which might not suit your case if the holes are scattered.
    http://cncmakers.com/cnc/controllers/CNC_Controller_System/CNC_Retrofit_Package.html

Posting Permissions

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