6 basic functions, 1 sine (sin) – Yaskawa MP900 Series Motion Programming Manual User Manual
Page 158

4.6 Basic Functions
4 -25
4.6 Basic Functions
This section explains the basic function commands, such as trigonometric functions, square root,
binary data conversion, and BCD data conversion.
4.6.1 SINE (SIN)
J
Overview
The SIN command returns the sine of integer or real number data as the operation result.
Double-length integer data cannot be used.
J
Description
Designation Method
MW00100=SIN(MW00101);
MW00100=SIN(90);
MF00200=SIN(MF00202);
Data Types
Bit (B)
Integer (W)
Double Integer
(L)
Real Number
(F)
Constant
No
Yes
No
Yes
Yes
J
Programming Examples
Type
Motion Program
Ladder Logic Program
B
−
−
W
MW00102=SIN(MW00100);
MW00100 SIN
⇒ MW00102
L
−
−
F
DF00202=SIN(DF00200);
DF00200 SIN
⇒ 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 the input, and the operation result is
returned in an integer register (input unit 1 = 0.01 degrees). The operation result is multi-
plied by 10000 before being output.
4
A
EXAMPLE
"