Yaskawa MP900 Series Motion Programming Manual User Manual
Page 160

4.6 Basic Functions
4 -27
J
Programming Examples
Type
Motion Program
Ladder Logic Program
B
−
−
W
MW00102=COS(MW00100);
MW00100 COS
⇒ MW00102
L
−
−
F
DF00202=COS(DF00200);
DF00200 COS
⇒ DF00202
The input units and output results are different for integer and real number data.
D
Integer Data
Integer data can be used within a range of −327.68 to 327.67 degrees. The immediately
preceding operation result (integer data) is used as input, and the operation result is re-
turned in an integer register (input unit 1 = 0.01 degrees). The operation result is multiplied
by 10000 before being output.
D
Real Number Data
The command uses the immediately preceding operation result (real number data) as in-
put, and returns the cosine in a real number register (unit = degrees).
Example:
D
Integer Data
MW00102 = COS (MW00100) ;
Equivalent
⇒
0.5=COS60 °
(05000)
(06000)
D
Real Number Data
MF00102 = COS (MF00100) ;
(0.5)
(60.0)
If integer data is input outside the range of −327.68 to 327.67 degrees, a correct result cannot be obtained.
4
A
EXAMPLE
"
IMPORTANT