Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
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.
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(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
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifierKH E
"
"
P
zz z z z
zz 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
ds s
d
Head device for storing
the TAN value for TAN
-1
operation
Device for storing
the operation result