CAD CAM EDM DRO - Yahoo Group Archive

Re: G92 and M99 code/cncpro

Posted by alieron@h...
on 2001-01-29 01:17:18 UTC
hey all, hey carl
I tried your example again and it worked out well, after adding G80
right after the G81 it worked out PERfectly! THnak You!!!

If you have time I would love an explaination as to why this works as
it does. Here is your example with the G80 in it for any others. This
is to drill repeatitive holes (I am sure you could make it for other
things also).

G90 (absoulte mode)
G01 x*y* [*being your location of first hole]
L50 G22 P1 (subroutine looped 50 times)
G90
G00 Z0 X0 Y0 (returns here after all 50 holes are finished)
M30 (start the subroutine)
$1 (start subroutine here)
G81* [*your drilling parameters here]
G80 (cancle drilling)
G91 [relative mode]
G01 X*Y* [*offset for the next hole)
M2 (cancel subroutine)

My question is, in the begining, first absoulte mode is turned on,
then the machine goes to the XY offset for the first hole, then loads
the subroutine, then again truns on absoulte mode...why then does the
machine not go back to Zero here but instead seems to skip this step
and load the subroutine, go through it 50 times, and then go back to
that step it skipped and go to Zero at the end??

thanks again!
tauseef

--- In CAD_CAM_EDM_DRO@y..., alieron@h... wrote:
> hey guys, my example below does not work right. After making the
> numbers a little bigger I noticed that when the spindle is moving
to
> the new position for the next hole it also moves down :( It does
loop
> 50 times as in the example. Well back to some of the others hints
you
> guys gave me!
> later
> tauseef
>
> --- In CAD_CAM_EDM_DRO@y..., alieron@h... wrote:
> > hi eveyrone
> > I was reading some older post and picked up some examples and
info
> > that I now am understanding much better due to more experience.
> There
> > has been talk about the "L" loop code in cncpro and how to use it
> > (also one of my orginal questions)...well with the example and
info
> > ballendo, randy and jon gave (in older posts), not to mention
many
> > others, I have finally figuered it out (or think I have :) Really
I
> > just tried one example ballendo gave and it worked! Thanks!!!
> >
> > for others wondering about using the "L" loop code in cncpro
follow
> > this example:
> >
> > G91 (makes measurement relative)
> > G81 R.5 Z-1 X5 L50
> >
> > This code will make 50 holes 1 mm deep 5 mm apart and then stop!
> > Hopefully this will help other "beginners" and others wondering
> about
> > the loop feature. You can also put the Loop number in front of
the
> > line so try that also..in the example above I don't think it
works
> > right. Loop will only loop THAT line its added to also.
> > thanks everyone again!
> > tauseef
> >
> >
> > --- In CAD_CAM_EDM_DRO@y..., alieron@h... wrote:
> > > thank you brain for the help! I have not found a manuel for
> > > cncpro..yeager gives a few examples and labels what each G or M
> > > number is to do. However its a little hard when I really don't
> > > understand the examples to well. No Prob, I will work at it and
> > > figure it out..more than likly look for a G-code programing
book
> > > soon. Luckly I also have everyone here for help. I will try
your
> > > example and see how I can make it work for me. thanks!
> > > tauseef
> > >
> > > --- In CAD_CAM_EDM_DRO@y..., Brian Pitt <bfp@e...> wrote:
> > > > > 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?
> > > > >
> > > >
> > > > this is where conditional expresions come in to G-code
> > > >
> > > > start with V1 set to 0 and V2 set to 49
> > > > move to first hole and
> > > >
> > > > N005 (drill nn holes)
> > > > 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)
> > > > V1=V1+1 (increment variable 1)
> > > > /IF[V1 LE V2]N005 (if v1<=v2 do another hole -block delete
> will
> > > end program)
> > > > M02
> > > >
> > > > also works as a cycle counter to make x number of parts
> > > > check the manual for the right format of the IF statement and
> > > > the <= , I was using the Okuma format
> > > >
> > > > Brian

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?