Delta AH500 — 6.16.2 Explanation of Floating-point Number Instructions

AH500 Programming Manual API 1507 Symbol: S : Source value Double word D : Hyperbolic cosine value Double word Explanation: 1. Hyperbolic cosine value=(e s +e -s )/2. 2. If the absolute value of the conversion result is larger than the value which can be represented by the maximum floating-point number, the value in D is 16#7F800000, and 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, the value in D is 16#FF800000, and SM601 is ON. 4. If the conversion result is 0, SM600 is ON. Example: 1. When X0.0 is ON, the hyperbolic cosine of the floating-point number in (D1, D0) is stored in (D11, D10).

The hyperbolic cosine value in (D11, D10) is the floating-point number. Single-precision floating-point number S D Hyperbolic cosine value 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. 4. If the conversion result is 0, SM600 is ON. Additional remark: If the value in S exceeds the range of values which can be represented by the floating-point numbers, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2013.

6-336 Instruction code Operand Function FCOSH P S, D Hyperbolic cosine of the floating-point number Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S           D          Pulse instruction 16-bit instruction (5-6 steps) 32-bit instruction AH500 AH500 - D1 D0 D11 D10