Chapter 5 Applied Instructions S : Source value; D : Sine 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 sine of the source value in S is stored in D . The relation between radians and sine values is shown below. R S: Radian R: Sine value 1 -2 3 2 -2 2 3 2 2 2 - 0 - S -1 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. A radian/degree flag is reset to OFF. The binary floating-point value in Example 1 (D1, D0) is a radian. When X0.0 is ON, the sine of the binary floating-point value in (D1, D0) is stored in (D11, D10).
M1002 X0.0 DSIN S Binary floating-point value Radian Degree 180) ( X p / D Sine value Binary floating-point value 5-93 API Instruction code Operand Function Sine of a binary 130 D SIN 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 ) – RST Radian/Degree flag D0 D10 D 1 D 0 D 11 D 10