Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 10:54:06 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  G-Code, CAD, and CAM
| |-+  G-Code, CAD, and CAM discussions
| | |-+  Help with multiple passes
Pages: « 1 2   Go Down
Print
Author Topic: Help with multiple passes  (Read 1122 times)
0 Members and 1 Guest are viewing this topic.
Graham Waterworth
Administrator
*
Online Online

Posts: 1,166


West Yorkshire, England



View Profile WWW
« Reply #10 on: July 18, 2008, 03:43:26 PM »

Hi Sage,

the circle code starts and finishes at the same point so it has no need to rapid up and down, the line M98 P0005 L51 tells the main program to call the sub program O0005 51 times.

Here is a commented snippet of your code.

N2 M6 T2(TOOL Change 1/4 centercut endmill)
G43 H2
G0
M3
 (1ST SLOT)
X4.7834 Y4.0789 (move to start of slot)
Z.600                 (move clear of part by 600 thou)
M98 P0002 L51    (call sub O0002 51 times)
G00 G90 Z.6       (change to absolute and rapid clear)
 (2ND SLOT)
(code removed)
........
M1
M30

O0002 (FIRST SUB)
G00 G91 Z-.6         (set to incremental and rapid to -600 thou)
G1 Z-.01  F.50       (feed into job)
G90                      (set to absolute)
G2 X4.2265 Y3.6499 I-1.9342 J1.9351 F4.00 (create arc)
G0 G91 Z.6           (set to incremental and rapid up 600 thou)
G90 X4.7834 Y4.0789 (rapid back to start of arc)
M99                     (go back to main program)

Any questions just ask.

Graham.
« Last Edit: July 18, 2008, 03:45:07 PM by Graham Waterworth » Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
ger21
Global Moderator
*
Online Online

Posts: 413



View Profile
« Reply #11 on: July 18, 2008, 05:38:19 PM »

If your using AutoCAD 2002 or newer, I wrote a macro that exports g-code directly from AutoCAD. Far easier than trying to figure out LazyCAM, imo. Smiley

http://home.comcast.net/~cncwoodworker/acad/downloads/AC2GCv039.zip

There's more info on it at CNC Zone.
http://www.cnczone.com/forums/showthread.php?t=8226
Logged

Gerry
Sage
Active Member

Online Online

Posts: 81


View Profile
« Reply #12 on: July 21, 2008, 12:46:20 PM »

Graham:

Just to be sure I understand your code, and in the interest of understand the action of the G codes presented:
Do I detect a problem with your approach if the material is greater than 0.6" thick?

It appears you raise the tool a fixed distance of 0.6 inches from it's current depth at the end of each pass which is getting increasingly deaper with each pass. For this example the material is only 0.5" thick so you will be raising it 0.6" above the work surface at the start and only 0.1" on the last pass. Not a problem in this case but I'd lke to understand the codes fully. Perhaps there is something in the absolute / relative feature that makes this non-issue ?

 Am I missing something?

Thanks


Sage
 
Logged
Sage
Active Member

Online Online

Posts: 81


View Profile
« Reply #13 on: July 21, 2008, 12:50:43 PM »

ger21:

I'll check out your macro

Thanks


Sage
« Last Edit: July 21, 2008, 12:54:08 PM by Sage » Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,166


West Yorkshire, England



View Profile WWW
« Reply #14 on: July 21, 2008, 01:21:10 PM »

Hi Sage,

you are correct in what you say, that is the main problem of incremental code, as the code is written to do that job then the code is safe, if it is to be adapted for other jobs then all the rapid moves have to be checked and adjusted for safe movement.

If this was going to be a regular problem then the g-code can be written using # codes to allow the code to be altered by the changing of a variable.

CNC is about repetition, we write a g-code program and prove it works, we then save it for the next time we make the same part, if the code worked the first time it will work time and again. 

As with lots of things in this world there are many ways to do a job, finding a way that suites your way of working is the hard bit.

You have learned a lot from this exercise already, just think what you may learn tomorrow.

Graham.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
Pages: « 1 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!