multiple shape milling levels

More
16 Nov 2014 22:51 #53139 by Segitarius
Hello

I contend with following problem:
I try to write a program that mills some shape around with few passes. Each passage makes my mill work deeper in "Z" axis.
Now I am doing it this way (unprofessional in my opinion):

...
N4.... G41 etc...
N5... Shape
N6... Shape

z-1

shape

z-2

shape

z-3

etc...

Is there some more professional way to write a program for milling in multiple passes? Like sort of canned cycle or some g code... ?


Any help will be appreciated

Konrad

Please Log in or Create an account to join the conversation.

More
16 Nov 2014 23:20 #53140 by ArcEye
Hi

Have a look at JT's gcode tutorial
www.gnipsel.com/linuxcnc/g-code/index.html

Such a thing is easily done in a conditional loop
eg
#<_cut_depth> = 10
#<_current_depth> = 1

	o100 DO
		G0 Z-#<_current_depth>
 		shape
 		#<_current_depth> = [#<_current_depth> + 1]
	o100 WHILE[#<_current_depth> LE #<_cut_depth>]

regards
The following user(s) said Thank You: Segitarius

Please Log in or Create an account to join the conversation.

More
16 Nov 2014 23:36 #53141 by Segitarius
Thank you :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum