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

Скачать
Страница из 838
490
18 Applied Instructions (Floating Point)
18.23 DATAN / Floating Point Arc Tangent
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
18.23 DATAN / Floating Point Arc Tangent
Outline
This instruction executes TAN
-1
 operation.
→ As for handling of floating decimal point, refer to FX Structured Programming Manual [Device &
Common].
1. Format and operation, execution form
2. Set data
3. Applicable devices
Function and operation explanation
1. 32-bit operation (DATAN/DATANP)
The angle is calculated from the TAN value specified by 
, and the operation result is stored in the device
specified by 
. Real number can be directly specified by the device specified by 
.
• The angle (operation result) to be stored in the device specified by 
 stores the value larger than (
−π/2) 
and smaller than (
π/2) in the radian unit.
As for conversion from radian to angle or vice versa, refer to DRAD instruction or DDEG instruction.
→ As for DRAD instruction, refer to section 18.24.
→ As for DDEG instruction, refer to section 18.25.
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Instruction 
name
Operation
Execution 
form
Expression in each language
Structured ladder/FBD
ST
DATAN
32 bits
Continuous
DATAN(EN, s, d);
DATANP
32 bits
Pulse
DATANP(EN, s, d);
Variable
Description
Data type
Input
variable
EN
Execution condition
Bit
Head device for storing the TAN value for TAN
-1
 operation (reverse 
tangent).
FLOAT(Single  
Precision)
Output
variable
ENO
Execution state
Bit
Head device for storing the operation result.
FLOAT(Single  
Precision)
Operand 
type
Bit Devices
Word Devices
Others
System user
Digit designation
System 
user
Special 
unit
Index
Cons
tant
Real 
Number
Character 
String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D
R
U
\G
V Z Modifier K H
E
"
"
P
z z
z
z
z
z z
z
z
DATAN
EN
ENO
d
s
DATANP
EN
ENO
d
s
Command
input
DATAN
EN
ENO
d
s
+1
Binary floating decimal
point (real number)
+1
Binary floating decimal
point (real number)
TAN
-1
d
s
s
d
Head device for storing
the TAN value for TAN
-1
 operation
Device for storing 
the operation result