Mitsubishi — 5.6 Descriptions of the Applied Instructions

Chapter 5 Applied Instructions  S : Source value (binary floating-point value); D : Arcsine value  Arcsine value=sin -1 Explanation The relation between sine values and arcsine values is shown below. S  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 16#0E19 will appear.  If a conversion result is 0, a zero flag will be ON.  SM1064 is the zero flag in an Ox motion subroutine, and SM968 is the zero flag in O100.

 SM1049 is the operation error flag in an Ox motion subroutine, and SM953 is the operation error flag in O100.  When X0.0 is ON, the arcsine of the binary floating-point value in (D1, D0) is stored in (D11, D10). Example Binary floating-point value S D Arcsine value Binary floating-point value Additional remark  Please refer to section 5.3 for more information about performing operations on floating-point numbers. 5-99 API Instruction code Operand Function Arcsine of a binary 133 D ASIN P S, D floating-point number Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S    D   Pulse instruction 16-bit instruction 32-bit instruction (6 steps)  –  S: Sine value R:

Arcsine value 2 -1,0 0 - 2 X 0.0 DASIN D0 D10 D 1 D 0 D 11 D 10