Hello Guest it is May 03, 2024, 11:45:05 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Graham Waterworth

2511
You could do it with one sub program by changing the # values between the sub calls.

O1000

#1=-0.45 (Depth to go down in first phase)
#3=5 (Number of steps for first phase)
#5=0.180 (Y for first phase, considering 1/2 inch tool size)

G90 (Absolute distance mode)
G00 X... Y... Z.1
G01 Z0 F2.
M98 P1001 L#3 (Call phase-1 #3 times)
G4 P5.0
#1=-1.250 (Depth to go down in second phase)
#3=8 (Number of steps for second phase)
#5=0.030 (Y for second phase, considering 1/2 inch tool size)
M98 P1001 L#3 (Call phase-2 #3 times)
G1 Z0.0 F6.0 (End)
M2


O1001
G91
G1 Z[#1 / #3] F2.0 (Feed down)
G90
G1 X2.400 F6.0 (Go to the right)
G1 Y#5 F6.0 (Go away)
G1 X1.650 F6.0 (Mill away far side)
G1 Y0.0 F6.0 (Come to start)
G4 P5.0
M99

Graham.

2512
It looks good to me, only thing missing is the rapid to the initial X, Y & Z start point in the main program.

G90 (Absolute distance mode)
G00 X... Y... Z... (start point)
G01 Z0 F2. (feed to top of pocket)
M98 P1001 L#3 (Call phase-1 #3 times)
G4 P5.0
M98 P1002 L#4 (Call phase-2 #4 times)
G1 Z0.0 F6.0 (End)
M2

Graham.

2513
General Mach Discussion / Re: Sorry for not doing my job :(
« on: July 22, 2006, 06:41:56 PM »
Not a problem  :)

Graham.

2514
Hi,

The L is the counter, if you make the subroutine have incremental Z moves you can call it once with the L as the number of times

E.G.

(Main program)

O1000
G20 G40 Etc.
G43 H1 Etc.
(Standard start up above)
G00 G90 X0 Y0 Z1.     (move to start of pocket)
S2000 M3                  (start spindle)
Z.1                           (move just clear of work)
G01 Z0 F2.                (feed to top of work)
M98 P1001 L5           (CALL SUB 5 TIMES)
G00 Z1.                    (jump out of pocket to safe height    **** very important *****)
G28 X0 Y0 Z0            (go to zero return)
M30

(Sub program)

O1001
G91                    (INCREMENTAL)
G01 Z-.1 F1.        (feed down .1 in incremental mode)
G90                    (set ABSOLUTE)
X.. Y..                 (mill pocket)
X.. Y..
Etc.
G00 X0 Y0           (go back to start point    **** NOTE don't move Z **** )
M99                    (end sub)

Graham.

2515
There are no while loops as such, but you can do loops.

What are you trying to do?

Have a look at this thread :- http://machsupport.com/forum/index.php?topic=310.0

Graham.

2516
General Mach Discussion / Re: Multiple Head Support
« on: July 22, 2006, 03:48:18 AM »
You can drive up to 6 axis at any one time,  it all depends on how you want to control the heads, if all are on a common Y and Z axis then you can have as many as you want,  if all the heads have independent movement then the 6 axis limit comes into play.

Graham.

2517
General Mach Discussion / Re: stop waiting G4
« on: July 21, 2006, 02:12:50 PM »
Why can't you use an M0 (Mzero) instead of a G4 Pxx, M0 will wait until you press the start button.

Graham.

2518
General Mach Discussion / Re: Pulse Frequency Slow down
« on: July 15, 2006, 04:28:54 PM »
Are we talking about Desktop or Laptop processors here.

Graham.

2519
G-Code, CAD, and CAM discussions / Re: G31 again
« on: July 15, 2006, 04:23:20 PM »
try this in MDI dro

place the probe just above the work

Type :-
 
G91 G31 Z-1. F10.


2520
General Mach Discussion / Re: Suggestion
« on: July 15, 2006, 12:36:14 PM »
have a look at this thread.

Graham

http://machsupport.com/forum/index.php?topic=385.0