Mitsubishi — 5.6 Descriptions of the Applied Instructions

Chapter 5 Applied Instructions  S : Source value; D : Cosine 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 cosine of the source value in S is stored in D . The relation between radians and cosine values is shown below. R S: Radian S  Radian/Degree flag: If a radian/degree flag is OFF, the source value in S is a radian.

If a radian/degree flag is ON, the source value in S is a degree in the range of 0° to 360°.  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. 5-95 API Instruction code Operand Function S, D Cosine of a binary 131 D COS P 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 R: Cosine value 0 3 2 2 2 -2 -3 -2 - 2 2 -1