Hi guys,
I am new to Fanuc programming, So i have been trying to understand the Programs used in the Fanuc Robots at the plant. I have a basic question regarding the JMP function. I have this following structure of program:
Code
!----- some motion statements ----
############################
######Some motion Statements
############################
!--- unconditional jump ----
JMP LBL[15] ;
!----- Few conditions here (THIS SECTION) ----
IF DI[45] = ON AND DI[46] = ON,JMP LBL[14] ;
R[15] = 0 ;
R[16] = 0 ;
JMP LBL[13] ;
LBL[14] ;
R[15] = 1 ;
R[16] = 1 ;
LBL[13] ;
IF R[15] = 1 AND R[16] = 1,JMP LBL[15] ;
R[3] = 15 ;
L PR[15] 850mm/sec CNT100 ;
DO[45] = OFF ;
DO[46] = OFF ;
!---- (THIS SECTION) ----
!---- jumps here ----
LBL[15] ;
!----- some more motion statements ----
############################
######More motion Statements
############################
Display More
As you can see from the above sample program, there are some motion statements on top, then a Unconditional jump JMP LBL[15] is used. there are few conditions after the JMP. To my knowledge the JMP LBL[15], directly jumps to the label 15 and the conditions between the JMP & LBL[15] are never executed. Am i Right?? coz i see such unused statements at many places throughout the programs which got me confused, so wanted to make sure.
Thanks a lot in advance for your replies