4-333
Detailed Explanation of Functions
4MELFA-BASIC IV
Setfl 2
[Function]
Changes the multiple rotation data of the specified position.
[Format]
[Terminology]
<Position Variables>
Specifies the position variable whose multiple rotation data are to be changed.
<Equation 1>
Specifies the axis number for which the multiple rotation data are to be
changed. (1 through 8).
<Equation 2>
Specifies the multiple rotation data value to be changed (-8 through 7).
[Reference Program]
1 Mov P1
2 P2=Setfl2(P1,6,1)
3 Mov P2
[Explanation]
(1) Returns the position data obtained by changing the position data's multiple rotation information of the
joint axis specified by equation 1 to the value specified by equation 2.
(2) This function changes information from the FL2 element of position data.
(3) The content of the position of position variables given by the argument (X, Y, Z, A, B, C, and FL1) will
remain unchanged.
(4) It is not possible to describe a function that contains an argument in <Position Variables>, <Equation 1>
and <Equation 2>. If such a function is described, an error will be generated during execution.
[Reference]
,
<Position Variables>=Setfl2(<Position Variables>, <Equation 1>, <Equation 2>)
-900
-540
-180
0
180
540
900
......
-2
(E)
-1
(F)
0
1
2
Value of multiple
rotation data
Angle of each axis
Value of multiple rotation data
......