can you post the program so we can look at it
rcs60
I want my program to check for a condition
While[condition true] DO1
something.....
END1
then I want it to check another
condition
While [condition 2 true] DO1
something...
END1
but when I program it like that, 2 while loops in series it checks only one and then stops program
Similar Threads:
can you post the program so we can look at it
rcs60
no because i deleted it because it didnt work but it was something like this:
WHILE [#101 EQ 1] DO1;
X0;
Y100;
X60;
Y0;
X0;
END1;
WHILE [#101 EQ 2] DO1;
X100;
Y60;
X00;
Y0;
END1;
Last edited by Mhoppe; 04-06-2015 at 04:27 PM.
yes of course, I've forgotten about it, I added #101=0 before END1.
WHILE [#101 EQ 1] DO1;
X0;
Y100;
X60;
Y0;
X0;
#101=0;
END1;
WHILE [#101 EQ 2] DO1;
X100;
Y60;
X00;
Y0;
#101=0;
END1;
M99
I set #101 manually before program starts then it should go to either loop 1 or loop 2 depending on value of #101 then it ends loop and goes to m99 repeats the whole procedure L number of times.
It works for my first while do loop but if i set #101 to 2 then it wont work.
why?