Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:56:15 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Lazycam Drill Patterns pitches
Pages: « 1 2   Go Down
Print
Author Topic: Lazycam Drill Patterns pitches  (Read 316 times)
0 Members and 2 Guests are viewing this topic.
BobsShop
Active Member

Offline Offline

Posts: 177


View Profile
« Reply #10 on: October 31, 2011, 07: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  Cry  ) when it comes to solving some cnc-machining task.

Bob@BobsShop

Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #11 on: October 31, 2011, 10: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)
%
Logged
Pages: « 1 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!