Hi all friends. I am trying to understand FANUC robot program. But I got stuck on following instructions.
1: //R[11:DispMemory]=0 ;
2: CALL BA(31) ;
3: CALL BA(21) ;
4: R[13:Scrap1]=AR[1] ;
In 1st line, what is the meaning of ' // ' ?
In 2nd line and 3rd line, what is meant by (31) and (21) because in the backup, I only have ba.tp program.
In 4th line, what is AR[1]? Does it mean analogue register or something?
Please reply.
Understanding code in FANUC Robot Programming
-
Ninad Joshi -
March 29, 2018 at 11:42 AM -
Thread is marked as Resolved.
-
-
// = remarked out line, the program skips this line of code
(#) = an argument passed to the called program
AR[#] = argument register, this is an argument passed from the calling program
Remarks and arguments are common items in many programming languages, so if you search here and on Google you will find plenty of information.
Sent from my SM-G930V using Tapatalk
-
// = remarked out line, the program skips this line of code(#) = an argument passed to the called program
AR[#] = argument register, this is an argument passed from the calling program
Remarks and arguments are common items in many programming languages, so if you search here and on Google you will find plenty of information.
Sent from my SM-G930V using Tapatalk
Thank you HawkME for the information. I will search more for arguments and remarks for further info.
-
Hi all again, how the following programs are used? Do they run in background?
/PROG GETDATA Macro
1: !Get Data Macro ;
2: CALL GESNDDAT(AR[1],1,AR[2],AR[3],AR[4],AR[5],AR[6],AR[7],AR[8],AR[9]) ;
/POS
/END/PROG REQMENU Macro
1: !Request Menu Macro ;
2: CALL GESNDEVT(AR[1],1,AR[2]) ;
/POS
/END/PROG SENDDATA Macro
1: !Send Data Macro ;
2: CALL GESNDDAT(AR[1],AR[2],AR[3],AR[4],AR[5],AR[6],AR[7],AR[8],AR[9],AR[10]) ;
/POS
/END/PROG SENDEVNT Macro
1: !Send Event Macro ;
2: CALL GESNDEVT(AR[1],AR[2],AR[3]) ;
/POS
/END/PROG SENDSYSV Macro
1: !Send SysVar Macro ;
2: CALL GESNDSYS(AR[1],AR[2],AR[3],AR[4],AR[5],AR[6]) ;
/POS
/ENDWhat is the meaning of following programs?
1:GESNDDAT
2:GESNDEVT
3:GESNDSYS