Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
486
18 Applied Instructions (Floating Point)
18.21 DASIN / Floating Point Arc Sine
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
18.21 DASIN / Floating Point Arc Sine
Outline
This instruction executes SIN
-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 (DASIN/DASINP)
The angle is determined from the SIN value specified by , and the operation result is stored in the device
specified by . In the device specified by , real number can be directly specified.
The SIN value specified by can be set in a range of -1.0 to 1.0.
The angle (operation result) to be stored in the device specified by stores the value of radian (-π/2 to
π/2). 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
DASIN 32 bits Continuous DASIN(EN, s, d);
DASINP 32 bits Pulse DASINP(EN, s, d);
Variable Description Data type
Input
variable
EN Execution condition Bit
Head device for storing the SIN value for SIN
-1
(reverse sine) operation.
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
DASIN
EN ENO
d
s
DASINP
EN ENO
d
s
Command
input
DASIN
EN ENO
d
s
+1
Binary floating decimal
point (real number)
+1
Binary floating decimal
point (real number)
SIN
-1
ds s d
Head device for storing
the SIN value for SIN
-1
operation
Device for storing
the operation result