FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.19 FNC131 – COS / Floating Point Cosine
Outline
This instruction obtains the cosine value of an angle (in radians).
1. Instruction format
FNC 131
D
COS
P
2. Set data
Operand Type
S
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
Explanation of function and operation
1. 32-bit operation (DCOS and DCOSP)
A value of angle (binary floating point) specified in [
transferred to [
D
Command
input
FNC131
DCOS
S
S
D
D
Mnemonic
16-bit Instruction
−
Device number storing an angle (in radians) in binary floating point
Device number storing the cosine value in binary floating point
Digit Specification
+1,
D
].
[
S
D
Binary floating point
Value in radians (Value in degrees × π /180)
+1
S
Binary floating point
Cosine value
+1
D
Binary floating point
18 Floating Point – FNC110 to FNC139
18.19 FNC131 – COS / Floating Point Cosine
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
32-bit Instruction
9 steps
Description
Word Devices
Special
System User
Index
Unit
V
Z Modify K H
S
+1,
S
] is converted into the cosine value, and
] RAD → [
S
+1,
S
D
Binary floating point
Mnemonic
Operation Condition
Continuous
DCOS
Operation
Pulse (Single)
DCOSP
Operation
Data Type
Real number (binary)
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
+1,
D
] COS
11
12
13
14
Pointer
15
P
16
17
18
19
20
521