Hello Guest it is July 22, 2019, 06:24:01 AM

Author Topic: g code for a axis  (Read 2210 times)

0 Members and 1 Guest are viewing this topic.

g code for a axis
« 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

Offline Chip

*
  • *
  •  2,057 2,057
  • Gainesville Florida USA
    • View Profile
Re: g code for a axis
« Reply #1 on: May 28, 2009, 07:12:43 PM »
Hi, Ray

This line should fix it.

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

Chip
« Last Edit: May 28, 2009, 10:39:10 PM by Chip »
Re: g code for a axis
« Reply #2 on: May 28, 2009, 07:16:33 PM »
Thanks I'll give it a try
Ray
Re: g code for a axis
« Reply #3 on: May 28, 2009, 07:45:31 PM »
q15 made it correct at 90 degrees.
Much Thanks
Ray