Delta AH500 — 6.16.2 Explanation of Floating-point Number Instructions

Chapter 6 Applied Instructions 6.16.2 Explanation of Floating-point Number Instructions Symbol: S : Source value Double word D : Sine value Double word Explanation: 1. Whether the source value specified by S is a radian or a degree depends on the state of SM695. 3. If SM695 is ON, the source value specified by S is a degree. 2. If SM695 is OFF, the source value specified by S is a radian. Radian=Degree Чπ /180. Degree=Radian Ч 180/ π . (0 o ≦ Degree ≦ 360 0 ) 4. If the conversion result is 0, SM600 is ON. 5. The sine of the source value specified by S is stored in the register specified by D . 6. The relation between radians and sine values are shown below. Example:

When X0.0 is ON, the binary-coded decimal value in X1.15~X1.0 is converted into the binary value, and the conversion result is stored in D0. The binary value in D0 is converted into the floating-point number, and the conversion result is stored in (D11, D10). The floating-point number in (D11, D10) is converted into the radian, and the conversion result is stored in (D21, D20). The sine of the radian in (D21, D20) is stored in (D31, D30), and the sine value is the floating-point number.

6-323 API Instruction code Operand Function 1500 FSIN P S, D Sine 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 -