
PROGRAMMING
13. FUNCTIONS TO SIMPLIFY
PROGRAMMING
B–63524EN/01
214
M=
1 0 0
0 cosθ –sinθ
0 sinθ cosθ
(3) Coordinate conversion on the ZX plane
M=
cosθ 0 sinθ
01 0
–sinθ 0 cosθ
(2) Coordinate conversion on the ZY plane
Three–dimensional coordinate conversion can be applied to a desired
combination of three axes selected out of the basic three axes (X, Y, Z) and
their parallel axes. The three–dimensional coordinate system subjected
to three–dimensional coordinate conversion is determined by axis
addresses specified in the G68.1 block. If Xp, Yp, or Zp is not specified,
X, Y, or Z of the basic three axes is assumed. However, if the basic three
axes are not specified in parameter 1022, P/S alarm No. 048 occurs.
In a single G68.1 block, both a basic axis and a parallel axis cannot be
specified. If this is attempted, P/S alarm No.047 occurs.
(Example)
When U–axis, V–axis, and W–axis are parallel to the X–axis, Y–axis, and
Z–axis respectively (when G code system B or C is used.)
G68.1 X_ I_ J_ K_ R_ ; XYZ coordinate system
G68.1 U_V_ Z_ I_ J_ K_ R_ ; UVZ coordinate system
G68.1 W_ I_ J_ K_ R_ ; XYW coordinate system
Three–dimensional coordinate conversion can be executed twice. The
center of rotation of the second conversion must be specified with the axis
addresses specified for the first conversion. If the axis addresses of the
second conversion are different from the axis addresses of the first
conversion, the different axis addresses are ignored. An attempt to
execute three–dimensional coordinate conversion three or more times
causes P/S alarm No.5043.
A positive angular displacement R indicates a clockwise rotation along
the axis of rotation. Specify angular displacement R in 0.001 degrees
within the range of –360000 to 360000.
D Three basic axes and
their parallel axes
D Specifying the second
conversion
D Angular displacement R