Справочник Пользователя для Mitsubishi Electronics FX2NC

Скачать
Страница из 382
FX Series Programmable Controlers
Applied Instructions 5
5-128
5.12.2
COS (FNC 131)
Contents:
This instruction performs the mathematical COS
operation on the floating point value in S. The
result is stored in D.
Points to note:
All the points for the SIN instruction apply, except that COS is calculated.
See page 5-127.
5.12.3
TAN (FNC 132)
Contents:
This instruction performs the mathematical TAN
operation on the floating point value in S. The
result is stored in D.
Points to note:
All the points for the SIN instruction apply, except that COS is calculated.
See page 5-127.
Mnemonic
Function 
Operands
Program steps
S
D
COS
FNC 131
(Cosine)
Calculates the
cosine of a
floating point 
value
D - must be in floating
point number format 
(32 bits).
D - a floating point 
value
(32 bits). 
DCOS,
DCOSP:
9 steps 
Mnemonic
Function 
Operands
Program steps
S
D
TAN
FNC132
(Tangent)
Calculates the
tangent of a
floating point 
value
D - must be in floating
point number format 
(32 bits).
D - a floating point 
value
(32 bits). 
DTAN,
DTANP:
9 steps
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
DCOS
X04
D510 D316
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
DTAN
X05
D510 D318