Delta AH500 — 6.2.2 Explanation of Arithmetic Instructions

Chapter 6 Applied Instructions API 0107 Symbol: S 1 : Dividend Double word/Long word S 2 : Divisor Double word/Long word D : Quotient Double word/Long word Explanation: 1. The single-precision floating-point number in S 1 is divided by the single-precision flaoting-point number in S 2 . The quotient is stored in D . 2. When the operation result is zero, SM600 is ON. 3. The division of 32-bit single-precision floating-point numbers:  When the absolute value of the operation result is less than the value which can be represented by the minimum floating-point number, the value in D is 16#FF7FFFFF.

 When the absolute value of the operation result is larger than the value which can be represented by the maximum floating-point number, the value in D is 16#7F7FFFFF. b31.........b16 b15...........b0 S S 1 S 2 +1 S S2 S 1 +1 b31.........b16 b15...........b0 D D +1 / 4. The division of 64-bit double-precision floating-point numbers:  When the absolute value of the operation result is less than the value which can be represented by the minimum floating-point number, the value in D is 16#FFEFFFFFFFFFFFFF.  When the absolute value of the operation result is larger than the value which can be represented by the maximum floating-point number, the value in D is 16#7FEFFFFFFFFFFFFF.

b31.........b16 = b15...........b0 6-51 Instruction code Operand Function D F/ P S , S , D 1 2 Division of floating-point numbers Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S 1            S 2            D           Pulse instruction 32-bit instruction (7-9 steps) 64-bit instruction (7-9 steps) AH500 AH500 AH500