On Tuesday 14 July 2009 17:29:25 Kenneth Lerman wrote:
> Is the behavior the same on a simulated system?

Yes it is.

> If so, my guess is that it is a bug concerning the clearing of memorized 
> labels (owords) when a new program is loaded.

I agree.

Also note that there's no error message on the broken program. It simply 
iterates once
and then finishes the program. I think it should print an error message about 
mismatched
O words.

> 
> Ken
> 
> Michael Buesch wrote:
> > On Tuesday 14 July 2009 15:04:55 Michael Buesch wrote:
> >   
> >> On a simulated 3axis setup, the following program runs fine and
> >> evaluates the while loop 10 times as expected.
> >> But on my one-axis test machine (only one X axis), the while loop
> >> is only evaluated once. The axis does move correctly, but the loop
> >> is exited after the first iteration.
> >>
> >> Any ideas?
> >>
> >> %
> >> g17 g40 g49 g80 g90 g94 g61 g21
> >> G54
> >> #1 = 0
> >> O1 while [ #1 lt 10 ]
> >>    G1 X10 F1000
> >>    G1 X0
> >>    #1 = [ #1 + 1 ]
> >> O1 endwhile
> >> M30
> >> %
> >>     
> >
> > Ah I found out more information on the bug. It's reproduceable as follows:
> >
> > Start Axis and load the following program:
> >
> > %
> > g17 g40 g49 g80 g90 g94 g61 g21
> > G54
> > #1 = 0
> > O1 while [ #1 lt 10 ]
> >         G1 X10 F1000
> >         G1 X0
> >         #1 = [ #1 + 1 ]
> > O2 endwhile
> > M30
> > %
> >
> > Note the wrong O2 at the endwhile.
> > Running that corrupt program will result in only one iteration of the loop.
> > So far expected (more or less.)
> >
> > But from now on _every_ while loop will be broken, even after ngc program 
> > fixup and reload.
> > Loading the correct program with the correct  O1 endwhile  will still only
> > iterate the loop once until Axis is completely restarted.
> >
> >
> >   
> 



-- 
Greetings, Michael.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to