Mitsubishi — 5.6 Descriptions of the Applied Instructions

Chapter 5 Applied Instructions  S : Source (degree); D : Conversion result (radian)  The equation below is used to convert a degree into a radian. 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. Radian = DegreeЧ( π /180)  When X0.0 is ON, the degree in (D1, D0) is converted into a radian, and the conversion result is stored in (D11, D10). The radian in (D11, D10) is a floating-point number. Example X0.0 DRAD D 1 D 0 S Degree Binary floating-point number Binary floating-point number Radian (Degree 180) X p / D D 11 D 10 Additional remark  Please refer to section 5.3 for more information about performing operations on floating-point numbers.

5-81 API Instruction code Operand Function Converting a degree to 116 D RAD P S, D a radian Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S    D   Pulse instruction 1 6-bit instruction 32-bit instruction (6 steps )  –  D0 D10