Delta Electronics AH — 3.18 Flaoting Point Instructions

Chapter 3 Standard Instructions Graphic expression: S : Source value 3_ D : Arccosine value Explanation: 1. Arccosine value=cos -1 The relation between cosine values and arccosine values are shown below. 2. If the absolute value of the conversion result is larger than the value which can be represented by the maximum floating-point number, SM602 is ON. 3. If the absolute value of the conversion result is less than the value which can be represented by the minimum floating-point number, SM601 is ON. Example: 4. If the conversion result is 0, SM600 is ON. When X0.0 is ON, the arccosine of the floating-point number in (D1, D0) is stored in (D11, D10).

The arccosine value in (D11, D10) is converted into the degree, and the conversion result is stored in (D21, D20). The degree in 3-385 FB/FC Instruction Operand Description FC D* FACOS P S, D Arccosine of the floating-point number BOOL WORD DWORD LWORD UINT UDINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S  * D  *  * Device X Y M S T C HC/AC D L SM SR E PR K 16# “$” D F S           D          Pulse instruction 16-bit instruction 32-bit instruction AH Motion CPU AH Motion CPU -