Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: rat7734 on May 28, 2009, 06:18:10 PM

Title: g code for a axis
Post by: rat7734 on May 28, 2009, 06:18:10 PM
Could someone tell me what line of this code makes the a axis turn a full 360 degrees and how can I make it stop at 90 degrees instead?

G0 G49 G40  G17 G80 G50 G90
M6 T1(TOOL DIA. 0.25)
G20 (Inch)
M03 S600
M08
G00 G64 A0.0
Y0.0 X0
G00 G43 H1  Z.5
M98 P0001 Q60
X0
Z0.0
M5 M9
M30


O0001
(Start_pos = .05)
G01 Z-.05 F3
X-5.5 F3
G00 Z.075
X-0
G01 Z-.075F3
X-5.5 F3
G00 Z.050
X-0
G91 A6
G90
M99


Thanks as you can probably tell I am new to editing g code.
Ray
Title: Re: g code for a axis
Post by: Chip on May 28, 2009, 07:12:43 PM
Hi, Ray

This line should fix it.

M98 P0001 Q15;--------- 60 to 15 repeat times

Chip
Title: Re: g code for a axis
Post by: rat7734 on May 28, 2009, 07:16:33 PM
Thanks I'll give it a try
Ray
Title: Re: g code for a axis
Post by: rat7734 on May 28, 2009, 07:45:31 PM
q15 made it correct at 90 degrees.
Much Thanks
Ray