Delta AH500 — 6.16.2 Explanation of Floating-point Number Instructions

Chapter 6 Applied Instructions API 1510 Symbol: S : Data source (radian) Double word D : Conversion result (Degree) Double word Explanation: 2. Degree = RadianЧ(180/ π ). 1. The equation below is used to convert radians into degrees. 3. 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#7F7FFFFF. 4. 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#7F7FFFFF. 5. If the conversion result is 0, SM600 is ON.

When X0.0 is ON, the radian in (D1, D0) is converted into the degree, and the conversion result is stored in (D11, D10). The degree in (D11, D10) is the floating-point number. Example: S Radian Floating-point number D Degree (Radian / ) Ч 180 π Floating-point number 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-339 Instruction code Operand Function FDEG P S, D Converting the radian to the degree 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