I'm having a problem that I could use some help with.
Within my Teach Pendant program, I want to copy one TOOL frame to another, but make a change to an individual element.
In the example below, the goal is to make UTOOL[8] the same as UTOOL[2] but have the X element 5mm more than original. Ultimately I plan to use a register instead of the constant (5) but I wanted to keep this basic.
UTOOL[2] is previously defined, PR[10] and UTOOL[8] are not.
1: UTOOL_NUM=2
2: PR[10]=UTOOL[2]
3: PR[10,1]=PR[10,1]+5
4: UTOOL[8]=PR[10]
After line 2, checking position data of PR[10] shows:
NX=1.000
NY=0.000
NZ=0.000
OX=0.000
OY=0.000
OZ=-1.000
(I don't know what or where these came from)
But when I press F5[REPRE] and select Cartesian, the data is correct and matches UTOOL_NUM[2] as expected:
X=0.000
Y=-600
Z=135
W=-90
P=0
R=0
As the program continues, line 3 adds the value 5 to the "NX" value, not the X that I expected.
So that means line 4 of course doesn't work.
What are the "NX, NY.......OX, OY...." values for, meaning, what do they represent?
How do I get my calculations to work in the actual X, Y, Z?
I really thought this should be easy and straight forward, but I'm clearly missing something.
Thanks for any help!
Marc.