Im recent to this forum, and recently started working on a yaskawa robotic arm (DX200 Controller). In one of my programs im using a loop instruction for a sub-routine. Example of the program:
MOVL LP001 V=50.0 WHILE IN(163)=OFF
MOVL LP002 V=50.0 WHILE IN(163)=ON
JUMP *LOOP IF B001<6
The problem in this is that as soon as i press "interlock" and "test start" the variable B001 instantly goes up to 6 ending the loop. I thought it would only increment the variable B001 after both move instructions but it seems it loops all the time reaching B001=6 instantly. Am i doing something wrong?
Any help would be aprecciated.