I'm trying to learn fanuc robot programming. I made a program using four if statements but imtrying to make the program using only three if statements
R[1]=0
LBL[1]
L PR[1] 200mm/s FINE
IF R[1]=0 or R[1]=2 then
PR[1,2]=PR[1,2]+50
R[1]=R[1]+1
JMP LBL[1]
ENDIF
IF R[1]=1 or R[1]=3 then
Pr[1,3]=pr[1,3]-50
R1=r1+1
Jmp lbl1
Endif
If r1=4 or r1=6 then
Pr[1,2]=pr[1,2]-50
R1=r1+1
Jmp lbl1
Endif
If r1=5 or r1=7 then
Pr[1,3]=pr[1,3]+50
R1=r1+1
Jmp lbl1
Endif
This is the code i wrote im trying to make the same thing only using 3 if statements. Can you guys please help me with this.