Get User Frame origin into Position Register in User Coordinates
-
craigmhoward -
January 23, 2017 at 6:05 PM -
Thread is marked as Resolved.
-
-
Maybe I'm thinking incorrectly about this. But wouldn't the origin position relative to User Coordinates be [0,0,0,0,0,0]? If so, I think you can set PR[1] to all zeros by using PR[1]=PR[1] - PR[1]. Thoughts on this?
-
DaveP, you are exactly correct.
-
X, Y and Z are 0,0,0. But W, P R have values. When I try to set those to 0, I get a limit error when I try MOVE TO.
Am I setting up the User Frame Orient Origin Point incorrectly ? -
W, P, & R will depend on the tool orientation that you want. Jog the tool to the orientation you want, with UF=1 and UT=1, then record the position. Then go into that position and zero out the x,y&z values.
It can be a point or a PR.
-
Thanks for you help. That's what I am currently doing. I was just hoping there was a way to do it programatically.
-
If you know the w,p,& r angles then you can set them programmatically in a PR.