Mitsubishi Electronics FX2C Home Theater Server User Manual


 
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 floatin
g
point value in S. The
result is stored in D.
Points to note:
All the points for the SIN instruction appl
y
, except that COS is calculated.
See pa
g
e 5-127.
5.12.3 TAN (FNC 132)
Contents:
This instruction performs the mathematical TAN
operation on the floatin
g
point value in S. The
result is stored in D.
Points to note:
All the points for the SIN instruction appl
y
, except that COS is calculated.
See pa
g
e 5-127.
Mnemonic Function
Operands
Program steps
SD
COS
FNC 131
(Cosine)
Calculates the
cosine of a
floatin
g
point
value
D - must be in floatin
g
point number format
(32 bits).
D - a floatin
g
point
value
(32 bits).
DCOS,
DCOSP:
9 steps
Mnemonic Function
Operands
Program steps
SD
TAN
FNC132
(Tan
g
ent)
Calculates the
tan
g
ent of a
floatin
g
point
value
D - must be in floatin
g
point number format
(32 bits).
D - a floatin
g
point
value
(32 bits).
DTAN,
DTANP:
9 steps
DCOS
X04
D510 D316
DTAN
X05
D510 D318