Display More
Well, if Karel is not an option,
Then you will need to have that argument in all your calls. Probably use a negative value when the argument shouldn't exist.IF AR[1]<>-1, JMP LBL[10] ;
IF AR[1]=1, JMP LBL[100] ;
LBL[10] ;
!Do default stuff...
END ;
LBL[100] ;
!Do other special stuff...
END ;Yeap! I can't think on something different. I know... It is too bad and I guess Fanuc guys believe that programmers don't need that option using TP programs... As I said in Karel it is possible.
I was thinking of something like this too.