5 Categories and Use of Basic Application Instructions Operands: S : Source device (binary floating value) D : Operation result Explanations: 1. ASIN value = sin -1 . ASIN instruction performs arc sine operation on S and stores the result in D . 2. F refers to floating point input. Be sure to add a decimal point when using it. 3. Only 32-bit instructions DASIN and DASINP are applicable. 4. See the figure below for the relation between input S and the result: R -1,0 S 5. The decimal value of the SIN value designated by S should be within -1.0 ~ +1.0. If the value exceeds the range, operation error flag will be ON and instruction will be disabled. 6. If the result = 0, zero flag will be ON. 7.
Flags: Program Example: When X0 = ON, DASIN instruction performs arc sine operation on the binary floating value in (D1, D0) and stores the ASIN value in (D11, D10) in binary floating format.. X0 D 1 D 0 Binary floating point D 11 D 10 ASIN value binary floating point Points to note: For floating point operations, see “5.3 Numeric Values for Data Processing”. DVP-PM Operation Instruction 5-116 API Mnemonic Operands Function Controllers 20PM 10PM 133 D ASIN P Arc Sine Type OP Bit Devices Word Devices Program Steps X Y M S F H KnX KnY KnM KnS T C D V Z D S * * D * S: Input (S R: Result 2 - 2 0 1 OX O100 Zero flag M1808 M1968 Operation error flag M1793 M1953 DASIN D0 D10