EasyManua.ls Logo

Mitsubishi Electric Q172CPU - Trigonometric Functions (SIN, COS, TAN, ASIN, ACOS, ATAN)

Mitsubishi Electric Q172CPU
634 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 - 138
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16.5 Trigonometric functions (SIN, COS, TAN, ASIN, ACOS, ATAN)
Code
SIN, COS, TAN, ASIN,
ACOS, ATAN
Function Trigonometric functions
Operations of SIN (sine), COS (cosine), TAN (tangent), ASIN (arcsine),
ACOS (arccosine) and ATAN (arctangent) are executed.
Format
u
Numerical value (can be specified indirectly)
n
t
o;f[]ci n n
Trigonometric function
(SIN, COS, TAN, ASIN, ACOS, ATAN)
[Explanation]
(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.
[Program Example]
#2010 : L = SIN [60.] ; #2010 : L = 8660
#2016 : L = SIN [600000] ; #2016 : L = 8660
#2020 : L = COS [45.] ; #2020 : L = 7071
#2026 : L = COS [450000] ; #2026 : L = 7071
#2030 : L = TAN [30.] ; #2030 : L = 5773
#2036 : L = TAN [300000] ; #2036 : L = 5773
#2040 : L = ASIN [0.8660] ; #2040 : L = 599970
#2046 : L = ASIN [8660] ; #2046 : L = 599970
#2050 : L = ACOS [0.7071] ; #2050 : L = 450005
#2056 : L = ACOS [7071] ; #2056 : L = 450005
#2060 : L = ATAN [1.] ; #2060 : L = 450000
#2066 : L = ATAN [10000] ; #2066 : L = 450000

Table of Contents

Other manuals for Mitsubishi Electric Q172CPU

Related product manuals