# Trigonometric Functions (sin, Cos, Tan, Asin, Acos, Atan) - Mitsubishi Electric Q172CPU Programming Manual

Melsecq series motion controller sv43.

7 MOTION PROGRAMS FOR POSITIONING CONTROL

## 7.16.5 Trigonometric functions (SIN, COS, TAN, ASIN, ACOS, ATAN)

SIN, COS, TAN, ASIN,
Code
ACOS, ATAN
Function
Trigonometric functions
f
u
Format
[Explanation]
[Program Example]
n t o
c i n
[ ]
n
;
(1) The operation of the specified trigonometric function is performed.
(2) The operation result is a 32-bit integer (BIN value) including four decimal places.
(3) When the argument of the trigonometric function has no decimal point, the
operation result is similarly a BIN value including four decimal places.
#2010 : L = SIN [60.] ;
#2016 : L = SIN [600000] ;
#2020 : L = COS [45.] ;
#2026 : L = COS [450000] ;
#2030 : L = TAN [30.] ;
#2036 : L = TAN [300000] ;
#2040 : L = ASIN [0.8660] ;
#2046 : L = ASIN [8660] ;
#2050 : L = ACOS [0.7071] ;
#2056 : L = ACOS [7071] ;
#2060 : L = ATAN [1.] ;
#2066 : L = ATAN [10000] ;
Operations of SIN (sine), COS (cosine), TAN (tangent), ASIN (arcsine),
ACOS (arccosine) and ATAN (arctangent) are executed.
Numerical value (can be specified indirectly)
Trigonometric function
(SIN, COS, TAN, ASIN, ACOS, ATAN)
#2010 : L = 8660
#2016 : L = 8660
#2020 : L = 7071
#2026 : L = 7071
#2030 : L = 5773
#2036 : L = 5773
#2040 : L = 599970
#2046 : L = 599970
#2050 : L = 450005
#2056 : L = 450005
#2060 : L = 450000
#2066 : L = 450000
7 - 138