5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-116
API
Applicable model
20PM
133
D
D
ASIN
P
P
Arcsine of a binary floating-point value
Bit device Word device
X Y M S F H KnX KnY KnM KnS T C D V Z
S
*
*
D
*
Note: Please refer to specifications for more information about device
ranges.
Only the 32-bit instructions DASIN and DASINP are valid.
F represents a floating-point value. There is a decimal point in a
floating-point value.
16-bit instruction
- - - -
32-bit instruction (6 steps)
DASIN
Continuity
instruction
DASINP
Pulse
instruction
Flags
Ox O100
M1808 M1968 Zero flag
M1793 M1953 Operation error flag
Please refer to the additional remark below.
Explanation
Arcsine value=sin
-1
S: Source value (binary floating-point value); D: Arcsine value
The relation
between sine values and arcsine va
lues is shown below.
S
2
2
-
0 1,0-1,0
S: Sine value
R: Arcsine value
The decimal floating-point value into which the sine value in S is converted can
only be in the range of -1.0 to +1.0. If it is not in the range, the instruction will
not be executed, an operation error flag will be ON, and the error code H0E19
will appear.
If a conversion result is 0, a zero flag will be ON.
Example
When X0 is ON, the arcsine of the binary floating-point value in (D1, D0) is
stored in (D11, D10).
X0
DASIN D0 D10
Binary floating-point value
Binary floating-point value
D 1 D 0
S
D
D 11 D 10
Arcsine value
Additional
rema
rk
Please refer to section 5.3 for more information about performing operations on
floating-point values.