6 - 138
6 MOTION PROGRAMS FOR POSITIONING CONTROL
6.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
[ ]
c i 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
Содержание Q172HCPU
Страница 35: ...2 10 2 POSITIONING CONTROL BY THE MOTION CPU MEMO ...
Страница 79: ...3 44 3 MOTION DEDICATED PLC INSTRUCTION MEMO ...
Страница 373: ...6 186 6 MOTION PROGRAMS FOR POSITIONING CONTROL MEMO ...
Страница 453: ...7 80 7 AUXILIARY AND APPLIED FUNCTIONS MEMO ...