Hello Guest it is April 16, 2024, 05:12:27 AM

Author Topic: Lazycam Drill Patterns pitches  (Read 5519 times)

0 Members and 1 Guest are viewing this topic.

Re: Lazycam Drill Patterns pitches
« Reply #10 on: October 31, 2011, 08:11:56 AM »
James, looks like the code that BR549 provided did the trick.  My code would have programmed the entire board rather than using simple code and subs.    Simple is probably better!!  And with his code you can cut and paste values to produce whatever board you may need.

However, if you are still interested, I will code it and post a copy.  Up to you.  Most of us on here are usually eager to demonstrate our talents (probably more like manic-obsessive-compulsion  :'(  ) when it comes to solving some cnc-machining task.

Bob@BobsShop

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Lazycam Drill Patterns pitches
« Reply #11 on: October 31, 2011, 11:19:56 AM »
HIYA James,

The %'s are just place holders to seperate the code and make it easier to read.

G90
G00X0Y0Z.5
M98 P1 L10      (SUB call to Set up the number of columns, Calls sub 1 and repeats it 10 times)
M30
%


o1
M98P2 L1     (calls The sub to create a row, calls sub 2 and repeats 1 time)
G91             (Sets Inc mode)
G0 Y1          (After each row it increments the Y one space(1"))
G90             (reset to abs mode)
M99             (returns to sub call)
%


o2
G91           (sets Inc mode)
G81 Z-.250  X0Y0 R.1 F10    (Drills the hole)
X1    L9     (Steps over one space(1") and repeat drill each point)
G80          (cancels Drill cycle)
G90          (resets to abs mode
G00 X0
M99          (Returns to sub call)
%