Advertising

Position Registry change

  • I am newbie in robot programming I want to ask how to change a PR[6: tainia] this is in my case. I want to change only the height or z for 10mm. The same PR used from others subroutines and we don't want to change to the others, only to one subroutine. Hope be understood please help.:thumbup:

  • AD
  • Hi, use PR (i, j ) to change just one axis. For example, your PR (1) is one point and you want to add 10 mm to X:


    PR ( 1,1)=10


    and the others:


    1=X

    2=Y

    3=Z

    4=W

    5=P

    6=R


    But if u want juste change the Z use tool offset, this make the same work,


    The PR is used for several programms, if you change the PR in one programm , it will affect all programms which uses this PR.


    Nice day.

  • pasted-from-clipboard.png

    like this P1 in the second point of course


    This is a bit misleading. You are offsetting the point by the dimensions of the point, effectively doubling the distance.

    You should clear out the PR before you set anything to it if you want to use it as an offset point.


    Code
    : PR[10]=LPOS-LPOS ; !PR[10] is now zero.
    : PR[10,3]=10 ; !Set the Z componant to 10mm
    : J P[1] 100% FINE Offset, PR[10] ;


    Also, I recommend against using PR[1] for anything besides the home position. In the auto industry, PR[1] is assumed to be home, and some fanuc macros assume this as well.


    I am newbie in robot programming I want to ask how to change a PR[6: tainia] this is in my case. I want to change only the height or z for 10mm. The same PR used from others subroutines and we don't want to change to the others, only to one subroutine. Hope be understood please help.:thumbup:

    I agree with ambroise musnier on this. If you only want the Z offset to apply in one program, use an offset for the move.

    Check out the Fanuc position converter I wrote here!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Register a new account
Sign in
Already have an account? Sign in here.
Sign in Now