Mitsubishi — 5.6 Descriptions of the Applied Instructions

Chapter 5 Applied Instructions  S : Source value; D : Tangent value  Whether the source value in S is a radian or a degree depends on the state of a radian/degree flag.  If a radian/degree flag is OFF, the source value in S is a radian. Explanation Radian=Degree Чπ /180.  If a radian/degree flag is ON, the source value in S is a degree. (0 o ≦ Degree ≦ 360 0 )  If an operation result is 0, a zero flag will be ON.  The tangent of the source value in S is stored in D . The relation between radians and tangent values is shown below. R S: Radian R: Tangent value S  SM1064 is the zero flag in an Ox motion subroutine, and SM968 is the zero flag in O100.

 SM1049 is the operation error flag in an Ox motion subroutine, and SM953 is the operation error flag in O100. Example 1  A radian/degree flag is reset to OFF. The binary floating-point value in (D1, D0) is a radian. When X0.0 is ON, the tangent of the binary floating-point value in (D1, D0) is stored in (D11, D10).

Radian/Degree flag M1002 RST X0.0 DTA N S Binary floating-point value Radian Degree 180) ( X p / D Tangent value Binary floating-point value 5-97 API Instruction code Operand Function Tangent of a binary 132 D TAN P S, D floating-point number Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S    D   Pulse instruction 16-bit instruction 32-bit instruction (6 steps )  –  1 1 -2 -3 2 -2 - 2 0 2 -1 3 2 2 D0 D10 D 1 D 0 D 11 D 10