
B-63784EN/01 PROGRAMMING 14.COMPENSATION FUNCTION
- 605 -
3. Conversion of program coordinates using the table rotation axis
(1) Conversion from the workpiece coordinate system to the
table coordinate system using the table rotation axis
The table coordinate system is the one that is fixed to the
table.
The table coordinate system will move with the rotation of
the table coordinate system.
Determining the vector at Q requires that P and R in the same
state as that of Q (state at the N2 end point) be determined.
The matrixes for conversion from the workpiece coordinate
system to the table coordinate system are as follows:
The conversion matrix for P is
1
1
1
1
)(
−
−
= cRM
c
The conversion matrix for Q is
1
2
1
2
)(
−
−
= cRM
c
The conversion matrix for R is
1
3
1
3
)(
−
−
= cRM
c
where
ú
ú
ú
û
ù
ê
ê
ê
ë
é
−
=
100
0cossin
0sincos
)( cc
cc
cR
c
(2) Calculation of the three points P', Q', and R' used for the
calculation of three-dimensional cutter compensation
The conversion matrix for the reference angle is given as
follows:
)(
00
cRM
c
=
(
0
c
: parameter No. 6150)
Conversion from the table coordinate system to the
workpiece coordinate system in the state of the N2 end point
is given by
2
M
.
Let the values of the three points P, Q, and R in the state of
the N2 end point be P', Q', and R', then
P’ =
1
0
1
12
−−
MMM
(P-P
0
) + P
0
Q’ =
1
0
1
22
−−
MMM
(Q-P
0
) + P
0
=
1
0
−
M
(Q-P
0
) + P
0
R’ =
1
0
1
32
−−
MMM
(R-P
0
) + P
0
Using these three points P', Q', and R', three-dimensional
cutter compensation may be calculated.
If the reference angle is 0
P'
Q' = Q
P
R'
R
X
Y
Z
Workpiece
coordinate system