Chapter 6 Applied Instructions API 1502 Symbol: S : Source value Double word D : Tangent value Double word Explanation: 1. Whether the source value specified by S is a radian or a degree depends on the state of SM695. 2. If SM695 is OFF, the source value specified by S is a radian. Radian=Degree Чπ /180. 3. If SM695 is ON, the source value specified by S is a degree. Degree=Radian Ч 180/ π . (0 o ≦ Degree ≦ 360 0 ) 4. If the conversion result is 0, SM600 is ON. 5. The tangent of the source value specified by S is stored in the register specified by D . 6. The relation between radians and tangent 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 tangent of the radian in (D21, D20) is stored in (D31, D30), and the tangent value is the floating-point number.
6-327 Instruction code Operand Function FTAN P S, D Tangent 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 -