CAD CAM EDM DRO - Yahoo Group Archive

G92 and M99 code uses?

Posted by alieron@h...
on 2001-01-27 04:22:25 UTC
hey everyone. I have been playing around with cncpro to figure out
more of its features so I can use them if needed. I have been trying
to figure out the "loop" L code with little luck. I have "V" variable
down pretty good and am starting to understand subroutines. In my
attempt to figure out machine coordinates (G54-G58) to make multiple
parts, I figured out a different way to make the machine do the same
thing over and over again by using G92 and M99! And here is where my
question comes.. HOW do I STOP M99 (rewind G-code and repeat)? For
example lets say I want to drill 50 holes 1 mm apart...I would now
write a G-Code this way:

G81 R.50 Z-5 (single drilling with .50 raise and drilling 5 mm in)
G80 (cancel drilling)
G00 X1 (moving X axis 1 mm over)
G92 X0 (This is the catch! RESETS the machine back to zero)
M99 (rewind and repeat)

The problem is I don't know how to stop the M99 code and if left the
machine would keep doing this sequence until it burns out :) How
would I specify it to do the 50 holes in this example?

One could also make the code more complex! Lets say you wanted to cut
a bunch of little squares 5 mm apart in a row. G-Code could look:

G00 Z-1
G00 X2
G00 Y2
GOO X0
G00 Y0
G00 Z.5
G00 X7
G92 X0Y0
M99

Hope this sparked some ideas! I am learning! What fun!!!
tauseef

Discussion Thread

alieron@h... 2001-01-27 04:22:25 UTC G92 and M99 code uses? Marcus & Eva 2001-01-27 06:58:11 UTC Re: [CAD_CAM_EDM_DRO] G92 and M99 code uses? cnc002@a... 2001-01-27 08:56:30 UTC Re: [CAD_CAM_EDM_DRO] G92 and M99 code uses? Brian Pitt 2001-01-27 14:45:19 UTC Re: [CAD_CAM_EDM_DRO] G92 and M99 code uses? alieron@h... 2001-01-27 17:14:34 UTC Re: G92 and M99 code uses? alieron@h... 2001-01-28 01:33:46 UTC Re: G92 and M99 code/cncpro carlcnc@s... 2001-01-28 08:56:14 UTC Re: G92 and M99 code uses? alieron@h... 2001-01-29 00:52:34 UTC Re: G92 and M99 code/cncpro alieron@h... 2001-01-29 01:17:18 UTC Re: G92 and M99 code/cncpro Smoke 2001-01-29 11:30:40 UTC Re: [CAD_CAM_EDM_DRO] Re: G92 and M99 code/cncpro Vance Buhler 2001-01-29 11:43:39 UTC Re: [CAD_CAM_EDM_DRO] Re: G92 and M99 code/cncpro ballendo@y... 2001-01-29 14:27:36 UTC re:G92 and M99 code uses? ballendo@y... 2001-01-29 19:49:18 UTC re:Re: G92 and M99 code/cncpro ballendo@y... 2001-01-29 20:21:31 UTC re:Re: G92 and M99 code/cncpro alieron@h... 2001-01-30 00:03:33 UTC re:Re: G92 and M99 code/cncpro Carey L. Culpepper 2001-01-30 07:29:24 UTC Re: [CAD_CAM_EDM_DRO] re:Re: G92 and M99 code/cncpro ballendo@y... 2001-01-31 01:49:53 UTC re:Re: G92 and M99 code/cncpro Carey L. Culpepper 2001-01-31 07:26:49 UTC Re: [CAD_CAM_EDM_DRO] re:Re: G92 and M99 code/cncpro Robert Allen & Marsha Camp 2001-01-31 16:55:21 UTC Re: [CAD_CAM_EDM_DRO] re:Re: G92 and M99 code/cncpro mooseo69@y... 2001-03-27 13:52:55 UTC Re: re:G92 and M99 code uses? Ray 2001-03-28 06:48:14 UTC Re: re:G92 and M99 code uses?