April 24, 2019, 10:28:58 PM

# Writing current positions into PRs

### Author Topic:  Writing current positions into PRs  (Read 327 times)

0 Members and 1 Guest are viewing this topic.

February 09, 2019, 02:10:57 PM

#### fordmanck

##### Writing current positions into PRs
Hey all, first post and very new to the robot world. I have a question that hopefully is a simple solution to the seasoned robot programmers. What I'm trying to do is only have the Z axis move to a point that I command, but not to move the X or Y. Is there a way to write the current X and Y position into the PR before the move command? For a little more reference the previous programmer, that's not longer with the company, wrote a routine to auto recover from a fault. When it does this depending on where the robot is, it hits the product and causes a downstream issue. If we were able to just move the Z on the first move while keeping the X and Y the same, this would eliminate our issue. I know that we obviously need to fix the faults, but that's a bit more complex fix and this would help us in the interim. Thanks in advance, Chris.

Today at 10:28:58 PM

Guest
##### Re:  Writing current positions into PRs

February 09, 2019, 02:15:38 PM

#### HawkME

##### Re: Writing current positions into PRs
Lpos stores the current Linear POSition. Then modify element 3 to adjust the z value.

PR
• = LPOS

PR[x,3]=500

Sent from my SM-G930V using Tapatalk

February 09, 2019, 03:04:03 PM

#### fordmanck

##### Re: Writing current positions into PRs
Thank you so much. We greatly appreciate it!

February 15, 2019, 06:41:19 PM

#### tacheson

##### Re: Writing current positions into PRs

PR[X]=LPOS
PR[X,3]=PR[X,3]+(Desired distance)

This is just incase your LPOS position is above the hard-coded value.  You don't want to move down.

Then, depending on how you want to move away from it, use it as a tool offset or a PR offset(user frame).

Tyler
www.acieta.com

### Similar Topics

###### KUKA KRC4 error "Current Overload after 60.0 s (A2)(Holding Current)"

Started by nikhilpotdar15 on KUKA Robot Forum

15 Replies
2458 Views
September 18, 2018, 11:28:45 AM
by nikhilpotdar15
###### Fanuc writing to UOP

Started by bastiaan on Fanuc Robot Forum

4 Replies
2498 Views
June 13, 2017, 10:14:34 AM
by bastiaan
###### Need help with writing a file

Started by Terzi on KUKA Robot Forum

6 Replies
2247 Views
January 23, 2017, 11:13:34 AM
by Terzi
###### Writing on RDC failed KRC2

Started by litrmleka on KUKA Robot Forum

1 Replies
73 Views
Yesterday at 09:01:44 AM
by litrmleka