February 22, 2019, 04:36:43 AM
Robotforum | Industrial Robots Community

 Writing current positions into PRs

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

0 Members and 1 Guest are viewing this topic.

February 09, 2019, 02:10:57 PM
Read 243 times
Offline

fordmanck


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 04:36:43 AM
Reply #1

Advertisement

Guest

February 09, 2019, 02:15:38 PM
Reply #1
Offline

HawkME


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
Reply #2
Offline

fordmanck


Thank you so much. We greatly appreciate it!

February 15, 2019, 06:41:19 PM
Reply #3
Offline

tacheson


I like Hawke's answer, but I'd add something to it.

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


Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

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

Started by nikhilpotdar15 on KUKA Robot Forum

15 Replies
2270 Views
Last post September 18, 2018, 11:28:45 AM
by nikhilpotdar15
xx
Need help with writing a file

Started by Terzi on KUKA Robot Forum

6 Replies
2158 Views
Last post January 23, 2017, 11:13:34 AM
by Terzi
question
Fanuc writing to UOP

Started by bastiaan on Fanuc Robot Forum

4 Replies
2263 Views
Last post June 13, 2017, 10:14:34 AM
by bastiaan
xx
Problems with writing functions

Started by Leon on KUKA Robot Forum

2 Replies
1869 Views
Last post April 01, 2014, 04:32:26 PM
by SkyeFire