Fnc134 - Acos / Floating Point Arc Cosine - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.22 FNC134 – ACOS / Floating Point Arc Cosine
Outline
This instruction executes the COS
1. Instruction format
FNC 134
D
ACOS
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 (DACOS and DACOSP)
An angle is obtained from the cosine value stored in [
A real number can be directly specified as
Command
input
FNC134
DACOS
S
−1
COS
Binary floating point
(real number)
• The cosine value stored in [
• The angle (operation result) stored in [
For conversion between radians and degrees, refer to RAD (FNC136) and DEG (FNC137) instructions.
Error
An operation error is caused in the following case; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When a value specified in
546
−1
(arc cosine) operation.
Mnemonic
16-bit Instruction
P
Head device number storing a cosine value used in the COS
operation
Head device number storing the operation result
Digit Specification
S
D
+1
S
+1,
S
is outside the range from −1.0 to +1.0 (error code: K6706)
S
18.22 FNC134 – ACOS / Floating Point Arc Cosine
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
32-bit Instruction
Description
Word Devices
Special
System User
Unit
+1,
S
S
.
S
+1
D
D
Binary floating point
(real number)
] can be set within the range from −1.0 to +1.0.
S
] is expressed in radians (from 0 to π).
+1,
D
D
→ For RAD (FNC136) instruction, refer to Section 18.24.
→ For DEG (FNC137) instruction, refer to Section 18.25.
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
DACOS
9 steps
DACOSP
−1
(arc cosine)
Real number (binary)
Others
Con-
Real
Index
stant
Number
V Z Modify K H
E
], and stored to [
+1,
D
Continuous
Operation
Pulse (Single)
Operation
Data Type
Charac-
Pointer
ter String
" "
P
].
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents