
13. Program Support Functions
13.23 3-dimensional Coordinate Conversion; G68.1/G69.1
462
G68.1 multiple commands
By commanding 3-dimensional coordinate conversion during the 3-dimensional coordinate
conversion modal, two or more multiple commands can be issued.
(1) The 3-dimensional coordinate conversion command in the 3-dimensional coordinate
conversion modal is combined with the conversion in the modal.
(2) If the 3-dimensional coordinate conversion is overlapped during the 3-dimensional coordinate
conversion modal, the overlapped 3-dimensional coordinate conversion will be created on the
coordinate system (G68.1 program coordinate system) created with the 3-dimensional
coordinate conversion in the modal. Thus, the rotary axis and coordinates must be designated
with this G68.1 program coordinate system.
If creating a 90° rotated coordinate system for X axis and Y axis each, commands must be
issued as in Example 2, but Example 1.
<Example 1>
G68.1 X0.Y0.Z0.I1J0K0 R90.;
G68.1 X0.Y0.Z0.I0J1K0 R90.;
X axis rotation 90°
Y axis rotation 90°
(Th (Y axis designated here is the same as
the Z axis in the original coordinate system.)
<Example 2>
G68.1 X0.Y0.Z0.I1J0K0 R90.;
G68.1 X0.Y0.Z0.I0J0K1 R-90.;
X axis rotation 90°
Z axis rotation 90°
(Th (Z axis -90 rotation designated here is
the same as the Y axis +90 rotation in the
original coordinate system.)
Conversion method for 3-dimentional coordinate conversion
The coordinate values (Xp, Yp, Zp) in the newly set G68.1 program coordinate system and the
coordinate values (Xm, Ym, Zm) in the reference workpiece coordinate system are converted as
shown below.
First G68
.1
command
[Xm, Ym, Zm, 1] = [Xp, Yp, Zp, 1] R1T1 · · · · · · · · · · ·
(Forward row)
[Xp, Yp, Zp, 1] = [Xm, Ym, Zm, 1] (T1
-1
) (R1
-1
) · · · · · ·
(Reverse row)
Second G68
.1
command
[Xm, Ym, Zm, 1] = [Xp, Yp, Zp, 1] R2T2R1T1
[Xp, Yp, Zp, 1] = [Xm, Ym, Zm, 1] (T1
-1
) (R1
-1
) (T2
-1
) (R2
-1
)
R1, R2: Rotation row calculated from first and second G68.1 parameter
T1, T2: Movement row calculated from first and second G68.1 parameter