Hi.I would like to set a maximum range for the values of X, Y, Z, W, P, R.
Something like:
IF PR[5,1]>155 AND <175 , JMP LBL(22)
! WRONG VALUE
UALM[2]
LBL[22]
IF doesn't work with Position Register.
How could i do that?
Hi.I would like to set a maximum range for the values of X, Y, Z, W, P, R.
Something like:
IF PR[5,1]>155 AND <175 , JMP LBL(22)
! WRONG VALUE
UALM[2]
LBL[22]
IF doesn't work with Position Register.
How could i do that?
You are missing a part.
IF PR[5,1]>155 AND PR[5,1]<175 , JMP LBL(22)
This wont work with RJ and earlier.
(the mixed logic solution of Hermann will work fine too.)
And don't forget to change the lines UALM[2] and LBL[22].
The correct syntax with no redundant brackets is:
IF (PR[5,1]>155 AND PR[5,1]<175),JMP LBL[22]
The command "IF" doesn't work with Position Register.
The problem is not the syntax.
This:
IF PR[5,1]>155 AND <175 , JMP LBL(22)
is just an example of the logic I would like to use, but I don't have the option to use IF with PR.
This:
IF ((PR[5,1]>155) AND (PR[5,1] <175)) , JMP LBL(22)
Or this:
IF (PR[5,1]>155 AND PR[5,1]<175),JMP LBL(22)
are not options because I don't have the option to use IF with PRs.
Thank you for your attention and answers, but my question is precisely whether there is a way to use IF with PR. Or another similar command for Fanuc robots (R30iB)
" I don't have the option to use IF with PRs."
What makes you think so? This ability is not an option.
The syntax provided works on R30iA and R30iB.
Are you editing on the robot teach pendant or in PC text editor?
What are your regional settings for decimal separator? Is it . or , ?
Are you trying to do this on a non motion program (No groups assigned)? Or on a paint robot?
1. What system version do you have?
2. Solution is to copy the PR[5,1] to a R[] and use that for comparison.
Sergei:
Robot M20iB/25, HandlingPRO, R30iB
Editing in ROBOGUIDE from a robot backup.
Decimal separator is "."
Nation: Is a motion program.
IF instructions with no brackets do not support position registers.
Use IF(...) instruction.
You need to be a member in order to leave a comment