Mitsubishi — 5.6 Descriptions of the Applied Instructions

AH500 Motion Control Module Manual  S : Source (radian); D : Conversion result (degree)  The equation below is used to convert a radian into a degree. Explanation  If the absolute value of a conversion result is greater than the maximum floating-point value available, a carry flag will be ON.  If the absolute value of a conversion reuslt is less than the minimum floating-point value available, a borrow flag will be ON.  If a converseion result is 0, a zero flag will be ON.  SM1064 is the zero flag in an Ox motion subroutine, and SM968 is the zero flag in O100.  SM1065 is the borrow flag in an Ox motion subroutine, and SM969 is the borrow flag in O100.

 SM1066 is the carry flag in an Ox motion subroutine, and SM970 is the carry flag in O100. Degree = RadianЧ(180/ π )  When X0.0 is ON, the radian in (D1, D0) is converted into a degree, and the conversion result is stored in (D11, D10). The degree in (D11, D10) is a floating-point number. Example X0.0 D 1 D 0 S Radian Binary floating-point number Binary floating-point number Degree (Radian 180/ ) X p  Please refer to section 5.3 for more information about performing operations on floating-point numbers.

D D 11 D 10 Additional remark 5-82 API Instruction code Operand Function Converting a radian to 117 D DEG P S, D a degree 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)  –  DDEG D0 D10