Hello, I need to get a current position of a single axis when a laser would turn on and then use those to calculate a position to move to. What would that line look like. I have an idea but not sure. I know i would have to send it to a PR. Thanks.
getting current POS of input turning on
- jlynaugh
- Thread is Unresolved
-
-
Search the forum and manual for "Skip".
-
Ok Thanks I found it.
-
PR[]=JPOS
or
PR[]=LPOS
running this line will put the current position of the robot into a PR.
Then PR[i,j]=R[] can extract the specific axis into a register.
PR[100]=JPOS
PR[100,3]=R[1]
this example will put the joint angle of axis 3 into register 1.
-
PR[]=JPOS
or
PR[]=LPOS
running this line will put the current position of the robot into a PR.
Then PR[i,j]=R[] can extract the specific axis into a register.
PR[100]=JPOS
PR[100,3]=R[1]
this example will put the joint angle of axis 3 into register 1.
You need to flip the last line otherwise you will be loading whatever is in R[1] into PR[100,3]
So,
R[1] = PR[100,3]
Create an account or sign in to comment
You need to be a member in order to leave a comment