Detailed explanation of command words
4-289
SetCalFrm (Set Calibration Frame)
[Function]
Sets the reference coordinate system used for frame transformation.
Two types of reference coordinate systems (pre-frame transformation and post-frame transformation) are
set with this command.
Note) This command is supported with software version R5 or later (F-Q series) or S5 or later (F-D series).
[Format]
[Terminology]
<Position 1>
The position data used as the origin for the X, Y and Z axes in the pre-frame transformation
reference coordinate system is designated with a position variable or position constant.
<Position 2>
The position data used as the origin for the +X axis in the pre-frame transformation reference
coordinate system is designated with a position variable or position constant.
<Position 3>
The position data used as the +Y direction point in the X-Y plane of the pre-frame trans-
formation reference coordinate system is designated with a position variable or numeric
constant.
<Position 4>
The position data used as the origin for the X, Y and Z axes in the post-frame transformation
reference coordinate system is designated with a position variable or position constant.
<Position 5>
The position data used as the origin for the +X axis in the post-frame transformation ref-
erence coordinate system is designated with a position variable or position constant.
<Position 6>
The position data used as the +Y direction point in the X-Y plane of the post-frame trans-
formation reference coordinate system is designated with a position variable or numeric
constant.
[Reference Program]
1 PR1=(0, 0, 0, 0, 0, 0)(0, 0)
' Origin position of pre-frame transformation reference
coordinate system
2 PR2=(1, 0, 0, 0, 0, 0)(0, 0)
' +X axis position of pre-frame transformation reference
coordinate system
3 PR3=(0, 1, 0, 0, 0, 0)(0, 0)
' +Y direction position of pre-frame transformation refer-
ence coordinate system
4 PC1=(0, 0, 0, 0, 0, 0)(0, 0)
' Origin position of post-frame transformation reference
coordinate system
5 PC2=(1, 1, 0, 0, 0, 0)(0, 0)
' +X axis position of post-frame transformation reference
coordinate system
6 PC3=(-1, 1, 0, 0, 0, 0)(0, 0)
' +Y direction position of post-frame transformation refer-
ence coordinate system
7 SetCalFrm PR1, PR2, PR3, PC1, PC2, PC3 ' Sets the reference coordinate system used for frame
transformation
‘ Reference coordinate system after frame transformation
is coordinate system r45 degrees around Z axis
8 MvSpl 5, 50, 20, 2
' Using the reference coordinate system set with the Set-
CalFrm command, the spline file 5 path points are
frame-transformed, and spline interpolation passing
through those path points is executed
[Explanation]
(1) Position data for defining the two types of reference coordinate systems (pre-frame transformation and
post-frame transformation) used for frame transformation are set. Three position data items are
required to define one coordinate system, so a total of six points of position data is set. In this example
SetCalFrm []<Position 1>, <Position 2>, <Position 3>, <Position 4>, <Position 5>, <Position 6>